mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fixed SI units for current consumption (#13190)
This commit is contained in:
parent
6310deb5c2
commit
948f29544a
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user