Rule1 ON Switch1#state=1 DO Backlog Publish stat/%topic%/PIR ON; RuleTimer1 30 ENDON ON Rules#Timer=1 do Publish stat/%topic%/PIR OFF ENDON 对比正常的规则在 state=0/1 分别发送 OFF/ON 1 Rule1 ON Switch1#state=1 DO Publish stat/%topic%/PIR ON ENDON ON Switch1#state=0 do P...
Rule2 on Switch2#state=1 do publish stat/%topic%/PIR1 ON endon on Switch2#state=0 do Publish stat/%topic%/PIR1 OFF endon Rule2 1 这里 第一句是设置switch mode为 1,这其实是把电压映射到状态(on/off),1 表示低电压为关,高电压为开; 第二句是设置switch topic,即状态发生变化时发布 mqtt ...
SwitchMode 1: 设置开关模式为“遵循”(物理开关为开则智能开关为开,反之亦然。此选项可用于接入人体传感器) SwitchMode 2: 设置开关模式为“反遵循”(物理开关为开则智能开关为关,反之亦然。) SwitchMode 3: 设置开关模式为“常通按钮”,用于连接按钮或自复位开关(门禁开关),当开关断开时为一次切换。 SwitchMo...
light:-platform:mqttname:"Tasmota Switch"state_topic:"stat/tasmota/RESULT"value_template:"{{ value...
SwitchMode21 然后按下面配置传感器:binary_sensor:- platform: mqtt name: "PIR"qos: 1 state_topic...
这样就可以正常测试mqtt设备了,此处是用sensor做案例,switch情况请参考homeassistant网站的mqtt dicovery 和mqtt switch页面,应该是再多一个command_topic。此处没有尝试过。 下一步就是测试通过的mqtt配置写configuration.yaml 我的样例: sensor: - platform: mqtt ...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
Add Switch state to sensor status (#227, #233) Add user configuarble GPIO to module Sonoff Touch (#228) Add define WEB_PORT to user_config.h to change default web server port from 80 (#232) Fix failed Ota Firmware upgrade started from Web page (#235)4.0...
A fork of Tasmota specifically to deal with issues of ACs with power toggle operation. This was merged upsteam (https://github.com/arendst/Tasmota/pull/9472). Expected to be released in Tasmota v9. - Tasmota/tasmota/tasmota.h at d7f6c78ed953f3d9fb7dbbe6a
Add Switch state to sensor status (#227, #233) Add user configuarble GPIO to module Sonoff Touch (#228) Add define WEB_PORT to user_config.h to change default web server port from 80 (#232) Fix failed Ota Firmware upgrade started from Web page (#235)4.0...