rule to control blinds - Tasmot/wemos ESP8266

103 views
Skip to first unread message

elsal...@gmail.com

unread,
May 24, 2022, 10:52:41 AM5/24/22
to TasmotaUsers
hi all,
i'm quite a newby on tasmota, as i was using espeasy for a while.
I've recently switched to to Tasmota/mqtt/domoticz which is more reliable.
however i'm struggling with rules. i don't figure out how to do to achieve my goal.

my config: Wemos mini D1 / tasmota / 3 relays / 3 buttons
I would like to do the following behaviour to control my blind:

->when I single press button1, it power OFF relay3 and then power ON relay1 for 10 secs
->when I double press button1, it power OFF relay3 and then power ON relay1 for 20 secs

->when I single press button2, it power OFF relay3 and relay1


if someone can help me, that would be great

Philip Knowles

unread,
May 24, 2022, 2:24:36 PM5/24/22
to elsal...@gmail.com, TasmotaUsers

You could work most of these out from the rules cookbook. I would use blink for the pulses

You haven’t given all the control state and using setoption73 decouples the button from the relay so you will probably need a rule for relay 3

 

Blinkcount 1

Setoption73 1

 

Rule1

On button1#state=10 do backlog power3,0; blinktime 100;power1 3 endon

On button1#state=11 do backlog power3 0; blinktime 200; power1 3 endon

On button2#state=10 do backlog power3 0; power1 0 endon

On button3#state=10 do power3 1 endon

 

Rule1 1

 

Not tested

 

Regards

 

Phil K

 

Sent from Mail for Windows

--
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/dca41182-cec9-42a8-a25b-44e98c130375n%40googlegroups.com.

 

elsal...@gmail.com

unread,
May 25, 2022, 1:43:41 AM5/25/22
to TasmotaUsers
thanks for your answer :-)

unfortunately this is not working at all. however, i don't understand " On button1#state=10". state of a button shouldn't be 0,1,or HOLD ?

Philip Knowles

unread,
May 25, 2022, 2:31:49 AM5/25/22
to elsal...@gmail.com, TasmotaUsers

No. If you look at the Rules section there isn’t a state for a double press because a double press on Button 1 operates the second relay so you need to ‘decouple’ the button from the relays. When SetOption73 is enabled then the codes change

Buttons and Switches - Tasmota

Single press 10

Double press 11

Triple press 12

 

It’s not helpful just to say ‘This isn’t working at all’.

 

Please cut and paste the console output as you operate the button so we can attempt to work out what is happening.

Reply all
Reply to author
Forward
0 new messages