Fixed SI units for current consumption (#13190)

This commit is contained in:
Vincent Van Den Berghe 2018-03-14 08:14:36 +01:00 committed by Fabian Affolter
parent 6310deb5c2
commit 948f29544a

View File

@ -21,17 +21,17 @@ SENSOR_TYPES = {
'active_power': 'active_power':
['Active Power', 'mdi:power-plug', 'local', 'W', 'active_power'], ['Active Power', 'mdi:power-plug', 'local', 'W', 'active_power'],
'current': 'current':
['Current', 'mdi:gauge', 'local', 'Amps', 'current'], ['Current', 'mdi:gauge', 'local', 'A', 'current'],
'voltage': 'voltage':
['Voltage', 'mdi:gauge', 'local', 'V', 'voltage'], ['Voltage', 'mdi:gauge', 'local', 'V', 'voltage'],
'active_cosfi': 'active_cosfi':
['Power Factor', 'mdi:gauge', 'local', '%', 'active_cosfi'], ['Power Factor', 'mdi:gauge', 'local', '%', 'active_cosfi'],
'alwayson_today': 'alwayson_today':
['Always On Today', 'mdi:gauge', 'remote', 'kW', 'alwaysOn'], ['Always On Today', 'mdi:gauge', 'remote', 'kWh', 'alwaysOn'],
'solar_today': 'solar_today':
['Solar Today', 'mdi:white-balance-sunny', 'remote', 'kW', 'solar'], ['Solar Today', 'mdi:white-balance-sunny', 'remote', 'kWh', 'solar'],
'power_today': 'power_today':
['Power Today', 'mdi:power-plug', 'remote', 'kW', 'consumption'] ['Power Today', 'mdi:power-plug', 'remote', 'kWh', 'consumption']
} }
SCAN_INTERVAL = timedelta(seconds=30) SCAN_INTERVAL = timedelta(seconds=30)