嗨,大家好,昨天出现了搁置门/窗户的更新。
他们最终实现了振动和倾斜。
雪莱门/窗:MQTT
从本主题中获取灵感我实施了以下设备:
#################################################### # # # 雪莱门/窗 # # # #################################################### binary_sensor:平台:mqtt state_topic:“雪莱/ shellydw-xxxxxx /传感器/国家”的名字:“雪莱门/窗传感器”payload_on:“开放”payload_off:“关闭”qos: 0 device_class:门-平台:mqtt state_topic: "shellies/shellydw-xxxxxx/sensor/vibration" name: "Shelly Door/Window vibration" payload_on: 'vibration detected' payload_off: 'no vibration' qos: 00 device_class: illuminance unit_of_measurement: 'lux' - platform: mqtt name: "Shelly Door/Window Battery" state_topic: "shellies/shellydw-xxxxxx/sensor/ Battery" value_template: '{{value|round(0)}}' qos: 0{{value|round(0)}}' qos: 0 unit_of_measurement: '°' icon: mdi:angle-acute . {{value|round(0)}}
一切似乎都工作,除了没有检测到的振动,即使从接口通过schelly的ip,当我做振动测试时,它工作,而不是HA没有检测到任何状态。
谁能试试这对你有用吗?
Binary_sensor: - 平台:MQTT endica_topic:“shellies / shellydw-xxxxxx /传感器/振动”名称:“Shelly Door / Window振动”Payload_on:'振动检测到'Payload_off:'无振动'QoS:0 Device_Class:振动
如果我写了什么问题,我不明白,或者是一个毛茸茸的错误
谢谢