Skip to content

Commit

Permalink
migrate bath heater
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Oct 31, 2024
1 parent ca2c312 commit 561dbe5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
9 changes: 0 additions & 9 deletions custom_components/xiaomi_miot/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,15 +254,6 @@ async def async_update(self):
add_fans([self._subs[des]], update_before_add=True)

add_switches = self._add_entities.get('switch')
for p in self._miot_service.properties.values():
if not (p.format == 'bool' and p.readable and p.writeable):
continue
if p.name in self._power_modes:
continue
if self._prop_power and self._prop_power.name == p.name:
continue
self._update_sub_entities(p, None, 'switch')

if self._miot_service.get_action('start_wash'):
pnm = 'action_wash'
prop = self._miot_service.get_property('status')
Expand Down
6 changes: 5 additions & 1 deletion custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1642,6 +1642,9 @@
'yeelink.bhf_light.v13': {
'miot_type': 'urn:miot-spec-v2:device:bath-heater:0000A028:yeelink-v13:1',
},
'yeelink.bhf_light.*': {
'switch_properties': 'heating,blow,ventilation',
},
'yeelink.light.dn2grp': {
'cloud_delay_update': 7,
},
Expand Down Expand Up @@ -1942,7 +1945,8 @@
},
'*.bhf_light.*': {
'main_miot_services': 'ptc_bath_heater',
'number_properties': 'off_delay_time',
'sensor_properties': 'temperature',
'number_properties': 'target_temperature,off_delay_time',
},
'*.blanket.*': {
'sensor_properties': 'temperature',
Expand Down

0 comments on commit 561dbe5

Please sign in to comment.