Skip to content

Commit

Permalink
🔋 fix energy sensor for cuco.plug.v2eur (#1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Nov 1, 2024
1 parent dc19b1e commit 2a342d4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,14 @@
'sensor_attributes': 'power_cost_today,power_cost_month',
'stat_power_cost_key': '11.1',
},
'cuco.plug.v2eur:power_cost_today': {
**ENERGY_KWH,
'value_ratio': 0.01,
},
'cuco.plug.v2eur:power_cost_month': {
**ENERGY_KWH,
'value_ratio': 0.01,
},
'cuco.plug.v3': {
'main_miot_services': 'switch-2',
'sensor_attributes': 'power_cost_today,power_cost_month',
Expand Down

0 comments on commit 2a342d4

Please # to comment.