Skip to content

Commit

Permalink
fix: qmi.plug.psv3 energy (al-one#1415)
Browse files Browse the repository at this point in the history
  • Loading branch information
MBRjun committed Dec 30, 2023
1 parent 987eb49 commit 77b0ea9
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,39 @@
'cloud_delay_update': 8,
'miot_type': 'urn:miot-spec-v2:device:air-conditioner:0000A004:qdhkl-b23:2',
},
'qmi.plug.psv3': {
'main_miot_services': 'switch-2',
'sensor_attributes': 'power_cost_today,power_cost_month',
'sensor_properties': 'switch.temperature',
'stat_power_cost_key': '3.1',
'exclude_miot_services': 'simulation',
},
'qmi.plug.psv3:electric_current': {
'value_ratio': 0.001,
'unit_of_measurement': 'A',
},
'qmi.plug.psv3:voltage': {
'value_ratio': 0.001,
'unit_of_measurement': 'V',
},
'qmi.plug.psv3:power_consumption': {
'value_ratio': 1,
'state_class': 'total_increasing',
'device_class': 'energy',
'unit_of_measurement': 'kWh',
},
'qmi.plug.psv3:power_cost_today': {
'value_ratio': 1,
'state_class': 'total_increasing',
'device_class': 'energy',
'unit_of_measurement': 'kWh',
},
'qmi.plug.psv3:power_cost_month': {
'value_ratio': 1,
'state_class': 'total_increasing',
'device_class': 'energy',
'unit_of_measurement': 'kWh',
},
'qmi.plug.tw02': {
'main_miot_services': 'switch-2',
'sensor_attributes': 'power_cost_today,power_cost_month',
Expand Down

0 comments on commit 77b0ea9

Please sign in to comment.