我们这里给一个 PIR 传感器的例子(注意我们这里通常将 PIR 设置为 Switch,默认的行为会打开关闭的时候调用 Power,所以 publish 到 MQTT 上的 topic 是 POWER 结尾的,如果你有洁癖,可以使用 tasmota 的 SwitchMode 15 关闭默认的行为,然后设置 Rule 手动发布消息到自己定义的 topic 比如 stat/%topic%/PIR) 1 2...
tasmota 配置对应针脚为 switchN,其中 N=1 的时候有打开 relay1 的默认行为,这个其实是可以 disable 掉 被网上某人误导,我这里设置为 switch2,也不影响什么,但是最重要的就是关闭默认行为为其设置一个 rule 改为对 mqtt 发布信息 这里可以连在 console 界面完成配置: SwitchMode2 1 SwitchTopic 0 Rule2 on S...
SwitchMode 1: 设置开关模式为“遵循”(物理开关为开则智能开关为开,反之亦然。此选项可用于接入人体传感器) SwitchMode 2: 设置开关模式为“反遵循”(物理开关为开则智能开关为关,反之亦然。) SwitchMode 3: 设置开关模式为“常通按钮”,用于连接按钮或自复位开关(门禁开关),当开关断开时为一次切换。 SwitchMo...
32 请问按照你所说的方法,成功设置了点动,但是现在想取消怎么办呢?SwitchMode<x> 0 ...
SwitchMode21 然后按下面配置传感器:binary_sensor:- platform: mqtt name: "PIR"qos: 1 state_topic...
enum SwitchModeOptions {TOGGLE, FOLLOW, FOLLOW_INV, PUSHBUTTON, PUSHBUTTON_INV, PUSHBUTTONHOLD, PUSHBUTTONHOLD_INV, PUSHBUTTON_TOGGLE, TOGGLEMULTI, FOLLOWMULTI, FOLLOWMULTI_INV, PUSHHOLDMULTI, PUSHHOLDMULTI_INV, PUSHON, PUSHON_INV, MAX_SWITCH_OPTION}; enum LedStateOptions {LED_OFF,...
DomoticzSwitchIdx<x> DomoticzUpdateTimer KNX KNX_ENABLED KnxTx_Cmnd<x> KNX_PA KNX_ENHANCED KnxTx_Val<x> KNX_GA<x> KNX_CB<x> Display DisplayAddress Display DisplayDimmer DisplayText DisplayILIMode DisplayInvert DisplayMode DisplayModel DisplayRefresh DisplaySize DisplayType DisplayRo...
Change pinmode for no-pullup defined switches to pullup when configured as switchmode PUSHBUTTON (=3 and up) (#3896) Change default OTA Url to http://thehackbox.org/tasmota/release/sonoff.bin (#4170) Remove support for MQTT Client esp-mqtt-arduino by #define MQTT_LIBRARY_TYPE MQTT_ESP...
颜色(3):1 gang EU UK Smart switch BSD45 套餐(12) single fire line, wifi (single mode) single fire line, wifi and blue tooth control single fire line, blue tooth connect and control single fire line, blue tooth control (single mode) ...
Command SwitchMode 15 sending only MQTT message on switch change (#9593) Command ShutterChange to increment change position (#9594) Command SetOption113 1 to set dimmer low on rotary dial after power off Support for EZO Ph and ORP sensors by Christopher Tremblay (#9567) Support for EZO RTD ...