Skip to content
New issue

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

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

Already on GitHub? # to your account

9am升降桌部分实体不可用 #1992

Closed
HoganChou opened this issue Dec 3, 2024 · 8 comments
Closed

9am升降桌部分实体不可用 #1992

HoganChou opened this issue Dec 3, 2024 · 8 comments

Comments

@HoganChou
Copy link

HoganChou commented Dec 3, 2024

Device model / 设备型号

nineam.desk.hoo01

Component version / 插件版本

1.0.1

HA core version / HA版本

2024.11.3

Integrated mode / 集成方式

Local (本地模式)

The problem / 问题详情

1.0以后的版本中,设备目标高度和桌子控制功能两个实体全部不可用。0.7+版本的则正常可以调用

1.0.0+版本设备界面
1.0.0+版本
0.7+版本设备界面
0.7+版本

Entity attributes / 实体属性

device_class: update
icon: mdi:information
friendly_name: 升降桌 信息
info: 升降桌
model: nineam.desk.hoo01
did: "475793955"
mac: EC:4D:3E:8D:B0:19
lan_ip: 192.168.11.14
app_link: mihome://device?uid=xxxx&did=475793955
miot_type: urn:miot-spec-v2:device:table:0000A068:nineam-hoo01:1
available: true
home_room: Hogan's Home 卧室
updater: local
updated_at: "2024-12-03 14:22:59.377079+08:00"
converters:
  - info
  - table.motor_control-0
  - standing_desk.moving_status
  - standing_desk.current_height
  - standing_desk.fault
  - standing_desk.lock_status
  - desk_reminder.on
  - standing_desk.target_height
  - standing_desk.stand_height
  - standing_desk.sit_height
  - desk_reminder.interval
  - standing_desk.desk_control
  - desk_reminder.mode
customizes:
  button_properties: motor_control,reset
  switch_properties: on,lock_status
  select_properties: mode,desk_control
  number_properties: interval,altitude,target_height,stand_height,sit_height,target_position
  state_property: standing_desk.moving_status
  sensor_properties: current_height,fault,moving_status
desk_reminder.interval: 45
desk_reminder.mode: 5
desk_reminder.on: false
standing_desk.lock_status: true
standing_desk.moving_status: 1
standing_desk.current_height: 1201
standing_desk.fault: 0
standing_desk.stand_height: 1200
standing_desk.sit_height: 720

Home Assistant Logs / 系统日志

No response

@al-one
Copy link
Owner

al-one commented Dec 3, 2024

尝试master分支。

wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot ARCHIVE_TAG=master bash -

@HoganChou
Copy link
Author

尝试master分支。

wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot ARCHIVE_TAG=master bash -

直接全部实体不可用了
1

@al-one
Copy link
Owner

al-one commented Dec 3, 2024

与更新无关,看日志吧

@HoganChou
Copy link
Author

与更新无关,看日志吧

给你看系统日志

Error while setting up xiaomi_miot platform for button
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/homeassistant/helpers/entity_platform.py", line 365, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/xiaomi_miot/button.py", line 30, in async_setup_entry
HassEntry.init(hass, config_entry).new_adder(ENTITY_DOMAIN, async_add_entities)
File "/config/custom_components/xiaomi_miot/core/hass_entry.py", line 75, in new_adder
device.add_entities(domain)
File "/config/custom_components/xiaomi_miot/core/device.py", line 468, in add_entities
entity = cls(self, conv)
^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_miot/core/hass_entity.py", line 78, in init
if not conv.prop.readable():
^^^^^^^^^^^^^^^^^^^^
TypeError: 'bool' object is not callable

Error while setting up xiaomi_miot platform for select
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/homeassistant/helpers/entity_platform.py", line 365, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/xiaomi_miot/select.py", line 34, in async_setup_entry
HassEntry.init(hass, config_entry).new_adder(ENTITY_DOMAIN, async_add_entities)
File "/config/custom_components/xiaomi_miot/core/hass_entry.py", line 75, in new_adder
device.add_entities(domain)
File "/config/custom_components/xiaomi_miot/core/device.py", line 468, in add_entities
entity = cls(self, conv)
^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_miot/core/hass_entity.py", line 78, in init
if not conv.prop.readable():
^^^^^^^^^^^^^^^^^^^^
TypeError: 'bool' object is not callable

Error while setting up xiaomi_miot platform for number
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/homeassistant/helpers/entity_platform.py", line 365, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/xiaomi_miot/number.py", line 35, in async_setup_entry
HassEntry.init(hass, config_entry).new_adder(ENTITY_DOMAIN, async_add_entities)
File "/config/custom_components/xiaomi_miot/core/hass_entry.py", line 75, in new_adder
device.add_entities(domain)
File "/config/custom_components/xiaomi_miot/core/device.py", line 468, in add_entities
entity = cls(self, conv)
^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_miot/core/hass_entity.py", line 78, in init
if not conv.prop.readable():
^^^^^^^^^^^^^^^^^^^^
TypeError: 'bool' object is not callable

Error while setting up xiaomi_miot platform for switch
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/homeassistant/helpers/entity_platform.py", line 365, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/xiaomi_miot/switch.py", line 47, in async_setup_entry
HassEntry.init(hass, config_entry).new_adder(ENTITY_DOMAIN, async_add_entities)
File "/config/custom_components/xiaomi_miot/core/hass_entry.py", line 75, in new_adder
device.add_entities(domain)
File "/config/custom_components/xiaomi_miot/core/device.py", line 468, in add_entities
entity = cls(self, conv)
^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_miot/core/hass_entity.py", line 78, in init
if not conv.prop.readable():
^^^^^^^^^^^^^^^^^^^^
TypeError: 'bool' object is not callable

Error while setting up xiaomi_miot platform for sensor
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/homeassistant/helpers/entity_platform.py", line 365, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/xiaomi_miot/sensor.py", line 47, in async_setup_entry
entry = HassEntry.init(hass, config_entry).new_adder(ENTITY_DOMAIN, async_add_entities)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_miot/core/hass_entry.py", line 75, in new_adder
device.add_entities(domain)
File "/config/custom_components/xiaomi_miot/core/device.py", line 468, in add_entities
entity = cls(self, conv)
^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_miot/core/hass_entity.py", line 78, in init
if not conv.prop.readable():
^^^^^^^^^^^^^^^^^^^^
TypeError: 'bool' object is not callable

@al-one
Copy link
Owner

al-one commented Dec 3, 2024

再次更新

@RykovDC
Copy link

RykovDC commented Dec 3, 2024

再次更新

类似的问题。 重新安装当前版本的集成并没有解决问题。

@RykovDC
Copy link

RykovDC commented Dec 3, 2024

来自日志的消息

Got MiioException while fetching the state: Unable to discover the device 192.168.x.xxx, mapping: {'alarm': {'siid': 6, 'piid': 1}, 'screen.on': {'siid': 5, 'piid': 1}, 'humidifier.on': {'siid': 4, 'piid': 1}, 'humidifier.fault': {'siid': 4, 'piid': 2}, 'countdown.countdown_time': {'siid': 3, 'piid': 1}, 'heater.on': {'siid': 2, 'piid': 1}, 'heater.fault': {'siid': 2, 'piid': 2}, 'heater.status': {'siid': 2, 'piid': 3}, 'heater.mode': {'siid': 2, 'piid': 4}, 'heater.target_temperature': {'siid': 2, 'piid': 5}, 'heater.temperature': {'siid': 2, 'piid': 7}, 'heater.working_time': {'siid': 2, 'piid': 8}}, max_properties: 6/12

@HoganChou
Copy link
Author

再次更新

已解决

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants