|
发表于 2020-10-4 09:37:14
|
显示全部楼层
本帖最后由 maybeloveu 于 2020-10-4 09:40 编辑
我的蓝牙网冠接入了4个蓝牙设备,米家锁、门窗传感器、温度传感器、夜灯2.刚接上电反馈还好。过不了多久就没有反馈了尤其是夜灯2常常没更新,米家app里有更新。还有有时会发现wifi里多了个“ESP-11E598”不知道怎么回事。重刷好几遍固件了都没有用。我的配置如下:
sensor:
- platform: mqtt
name: mi_night_light_battery_diningroom
state_topic: 'mqttl/did/4106'
device_class: battery
unit_of_measurement: '%'
value_template: "{{value|int(0,16)}}"
- platform: mqtt
name: mi_night_light_timedelay_diningroom
state_topic: 'mqttl/did/4119'
value_template: "{{value|int(0,16)}}"
binary_sensor:
- platform: template
sensors:
motion_diningroom:
device_class: motion
value_template: >-
{{ is_state('binary_sensor.mi_night_light_shade_motion_diningroom', 'on')
or is_state('binary_sensor.mi_night_light_light_motion_diningroom', 'on') }}
- platform: mqtt
name: mi_night_light_shade_motion_diningroom #on 有人移动暗光
state_topic: "mqttl/did/15"
value_template: "{{value|int(0,16) }}"
off_delay: 10
payload_on: "1"
device_class: motion
- platform: mqtt
name: mi_night_light_light_motion_diningroom #on 有人移动亮光
state_topic: "mqttl/did/15"
value_template: "{{value|int(0,16) }}"
off_delay: 10
payload_on: "100"
device_class: motion
|
|