Skip to content

Commit

Permalink
⚡ add sub-entities for iot.switch.padwb1 (#1566)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Mar 14, 2024
1 parent 69ee33b commit 17a684f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,29 @@
'device_class': 'energy',
'unit_of_measurement': 'kWh',
},
'iot.switch.padwb1': {
'sensor_properties': 'a_electric_current,a_power,a_voltage,a_temp,a_fault,'
'b_electric_current,b_power,b_voltage,b_temp,b_fault,'
'c_electric_current,c_power,c_voltage,c_temp,c_fault',
'select_properties': 'default_power_on_state',
'switch_properties': 'self_check,leak_switch,voice_switch',
'number_properties': 'over_electric_set,lack_voltage_set,delay_set,close_temp_set,over_voltage_set,alert_temp_set',
'stat_power_cost_type': 'stat_day_v3',
'stat_power_cost_key': '3.1',
'sensor_attributes': 'power_cost_today,power_cost_month',
},
'iot.switch.padwb1:power_cost_today': {
'value_ratio': 1,
'state_class': 'total_increasing',
'device_class': 'energy',
'unit_of_measurement': 'kWh',
},
'iot.switch.padwb1:power_cost_month': {
'value_ratio': 1,
'state_class': 'total_increasing',
'device_class': 'energy',
'unit_of_measurement': 'kWh',
},
'isa.camera.hlc7': {
'select_properties': 'night_shot,recording_mode,detection_sensitivity',
'switch_properties': 'on,time_watermark,motion_detection',
Expand Down
1 change: 1 addition & 0 deletions custom_components/xiaomi_miot/core/miot_local_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@
'ijomoo.toilet.zs320',
'iot.plug.socn1',
'iot.switch.padw2p',
'iot.switch.padwb1',
'isa.camera.hlc7',
'isa.camera.hlc8',
'isa.camera.hlc9a',
Expand Down

0 comments on commit 17a684f

Please sign in to comment.