Control multiple slampher with one on a switch

24 views
Skip to first unread message

Mace Moneta

unread,
Apr 29, 2020, 7:17:39 PM4/29/20
to TasmotaUsers
I have five Slampher running Tasmota (8.2.0) in fixtures in my basement, that I'd like to operate together. The first is in a switch controlled socket. The remaining four of them are always powered up (PowerOnState off). 

When I turn on the switch, the slampher boots up. I understand I can power on the other four with rules for system#boot using websend.

My issue is having them power off when the first one is switched off (loss of power). How do I have the remaining slamphers test that the first has become unreachable?

Websend will return RESULT = {"WebSend":"Connect failed"} when the first slampher is powered off, but I don't know how to use that result in a rule.

Philip Knowles

unread,
Apr 29, 2020, 11:22:47 PM4/29/20
to TasmotaUsers, Mace Moneta
You could try it the other way. Every minute in the other 4 start a rule with a backlogged 15 second delay followed by a power off command. The first should run a rule which sends an empty backlog command every minute to the other 4. This will clear the backlog buffer and the others will stay on. If it's not powered on the delay timer will time out after 15 seconds and turn the power off.
Something like
On time#minute do backlog  delay 150; Power1 0 Endon
If you want to be more subtle you could get the other 4 to send a message to the first which changes var 1-4 to the originator's power state and the first sends the empty backlog as it sees each var change and sets the var back to 0.


Regards

Phil K

Sent from Outlook Mobile


From: sonof...@googlegroups.com <sonof...@googlegroups.com> on behalf of Mace Moneta <monet...@gmail.com>
Sent: Thursday, April 30, 2020 12:17:39 AM
To: TasmotaUsers <sonof...@googlegroups.com>
Subject: Control multiple slampher with one on a switch
 
--
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/fa9e16c2-7a48-49d4-96ab-936e0a61e013%40googlegroups.com.

Mace Moneta

unread,
Apr 29, 2020, 11:42:48 PM4/29/20
to TasmotaUsers
That's an interesting way to accomplish it, thanks!

Philip Knowles

unread,
Apr 30, 2020, 3:32:12 AM4/30/20
to TasmotaUsers, Mace Moneta
Actually, it would be better to make one of the other 4 a 'master'. Let it communicate with the switched one. Set a rule in the switched one to turn on the master at boot and then you have one rule in the master to switch the other 3 on and off based on the state of its output. The master then sends a message setting var1 each minute to the switched one (followed by the backlog delay and power1 0. The switched one has a rule based on var1#state which just sends an empty backlog to the master. If it's powered on it sends the backlog and the delay is reset. If it's off the master doesn't get the reset and powers itself off and the other 3.
A more instantaneous solution would be to permanently power them all and use a Shelly1 as the trigger. It accepts a mains input and in unflashed mode works with MQTT and can send messages to URLs in its settings for power on and off. It could also be flashed with Tasmota to use rules.

Regards

Phil K

Sent from Outlook Mobile


Sent: Thursday, April 30, 2020 4:42:48 AM
To: TasmotaUsers <sonof...@googlegroups.com>
Subject: Re: Control multiple slampher with one on a switch
 
That's an interesting way to accomplish it, thanks!

--
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.
Reply all
Reply to author
Forward
0 new messages