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

AInice三体传感器实体不可用 #1696

Closed
ga312280754 opened this issue May 31, 2024 · 3 comments
Closed

AInice三体传感器实体不可用 #1696

ga312280754 opened this issue May 31, 2024 · 3 comments

Comments

@ga312280754
Copy link

Device model / 设备型号

ainice.sensor_occupy.3b

Component version / 插件版本

0.7.18

HA core version / HA版本

2024.2.3

Integrated mode / 集成方式

Automatic (自动模式)

The problem / 问题详情

image

Entity attributes / 实体属性

model: ainice.sensor_occupy.3b
lan_ip: 10.162.0.135
mac_address: DC:ED:83:67:55:02
entity_class: MiotSwitchEntity
home_room: 1014563135 客餐厅
miot_type: urn:miot-spec-v2:device:occupancy-sensor:0000A0BF:ainice-3b:1
switch.on: 1
switch.illumination: 16
state_updater: lan
device_class: switch
friendly_name: AInice Three Target Scene Sensor Switch
supported_features: 0

Home Assistant Logs / 系统日志

2024-06-01 00:21:20.990 ERROR (MainThread) [custom_components.xiaomi_miot.sensor] AInice Three Target Scene Sensor(ainice.sensor_occupy.3b): Got MiioException while fetching the state: No response from the device, mapping: {'current_occupied-2-1': {'siid': 2, 'piid': 1}, 'occupancy_sensor.total_occupied': {'siid': 2, 'piid': 2}, 'has_someone_duration-2-3': {'siid': 2, 'piid': 3}, 'no_one_duration-2-4': {'siid': 2, 'piid': 4}, 'occupancy_sensor.a_occupied': {'siid': 2, 'piid': 5}, 'a_someone_duration-2-6': {'siid': 2, 'piid': 6}, 'a_noone_duration-2-7': {'siid': 2, 'piid': 7}, 'occupancy_sensor.b_occupied': {'siid': 2, 'piid': 8}, 'b_someone_duration-2-9': {'siid': 2, 'piid': 9}, 'b_noone_duration-2-10': {'siid': 2, 'piid': 10}, 'occupancy_sensor.c_occupied': {'siid': 2, 'piid': 11}, 'c_someone_duration-2-12': {'siid': 2, 'piid': 12}, 'c_noone_duration-2-13': {'siid': 2, 'piid': 13}, 'occupancy_sensor.d_occupied': {'siid': 2, 'piid': 14}, 'd_someone_duration-2-15': {'siid': 2, 'piid': 15}, 'd_noone_duration-2-16': {'siid': 2, 'piid': 16}, 'occupancy_sensor.e_occupied': {'siid': 2, 'piid': 17}, 'e_someone_duration-2-18': {'siid': 2, 'piid': 18}, 'e_noone_duration-2-19': {'siid': 2, 'piid': 19}, 'general.radar_switch': {'siid': 4, 'piid': 1}, 'general.map_index': {'siid': 4, 'piid': 4}, 'general.zone_param': {'siid': 4, 'piid': 5}, 'general.target_param': {'siid': 4, 'piid': 6}, 'general.duration_param': {'siid': 4, 'piid': 7}, 'general.count_switch': {'siid': 4, 'piid': 8}, 'general.map_seq': {'siid': 4, 'piid': 9}, 'general.map_read': {'siid': 4, 'piid': 10}, 'general.time_param': {'siid': 4, 'piid': 12}, 'general.traction': {'siid': 4, 'piid': 13}, 'general.radar_duration': {'siid': 4, 'piid': 14}, 'switch.on': {'siid': 3, 'piid': 1}, 'switch.illumination': {'siid': 3, 'piid': 2}}, max_properties: 8/32
2024-06-01 00:21:21.490 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:22.489 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:23.489 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:24.490 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:25.490 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:26.489 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:27.489 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:28.489 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:29.490 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:30.490 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:31.489 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:32.490 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:33.490 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:34.490 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:35.490 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:36.490 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:37.490 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:38.491 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:39.490 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:40.490 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:40.813 WARNING (MainThread) [homeassistant.components.sensor] Updating xiaomi_miot sensor took longer than the scheduled update interval 0:00:10
2024-06-01 00:21:41.490 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:42.491 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:43.492 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:44.489 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:45.489 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:46.490 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:47.494 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:48.490 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:49.490 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:50.489 WARNING (MainThread) [custom_components.xiaomi_miot] Call service failed: Entities not found for ['sensor.ainice_3b_xxxx_occupancy_sensor']
2024-06-01 00:21:50.813 WARNING (MainThread) [homeassistant.components.sensor] Updating xiaomi_miot sensor took longer than the scheduled update interval 0:00:10

@al-one
Copy link
Owner

al-one commented Jun 4, 2024

尝试重启传感器。

@FredWang1999
Copy link

有同样问题,ainice三体传感器能正常添加,但是添加一段时间后显示设备不可用,米家插件内重启/重新上电/重启HA虚拟机均无法恢复稳定连接,并且在能连上的时间段里执行HA自动化延迟很高(已使用 #1558 的自动化配置)
不管HA能否连接,米家app内可正常连接/正常触发米家自动化设置。
另外设备不可用状态似乎和该传感器能否连接互联网有关?在偶然拔掉路由器网线之后HA连接恢复正常,并且自动化执行速度很快,也许可以尝试屏蔽该传感器的互联网连接来增强和HA的连接,难道是HA和米家自动化冲突了?

@al-one
Copy link
Owner

al-one commented Aug 16, 2024

疑似一次性获取太多属性造成设备无响应,请更新master后重试。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants