本帖最后由 Clark 于 2021-5-23 16:35 编辑
之前configuration.yaml的SonoffLAN相关参数如下:
sonoff:
username: *****
password: *****
sonoff:
rfbridge:
车间东门磁开: # button name in eWeLink application (open signal)
name: 车间东小门 # optional, you can change sensor name
device_class: door # e.g. door, window
timeout: 0 # disable auto close timeout
payload_off: 车间东门磁关 # button name in eWeLink application (close signal)
Button3:
name: Window Sensor
device_class: window
timeout: 0
payload_off: Button4
后来改成如下参数,再重启HA就恢复正常了。 也许是参数填写方法错了,至于之前能够正常使用的原因也不得而知了。
sonoff:
username: *****
password: *****
rfbridge:
车间东门磁开: # button name in eWeLink application (open signal)
name: 车间东小门 # optional, you can change sensor name
device_class: door # e.g. door, window
timeout: 0 # disable auto close timeout
payload_off: 车间东门磁关 # button name in eWeLink application (close signal)
Button3:
name: Window Sensor
device_class: window
timeout: 0
payload_off: Button4
|