Power switch on if no network

23 views
Skip to first unread message

Brian

unread,
Apr 11, 2022, 4:24:32 AM4/11/22
to TasmotaUsers
Is it possible to get Tasmota to power a switch on if the device loses network connection?

Use case is a switch used to cycle a battery. If the network goes down, I want to default the switch to on - if it was in an off mode, it may not get the command to switch back on when the device it is controlling gets to a low power state.

Philip Knowles

unread,
Apr 11, 2022, 8:40:31 AM4/11/22
to Brian, TasmotaUsers

You can use the on wifi#disconnected do... trigger

Rules - Tasmota

BUT be aware loss of wifi for long periods can cause undesirable side effects (including reset of the device)

 

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/9d8503f1-3449-4886-9fb4-95b79b0b771dn%40googlegroups.com.

 

Kim Wall

unread,
Apr 11, 2022, 8:49:51 AM4/11/22
to TasmotaUsers
Alternatively, you could use Mqtt#Disconnected as a trigger, on the
basis that not all network problems result in the loss of WiFi.


Kim.

On 11/04/2022 13:40, Philip Knowles wrote:
> You can use the on wifi#disconnected do... trigger
>
> Rules - Tasmota <https://tasmota.github.io/docs/Rules/#rule-trigger>
>
> BUT be aware loss of wifi for long periods can cause undesirable side
> effects (including reset of the device)
>
> Regards
>
> Phil K
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
>
> *From: *Brian <mailto:brian...@gmail.com>
> *Sent: *11 April 2022 09:24
> *To: *TasmotaUsers <mailto:sonof...@googlegroups.com>
> *Subject: *Power switch on if no network
>
> Is it possible to get Tasmota to power a switch on if the device loses
> network connection?
>
> Use case is a switch used to cycle a battery. If the network goes down,
> I want to default the switch to on - if it was in an off mode, it may
> not get the command to switch back on when the device it is controlling
> gets to a low power state.
>
> --
> 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
> <mailto:sonoffusers...@googlegroups.com>.
> <https://groups.google.com/d/msgid/sonoffusers/9d8503f1-3449-4886-9fb4-95b79b0b771dn%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> 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
> <mailto:sonoffusers...@googlegroups.com>.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/sonoffusers/A7EEA86B-4AE5-4D90-86CA-13F01244BA52%40hxcore.ol
> <https://groups.google.com/d/msgid/sonoffusers/A7EEA86B-4AE5-4D90-86CA-13F01244BA52%40hxcore.ol?utm_medium=email&utm_source=footer>.
kim.vcf
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages