Garage Door Controller - POWER topic

350 views
Skip to first unread message

TePeBox

unread,
May 23, 2020, 8:14:02 AM5/23/20
to TasmotaUsers
Hi,

sorry, I'm a beginner, I need some help...

I have bought the following device: https://templates.blakadder.com/garage_door_controller.html. I flashed it OTA with the newest Tasmota, used the provided template, installed a MQTT broker, iobroker, NodeRed and everything, but I'm now struggling with the information passed via MQTT. Basically what happens is like that:

Someone switches power on, after 2 seconds the power is reverted back to off automatically. The POWER topic reports that nicely.

But what is strange is the behaviour of the attached reed switch which is there to monitor the status of the garage door. It reports the status of the door in the POWER topic as well as On/Off. So you never can differentiate if someone just initated the motor to start, if the relais of the device switches off after 2 seconds automatically or if the door just closed by reading the sensor. Pretty much useless.

At the end of the instructions here https://templates.blakadder.com/garage_door_controller.html it's already said that somehow the POWER topic needs to be separated from the reading from the reed switch. But I have absolutely no clue how to do that.

Anyone out there who can help me with that?

The idea is very simple: I want to control the state of the garage door, so I want to have a command like "on" and "off" (open / close) and when I set it to on and the door is already open it's doing nothing. If the door is closed I want to open it so the ralais should be switched on for 2 seconds and then off again (like pressing the button on the garage door motor). Same with closing it. If it's already closed it should do nothing, if it's open it should be closed by starting the motor. 

Doesn't sound so fancy but I didn't find anything like that "ready to be reused" so I'm trying to build that on my own with NodeRed but for that I need Tasmota to report the status correctly and independent for the power switch and the reed sensor... 

THANIS for any help...


Thomas

Thomas Hübner

unread,
May 23, 2020, 9:18:43 AM5/23/20
to sonof...@googlegroups.com
Have you activated the rules as described in the description?
Rule1 on switch2#state=1 do publish2 stat/SW_Garage/POWER2 Open endon on switch2#state=0 do publish2 stat/SW_Garage/POWER2 Closed endon

A good example for programming a garage door is described her: https://tasmota.github.io/docs/Rules/#garage-door-opener
Also Open and Close commands should work by publishing "Event Open/Close/Stop" to the cmnd topic (never tried it so far).

It uses two reed switches for the end-positions, so the rules will not fit for you.

TePeBox

unread,
May 23, 2020, 10:00:27 AM5/23/20
to TasmotaUsers
OK, misunderstood the rule, it makes sense for me now and from what I understand it's exactly what I need.

However... I tried it but it doesn't seem to work... See my console log
14:54:11 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T14:54:11"}}
14:54:14 CMD: Rule1 on switch2#state=1 do publish2 stat/garage/POWER2 Open endon on switch2#state=0 do publish2 stat/garage/POWER2 Closed endon
14:54:14 RUL: Stored uncompressed, would compress from 123 to 64 (-48%)
14:54:14 MQT: stat/garage/RESULT = {"Rule1":"ON","Once":"OFF","StopOnError":"OFF","Length":123,"Free":388,"Rules":"on switch2#state=1 do publish2 stat/garage/POWER2 Open endon on switch2#state=0 do publish2 stat/garage/POWER2 Closed endon"}
14:54:16 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T14:54:16"}}
14:54:21 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T14:54:21"}}
14:54:26 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T14:54:26"}}
14:54:30 MQT: stat/garage/RESULT = {"POWER":"ON"}
14:54:30 MQT: stat/garage/POWER = ON
14:54:31 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T14:54:31"}}
14:54:33 MQT: stat/garage/RESULT = {"POWER":"OFF"}
14:54:33 MQT: stat/garage/POWER = OFF
14:54:36 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T14:54:36"}}
14:54:41 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T14:54:41"}}
14:54:43 MQT: stat/garage/RESULT = {"POWER":"ON"}
14:54:43 MQT: stat/garage/POWER = ON
14:54:45 MQT: stat/garage/RESULT = {"POWER":"OFF"}
14:54:45 MQT: stat/garage/POWER = OFF
14:54:46 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T14:54:46"}}
14:54:51 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T14:54:51"}}

So I put in the rule and activated it. Afterwards I tried the reed switch, it still reports on the POWER topic, not POWER2 as written in the rule. I tried the switch on the controler, it activates the motor for 2 seconds (as planned), reporting it under the POWER topic (as expected as well). Seems like the switch2 trigger isn't triggered while the hardware itself seems to work. 

I already tried to change the rule to switch1 but no change... How can I find out about the right switch to use?

I saw the sample you provided but sorry, it's way to complex for me to understand as a beginner :-)

THANKS


Thomas

Philip Knowles

unread,
May 23, 2020, 10:40:17 AM5/23/20
to TePeBox, TasmotaUsers

Where is the Switch connected to? Have you configured it in Configuration?

 

Sent from Mail for Windows 10

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/d3fa8b66-b360-4d27-b3f4-85ed2330e90e%40googlegroups.com.

 

Philip Knowles

unread,
May 23, 2020, 10:52:02 AM5/23/20
to Thomas Pagel, TePeBox, TasmotaUsers

OK. In Console type WebLog 3. Operate the reed switch and see what you get

 

Regards

 

Phil K

 

Sent from Mail for Windows 10

 

From: Thomas Pagel
Sent: 23 May 2020 15:42
To: TePeBox; TasmotaUsers; Philip Knowles
Subject: Re: Re: Garage Door Controller - POWER topic

 

Not sure where it's connected to, it comes from factory connected...

Holen Sie sich Outlook fr Android

 


Am Samstag, 23. Mai 2020 15:18:43 UTC+2 schrieb Thomas Hbner:

Have you activated the rules as described in the description?

Rule1 on switch2#state=1 do publish2 stat/SW_Garage/POWER2 Open endon on switch2#state=0 do publish2 stat/SW_Garage/POWER2 Closed endon

 

A good example for programming a garage door is described her: https://tasmota.github.io/docs/Rules/#garage-door-opener

Also Open and Close commands should work by publishing "Event Open/Close/Stop" to the cmnd topic (never tried it so far).

 

It uses two reed switches for the end-positions, so the rules will not fit for you.

 


Am Samstag, 23. Mai 2020 14:14:02 UTC+2 schrieb TePeBox:

Hi,

 

sorry, I'm a beginner, I need some help...

 

I have bought the following device: https://templates.blakadder.com/garage_door_controller.html. I flashed it OTA with the newest Tasmota, used the provided template, installed a MQTT broker, iobroker, NodeRed and everything, but I'm now struggling with the information passed via MQTT. Basically what happens is like that:

 

Someone switches power on, after 2 seconds the power is reverted back to off automatically. The POWER topic reports that nicely.

 

But what is strange is the behaviour of the attached reed switch which is there to monitor the status of the garage door. It reports the status of the door in the POWER topic as well as On/Off. So you never can differentiate if someone just initated the motor to start, if the relais of the device switches off after 2 seconds automatically or if the door just closed by reading the sensor. Pretty much useless.

 

At the end of the instructions here https://templates.blakadder.com/garage_door_controller.html it's already said that somehow the POWER topic needs to be separated from the reading from the reed switch. But I have absolutely no clue how to do that.

 

Anyone out there who can help me with that?

 

The idea is very simple: I want to control the state of the garage door, so I want to have a command like "on" and "off" (open / close) and when I set it to on and the door is already open it's doing nothing. If the door is closed I want to open it so the ralais should be switched on for 2 seconds and then off again (like pressing the button on the garage door motor). Same with closing it. If it's already closed it should do nothing, if it's open it should be closed by starting the motor. 

 

Doesn't sound so fancy but I didn't find anything like that "ready to be reused" so I'm trying to build that on my own with NodeRed but for that I need Tasmota to report the status correctly and independent for the power switch and the reed sensor... 

 

THANIS for any help...

 

 

Thomas

Thomas Hübner

unread,
May 23, 2020, 10:57:26 AM5/23/20
to TasmotaUsers
The output of switchmode and switchtopic would also be interesting.

To unsubscribe from this group and stop receiving emails from it, send an email to sonof...@googlegroups.com.

TePeBox

unread,
May 23, 2020, 11:02:21 AM5/23/20
to TasmotaUsers
Wow, I guess it's now about finding the right information:

15:58:16 SRC: MQTT
15:58:16 CMD: Group 0, Index 1, Command "STATUS", Data "8"
15:58:16 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T15:58:16"}}
15:58:21 SRC: MQTT
15:58:21 CMD: Group 0, Index 1, Command "STATUS", Data "8"
15:58:21 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T15:58:21"}}
15:58:24 TYA: Send "55aa00000000ff"
15:58:24 {"TuyaReceived":{"Data":"55AA030000010104","Cmnd":0,"CmndData":"01"}}
15:58:24 TYA: Heartbeat
15:58:26 SRC: MQTT
15:58:26 CMD: Group 0, Index 1, Command "STATUS", Data "8"
15:58:26 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T15:58:26"}}
15:58:27 {"TuyaReceived":{"Data":"55AA03070005650100010075","Cmnd":7,"CmndData":"6501000100","DpType1Id101":0,"101":{"DpId":101,"DpIdType":1,"DpIdData":"00"}}}
15:58:27 TYA: fnId=0 is set for dpId=101
15:58:27 {"TuyaReceived":{"Data":"55AA03070005010100010011","Cmnd":7,"CmndData":"0101000100","DpType1Id1":0,"1":{"DpId":1,"DpIdType":1,"DpIdData":"00"}}}
15:58:27 TYA: fnId=11 is set for dpId=1
15:58:27 TYA: RX Relay-1 --> MCU State: Off Current State:On
15:58:27 SRC: Switch
15:58:27 MQT: stat/garage/RESULT = {"POWER":"OFF"}
15:58:27 MQT: stat/garage/POWER = OFF
15:58:31 SRC: MQTT
15:58:31 CMD: Group 0, Index 1, Command "STATUS", Data "8"
15:58:31 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T15:58:31"}}
15:58:35 TYA: Send "55aa00000000ff"
15:58:35 {"TuyaReceived":{"Data":"55AA030000010104","Cmnd":0,"CmndData":"01"}}
15:58:35 TYA: Heartbeat
15:58:36 SRC: MQTT
15:58:36 CMD: Group 0, Index 1, Command "STATUS", Data "8"
15:58:36 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T15:58:36"}}
15:58:38 {"TuyaReceived":{"Data":"55AA03070005650100010176","Cmnd":7,"CmndData":"6501000101","DpType1Id101":1,"101":{"DpId":101,"DpIdType":1,"DpIdData":"01"}}}
15:58:38 TYA: fnId=0 is set for dpId=101
15:58:38 {"TuyaReceived":{"Data":"55AA03070005010100010112","Cmnd":7,"CmndData":"0101000101","DpType1Id1":1,"1":{"DpId":1,"DpIdType":1,"DpIdData":"01"}}}
15:58:38 TYA: fnId=11 is set for dpId=1
15:58:38 TYA: RX Relay-1 --> MCU State: On Current State:Off
15:58:38 SRC: Switch
15:58:38 MQT: stat/garage/RESULT = {"POWER":"ON"}
15:58:38 MQT: stat/garage/POWER = ON
15:58:41 SRC: MQTT
15:58:41 CMD: Group 0, Index 1, Command "STATUS", Data "8"
15:58:41 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T15:58:41"}}
15:58:46 TYA: Send "55aa00000000ff"
15:58:46 {"TuyaReceived":{"Data":"55AA030000010104","Cmnd":0,"CmndData":"01"}}
15:58:46 TYA: Heartbeat
15:58:46 SRC: MQTT

THANKS


Thomas

Am Samstag, 23. Mai 2020 16:52:02 UTC+2 schrieb Philip Knowles:

To unsubscribe from this group and stop receiving emails from it, send an email to sonof...@googlegroups.com.

Philip Knowles

unread,
May 23, 2020, 11:17:18 AM5/23/20
to TePeBox, TasmotaUsers

I’d guess that the Switch is set as switch1 which is why the rule isn’t triggering

Thomas

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonof...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/d3fa8b66-b360-4d27-b3f4-85ed2330e90e%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.

To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/7f82a32b-9445-450f-ad56-20cb04b7fe5b%40googlegroups.com.

 

TePeBox

unread,
May 23, 2020, 11:22:56 AM5/23/20
to TasmotaUsers
Tried that, no success...

16:18:46 CMD: Group 0, Index 1, Command "STATUS", Data "8"
16:18:46 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T16:18:46"}}
16:18:51 SRC: MQTT
16:18:51 CMD: Group 0, Index 1, Command "STATUS", Data "8"
16:18:51 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T16:18:51"}}
16:18:55 CMD: Rule1 on switch1#state=1 do publish2 stat/garage/POWER2 Open endon on switch1#state=0 do publish2 stat/garage/POWER2 Closed endon
16:18:55 SRC: WebConsole from 192.168.200.72
16:18:55 CMD: Group 0, Index 1, Command "RULE", Data "on switch1#state=1 do publish2 stat/garage/POWER2 Open endon on switch1#state=0 do publish2 stat/garage/POWER2 Closed endon"
16:18:55 RUL: Stored uncompressed, would compress from 123 to 64 (-48%)
16:18:55 MQT: stat/garage/RESULT = {"Rule1":"ON","Once":"OFF","StopOnError":"OFF","Length":123,"Free":388,"Rules":"on switch1#state=1 do publish2 stat/garage/POWER2 Open endon on switch1#state=0 do publish2 stat/garage/POWER2 Closed endon"}
16:18:55 CFG: Saved to flash at F9, Count 55, Bytes 4096
16:18:56 TYA: Send "55aa00000000ff"
16:18:56 {"TuyaReceived":{"Data":"55AA030000010104","Cmnd":0,"CmndData":"01"}}
16:18:56 TYA: Heartbeat
16:18:56 SRC: MQTT
16:18:56 CMD: Group 0, Index 1, Command "STATUS", Data "8"
16:18:56 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T16:18:56"}}
16:19:01 SRC: MQTT
16:19:01 CMD: Group 0, Index 1, Command "STATUS", Data "8"
16:19:01 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T16:19:01"}}
16:19:02 {"TuyaReceived":{"Data":"55AA03070005650100010075","Cmnd":7,"CmndData":"6501000100","DpType1Id101":0,"101":{"DpId":101,"DpIdType":1,"DpIdData":"00"}}}
16:19:02 TYA: fnId=0 is set for dpId=101
16:19:02 {"TuyaReceived":{"Data":"55AA03070005010100010011","Cmnd":7,"CmndData":"0101000100","DpType1Id1":0,"1":{"DpId":1,"DpIdType":1,"DpIdData":"00"}}}
16:19:02 TYA: fnId=11 is set for dpId=1
16:19:02 TYA: RX Relay-1 --> MCU State: Off Current State:On
16:19:02 SRC: Switch
16:19:02 MQT: stat/garage/RESULT = {"POWER":"OFF"}
16:19:02 MQT: stat/garage/POWER = OFF
16:19:06 SRC: MQTT
16:19:06 CMD: Group 0, Index 1, Command "STATUS", Data "8"
16:19:06 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T16:19:06"}}
16:19:07 TYA: Send "55aa00000000ff"
16:19:07 {"TuyaReceived":{"Data":"55AA030000010104","Cmnd":0,"CmndData":"01"}}
16:19:07 TYA: Heartbeat
16:19:11 SRC: MQTT
16:19:11 CMD: Group 0, Index 1, Command "STATUS", Data "8"
16:19:11 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T16:19:11"}}
16:19:13 {"TuyaReceived":{"Data":"55AA03070005650100010176","Cmnd":7,"CmndData":"6501000101","DpType1Id101":1,"101":{"DpId":101,"DpIdType":1,"DpIdData":"01"}}}
16:19:13 TYA: fnId=0 is set for dpId=101
16:19:13 {"TuyaReceived":{"Data":"55AA03070005010100010112","Cmnd":7,"CmndData":"0101000101","DpType1Id1":1,"1":{"DpId":1,"DpIdType":1,"DpIdData":"01"}}}
16:19:13 TYA: fnId=11 is set for dpId=1
16:19:13 TYA: RX Relay-1 --> MCU State: On Current State:Off
16:19:13 SRC: Switch
16:19:13 MQT: stat/garage/RESULT = {"POWER":"ON"}
16:19:13 MQT: stat/garage/POWER = ON
16:19:16 SRC: MQTT
16:19:16 CMD: Group 0, Index 1, Command "STATUS", Data "8"
16:19:16 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T16:19:16"}}
16:19:18 TYA: Send "55aa00000000ff"
16:19:18 {"TuyaReceived":{"Data":"55AA030000010104","Cmnd":0,"CmndData":"01"}}
16:19:18 TYA: Heartbeat
16:19:21 SRC: MQTT
16:19:21 CMD: Group 0, Index 1, Command "STATUS", Data "8"
16:19:21 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T16:19:21"}}
16:20:26 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T16:20:26"}}

Philip Knowles

unread,
May 23, 2020, 11:34:01 AM5/23/20
to TePeBox, TasmotaUsers

I think you need to read this page.

https://tasmota.github.io/docs/TuyaMCU/

It explains how to use the Tuya MCU and you may need to set the items listed in the template

fnId=2 is set for dpId=101

fnId=11 is set for dpId=1

fnId=0 is set for dpId=7

 

Thomas Hübner

unread,
May 23, 2020, 11:38:25 AM5/23/20
to TePeBox, TasmotaUsers
The interesting lines are:

15:58:27 TYA: RX Relay-1 --> MCU State: Off Current State:On
15:58:27 SRC: Switch

15:58:38 TYA: RX Relay-1 --> MCU State: On Current State:Off
15:58:38 SRC: Switch

I guess you need to configure the TuyaMCU as described in the template description:
fnId=2 is set for dpId=101
fnId=11 is set for dpId=1

fnId=0 is set for dpId=7

Something like 
Backlog TuyaMCU 2, 101; TuyaMCU 11, 1; TuyaMCU 0, 7; 

TuyaMCU 2, 101 should connect switch2. I guess… Give it a try...

TePeBox

unread,
May 23, 2020, 11:51:33 AM5/23/20
to TasmotaUsers
Well, after sending the Backlog command from the console (I guess it restarted the device then) and reverting back the rule to the initial state (with switch2) I now see this:
16:43:00 SRC: MQTT
16:43:00 CMD: Group 0, Index 1, Command "STATUS", Data "8"
16:43:00 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T16:43:00"}}
16:43:05 SRC: MQTT
16:43:05 CMD: Group 0, Index 1, Command "STATUS", Data "8"
16:43:05 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T16:43:05"}}
16:43:06 {"TuyaReceived":{"Data":"55AA03070005650100010075","Cmnd":7,"CmndData":"6501000100","DpType1Id101":0,"101":{"DpId":101,"DpIdType":1,"DpIdData":"00"}}}
16:43:06 TYA: fnId=2 is set for dpId=101
16:43:06 TYA: RX Switch-2 --> MCU State: 0 Current State:1
16:43:06 SRC: Switch
16:43:06 MQT: stat/garage/RESULT = {"POWER":"OFF"}
16:43:06 MQT: stat/garage/POWER = OFF
16:43:06 {"TuyaReceived":{"Data":"55AA03070005010100010011","Cmnd":7,"CmndData":"0101000100","DpType1Id1":0,"1":{"DpId":1,"DpIdType":1,"DpIdData":"00"}}}
16:43:06 TYA: fnId=11 is set for dpId=1
16:43:06 TYA: RX Relay-1 --> MCU State: Off Current State:Off
16:43:10 TYA: Send "55aa00000000ff"
16:43:10 {"TuyaReceived":{"Data":"55AA030000010104","Cmnd":0,"CmndData":"01"}}
16:43:10 TYA: Heartbeat
16:43:10 SRC: MQTT
16:43:10 CMD: Group 0, Index 1, Command "STATUS", Data "8"
16:43:10 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T16:43:10"}}
16:43:13 {"TuyaReceived":{"Data":"55AA03070005650100010176","Cmnd":7,"CmndData":"6501000101","DpType1Id101":1,"101":{"DpId":101,"DpIdType":1,"DpIdData":"01"}}}
16:43:13 TYA: fnId=2 is set for dpId=101
16:43:13 TYA: RX Switch-2 --> MCU State: 1 Current State:0
16:43:13 SRC: Switch
16:43:13 MQT: stat/garage/RESULT = {"POWER":"ON"}
16:43:13 MQT: stat/garage/POWER = ON
16:43:13 {"TuyaReceived":{"Data":"55AA03070005010100010112","Cmnd":7,"CmndData":"0101000101","DpType1Id1":1,"1":{"DpId":1,"DpIdType":1,"DpIdData":"01"}}}
16:43:13 TYA: fnId=11 is set for dpId=1
16:43:13 TYA: RX Relay-1 --> MCU State: On Current State:On
16:43:15 SRC: MQTT
16:43:15 CMD: Group 0, Index 1, Command "STATUS", Data "8"
16:43:15 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T16:43:15"}}
16:43:20 SRC: MQTT
16:43:20 CMD: Group 0, Index 1, Command "STATUS", Data "8"
16:43:20 MQT: stat/garage/STATUS8 = {"StatusSNS":{"Time":"2020-05-23T16:43:20"}}
16:43:21 TYA: Send "55aa00000000ff"
16:43:21 {"TuyaReceived":{"Data":"55AA030000010104","Cmnd":0,"CmndData":"01"}}
16:43:21 TYA: Heartbeat

From what I can see is that the switch is now detected... However the rule still doesn't fire... Already tried the rule with "switch-2" instead of "switch2" but also this doesn't work

Thomas Hübner

unread,
May 23, 2020, 11:58:21 AM5/23/20
to TePeBox, TasmotaUsers
What’s your configuration for SwitchMode and SwitchTopic?
Switchmode should be 4 for switch1 (whatever is connected to this) and for switch2 it should be 1.
 

Tried that, no success...

Rule1 on switch2#state=1 do publish2 stat/SW_Garage/POWER2 Open endon onswitch2#state=0 do publish2 stat/SW_Garage/POWER2 Closed endon

To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/7f255f2b-b60c-4e8e-85ba-d36f638787b0%40googlegroups.com.

TePeBox

unread,
May 23, 2020, 12:59:18 PM5/23/20
to TasmotaUsers
THAT DID THE TRICK!!!

THANKS Thomas Hübner and Philip Knowles!!!

So to summarize:
- Flash the Garage Controller OTA  with Tasmota: https://github.com/ct-Open-Source/tuya-convert/wiki
- Use the following commands:
  - Backlog TuyaMCU 2, 101; TuyaMCU 11, 1; TuyaMCU 0, 7;
  - Switchmode1 4
  - Switchmode2 1
  - Rule1 on switch2#state=1 do publish2 stat/SW_Garage/POWER2 Open endon on switch2#state=0 do publish2 stat/SW_Garage/POWER2 Closed endon
     (don't forget to adjust the topics to what you like to see...)
  - Rule1 1

It might be possible ot compile most of that into a template but that's nothing I'm able to do...


Reply all
Reply to author
Forward
0 new messages