better error handling and fix to chargebar display of chargerate units

chargebar would incorrectly display kWh and not km/hr
teslacmd would silently ignore missing parameters