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

人體移動感應器2 問題根源發現 自行已解決 #1643

Open
Shift2Ace opened this issue Apr 27, 2024 · 3 comments
Open

人體移動感應器2 問題根源發現 自行已解決 #1643

Shift2Ace opened this issue Apr 27, 2024 · 3 comments

Comments

@Shift2Ace
Copy link

Device model / 设备型号

xiaomi.motion.pir1

Component version / 插件版本

0.7.17

HA core version / HA版本

2024.4.4

Integrated mode / 集成方式

Automatic (自动模式)

The problem / 问题详情

小米APP是「有人移動」,HS出現 No motion duration-2-1024.error
-704220043 Property value error ,狀態為「安全」
螢幕擷取畫面 2024-04-27 133740

小米APP是「2分鐘無人移動」,HS狀態為「已觸發」
螢幕擷取畫面 2024-04-27 134010

小米APP是「5分鐘無人移動」,HS狀態為「安全」
延遲約10秒
螢幕擷取畫面 2024-04-27 134232

Entity attributes / 实体属性

model: xiaomi.motion.pir1
lan_ip:
mac_address: 18:7A:3E:CE:A0:0F
entity_class: BleBinarySensorEntity
home_room: My Home 臥室1
miot_type: urn:miot-spec-v2:device:motion-sensor:0000A014:xiaomi-pir1:2
motion_sensor.illumination: 53
battery_level: 100
state_updater: cloud
state_property: no_motion_duration-2-1024
sub_entities: battery-3.battery_level-1003, motion_sensor-2.illumination-1005
custom_no_motion_time-2-1053: 1
no_motion_duration-2-1024: 300
device_class: motion
friendly_name: 臥室1人體移動感應器
supported_features: 0

Home Assistant Logs / 系统日志

No response

@poo0ooq
Copy link

poo0ooq commented May 8, 2024

这个好像一直就有问题,始终没有解决。

一大推错误,二代获取不到数据,1代,2S倒是正常。

日志: custom_components.xiaomi_miot.binary_sensor
来源: custom_components/xiaomi_miot/binary_sensor.py:230
集成: Xiaomi Miot Auto (文档, 问题)
首次发生: 2024年5月4日 13:31:47 (753 全部发生)
上次记录: 16:06:47

小米人体传感器2 三楼 卧室(lumi.motion.bmgl01): BLE object data invalid: prop.4123 (['0'])
小米人体传感器2 三楼 卫生间(lumi.motion.bmgl01): BLE object data invalid: prop.4123 (['0'])

@Shift2Ace
Copy link
Author

这个好像一直就有问题,始终没有解决。

一大推错误,二代获取不到数据,1代,2S倒是正常。

日志: custom_components.xiaomi_miot.binary_sensor 来源: custom_components/xiaomi_miot/binary_sensor.py:230 集成: Xiaomi Miot Auto (文档, 问题) 首次发生: 2024年5月4日 13:31:47 (753 全部发生) 上次记录: 16:06:47

小米人体传感器2 三楼 卧室(lumi.motion.bmgl01): BLE object data invalid: prop.4123 (['0']) 小米人体传感器2 三楼 卫生间(lumi.motion.bmgl01): BLE object data invalid: prop.4123 (['0'])

奇怪,我用的是2s

@Shift2Ace
Copy link
Author

Shift2Ace commented May 19, 2024

template:
  - sensor:
      - name: "0200_motion_sensor"
        unique_id: 0200_motion_sensor
        state: >
          {% if state_attr('binary_sensor.xiaomi_pir1_0200_motion_sensor', 'no_motion_duration-2-1024.error') == '-704220043 Property value error' %}
            on
          {% else %}
            off
          {% endif %}          

成功解決

@Shift2Ace Shift2Ace changed the title 人體移動感應器2 問題根源發現 人體移動感應器2 問題根源發現 自行已解決 May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants