Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suittc.airrtc.wk168的hvac_modes属性缺少heat #965

Closed
fevenor opened this issue Dec 27, 2022 · 4 comments · Fixed by #983
Closed

suittc.airrtc.wk168的hvac_modes属性缺少heat #965

fevenor opened this issue Dec 27, 2022 · 4 comments · Fixed by #983

Comments

@fevenor
Copy link
Contributor

fevenor commented Dec 27, 2022

Device model / 设备型号

suittc.airrtc.wk168

Component version / 插件版本

0.7.4

HA core version / HA版本

2022.12.8

Integrated mode / 集成方式

Automatic (自动模式)

The problem / 问题详情

智能温控器suittc.airrtc.wk168,当前开关状态展示为独立开关switch.suittc_wk168_xxxx_switch_status,而climate.suittc_wk168_xxxx_thermostathvac_modes属性仅有'off',缺少heat
这导致对climate只能进行关闭操作,若要开启地暖,需要操作switch。
希望能将switch的on状态对应到climate的heat模式

Entity attributes / 实体属性

hvac_modes: off
min_temp: 2
max_temp: 85
target_temp_step: 1
fan_modes: 1
preset_modes: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, off
current_temperature: 15.3
temperature: 18
fan_mode: 1
hvac_action: idle
preset_mode: null
model: suittc.airrtc.wk168
lan_ip: 10.1.8.51
mac_address: <hided>
entity_class: MiotClimateEntity
home_room: <hided>
miot_type: urn:miot-spec-v2:device:thermostat:0000A031:suittc-wk168:1
thermostat.on: true
thermostat.fan_level: 1
thermostat.mode: 9
thermostat.target_temperature: 18
thermostat.temperature: 15.3
custom_program.mon_pro: 0x01,0x00,0x05,0x10,0x14,0x20,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05
custom_program.tue_pro: 0x02,0x00,0x05,0x10,0x14,0x20,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05
custom_program.wed_pro: 0x04,0x00,0x05,0x10,0x14,0x20,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05
custom_program.thur_pro: 0x08,0x00,0x05,0x10,0x14,0x20,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05
custom_program.fri_pro: 0x10,0x00,0x05,0x10,0x14,0x20,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05
custom_program.sat_pro: 0x20,0x00,0x05,0x10,0x14,0x20,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05
custom_program.sun_pro: 0x40,0x00,0x05,0x10,0x14,0x20,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05
state_updater: lan
sub_entities: thermostat-2.on-1
friendly_name: <hided>
supported_features: 25

Home Assistant Logs / 系统日志

No response

@al-one
Copy link
Owner

al-one commented Dec 28, 2022

请更新master分支后再试。

@fevenor
Copy link
Contributor Author

fevenor commented Dec 31, 2022

请更新master分支后再试。

更新后删除设备重新添加测试,注意到实体状态为heat,但是hvac_modes属性依然只有off,同时hvac_action属性消失

hvac_modes: off
min_temp: 2
max_temp: 85
target_temp_step: 1
fan_modes: 1
preset_modes: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, off
current_temperature: 14.5
temperature: 11
fan_mode: 1
preset_mode: null
model: suittc.airrtc.wk168
lan_ip: 10.1.8.51
mac_address: <hided>
entity_class: MiotClimateEntity
home_room: <hided>
miot_type: urn:miot-spec-v2:device:thermostat:0000A031:suittc-wk168:1
thermostat.on: true
thermostat.fan_level: 1
thermostat.mode: 1
thermostat.target_temperature: 11
thermostat.temperature: 14.5
custom_program.mon_pro: 0x01,0x00,0x05,0x10,0x14,0x20,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05
custom_program.tue_pro: 0x02,0x00,0x05,0x10,0x14,0x20,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05
custom_program.wed_pro: 0x04,0x00,0x05,0x10,0x14,0x20,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05
custom_program.thur_pro: 0x08,0x00,0x05,0x10,0x14,0x20,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05
custom_program.fri_pro: 0x10,0x00,0x05,0x10,0x14,0x20,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05
custom_program.sat_pro: 0x20,0x00,0x05,0x10,0x14,0x20,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05
custom_program.sun_pro: 0x40,0x00,0x05,0x10,0x14,0x20,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05,0x30,0x05
state_updater: lan
sub_entities: thermostat-2.on-1
friendly_name: <hided>
supported_features: 25

@fevenor
Copy link
Contributor Author

fevenor commented Dec 31, 2022

同时hvac_action属性消失

使用米家APP执行关闭操作后,属性出现了

hvac_action: off

@fevenor
Copy link
Contributor Author

fevenor commented Jan 1, 2023

master分支似乎存在新的问题:

2023-01-01 17:22:13.163 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.suittc_wk168_fef9_thermostat fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 527, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 722, in async_device_update
    raise exc
  File "/config/custom_components/xiaomi_miot/climate.py", line 204, in async_update
    await super().async_update()
  File "/config/custom_components/xiaomi_miot/__init__.py", line 1343, in async_update
    results = await self.hass.async_add_executor_job(
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/xiaomi_miot/__init__.py", line 655, in get_properties_for_mapping
    return self.get_properties(
  File "/usr/local/lib/python3.10/site-packages/miio/device.py", line 240, in get_properties
    values.extend(self.send(property_getter, _props[:max_properties]))
  File "/usr/local/lib/python3.10/site-packages/miio/device.py", line 107, in send
    return self._protocol.send(
  File "/usr/local/lib/python3.10/site-packages/miio/miioprotocol.py", line 202, in send
    self.__id = payload["id"]
TypeError: byte indices must be integers or slices, not str

@al-one al-one linked a pull request Jan 8, 2023 that will close this issue
@fevenor fevenor closed this as completed Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants