SwitchMode 0: 设置开关模式为“切换”(物理开关状态改变,智能开关状态就改变) SwitchMode 1: 设置开关模式为“遵循”(物理开关为开则智能开关为开,反之亦然。此选项可用于接入人体传感器) SwitchMode 2: 设置开关模式为“反遵循”(物理开关为开则智能开关为关,反之亦然。) SwitchMode 3: 设置开关模式为“常通...
第一句是设置switch mode为 1,这其实是把电压映射到状态(on/off),1 表示低电压为关,高电压为开; 第二句是设置switch topic,即状态发生变化时发布 mqtt 的 topic,0 表示关闭默认的行为(发布 %topic%) 第三句是设置一个自定义规则,在不同状态发布消息到 stats/%topic%/PIR1 第四句是开启第三句设置的规则...
我们这里给一个 PIR 传感器的例子(注意我们这里通常将 PIR 设置为 Switch,默认的行为会打开关闭的时候调用 Power,所以 publish 到 MQTT 上的 topic 是 POWER 结尾的,如果你有洁癖,可以使用 tasmota 的 SwitchMode 15 关闭默认的行为,然后设置 Rule 手动发布消息到自己定义的 topic 比如 stat/%topic%/PIR) 1 2...
SwitchMode21 然后按下面配置传感器:binary_sensor:- platform: mqtt name: "PIR"qos: 1 state_topic...
32 请问按照你所说的方法,成功设置了点动,但是现在想取消怎么办呢?SwitchMode<x> 0 ...
switchmode1 5 // 5=to manage short/long press switchmode2 5 power1 3 (3=blink) so start from actual position that is 55% 23:05:54 CMD: shutterposition1 23:05:54 MQT: stat/tasmota_blind_new/RESULT = {"Shutter1":{"Position":55,"Direction":0,"Target":55}} ...
uint8_t switchmode[MAX_SWITCHES]; // 3A4 myio my_gp; // 3AC 2 x 18 bytes (ESP8266) / 2 x 40 bytes (ESP32) #ifdef ESP8266 uint16_t gpio16_converted; // 3D0 uint8_t free_esp8266_3D2[42]; // 3D2 #endif mytmplt user_template; // 3FC 2 x 15 bytes (ESP8266) ...
Add commands SwitchMode1..4 and enable user switches 2, 3 and 4 (#84, #88) Fix MQTT upgrade when webserver is active3.9.20 20170221Add minimal basic authentication to Web Admin mode (#87) Fix Hue and add HSB support (#89)3.9
Add commands SwitchMode1..4 and enable user switches 2, 3 and 4 (#84, #88) Fix MQTT upgrade when webserver is active3.9.20 20170221Add minimal basic authentication to Web Admin mode (#87) Fix Hue and add HSB support (#89)3.9
(39.5×33 x16.8mm) enables the WiFi smart switch to fit into various boxes, even the smaller European gang boxes. Just like other SONOFF home automation devices, the MINIR4 works with eWelink mobile app, but it also implements some new interesting features such as the ‘Detach Relay’ mode...