Skip to content

Commit

Permalink
🔋 add energy sensor for cuco.plug.v2eur (#1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Mar 6, 2024
1 parent 7097216 commit c2dfad5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,13 @@
'main_miot_services': 'switch-2',
'exclude_miot_services': 'custome,physical_controls_locked,indicator_light',
},
'cuco.plug.v2eur': {
'sensor_properties': 'electric_power',
'switch_properties': 'charging_protection.on,max_power_limit.on,cycle.status,delay.delay',
'number_properties': 'charging_protection.power,protect_time,max_power_limit.power',
'sensor_attributes': 'power_cost_today,power_cost_month',
'stat_power_cost_key': '11.1',
},
'cuco.plug.v3': {
'main_miot_services': 'switch-2',
'sensor_attributes': 'power_cost_today,power_cost_month',
Expand Down

0 comments on commit c2dfad5

Please sign in to comment.