Skip to content

Commit

Permalink
🔌 add energy for cuco.plug.wp12 (#1748)
Browse files Browse the repository at this point in the history
  • Loading branch information
parkghost authored Jul 7, 2024
1 parent 4dabb89 commit 91bcd1f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,23 @@
'state_class': 'total_increasing',
'device_class': 'energy',
'unit_of_measurement': 'kWh',
},
'cuco.plug.wp12': {
'main_miot_services': 'switch-2',
'sensor_attributes': 'power_cost_today,power_cost_month',
'stat_power_cost_key': '11.1'
},
'cuco.plug.wp12:power_cost_today': {
'value_ratio': 1,
'state_class': 'total_increasing',
'device_class': 'energy',
'unit_of_measurement': 'kWh',
},
'cuco.plug.wp12:power_cost_month': {
'value_ratio': 1,
'state_class': 'total_increasing',
'device_class': 'energy',
'unit_of_measurement': 'kWh',
},
'cuco.plug.*': {
'main_miot_services': 'switch-2',
Expand Down

0 comments on commit 91bcd1f

Please sign in to comment.