How to turn off your smart bulbs in case of power failure

If you like it, share it

Come spegnere le lampadine intelligenti in caso di interruzione di corrente

  • Explanations in English language are here
  • Le spiegazioni in Italiano sono qui


You can use this tips and tricks with iHost and Home Assistant and my be with also used for other automation systems.
As you know, when there is a power failure, when back the current your smart bulbs goes on and this is a problem if you isn’t at home, your bulbs be ON for a lot of time an you spend a maney for nothins.

For do this is necessary only a smart relay than at power on it’s go for default to OFF.
We use a ZigBee network and a right relay is SONOFF MINI

The particularity of the SONOFF MINI is that when you power it, it start for default in OFF state, so we use a simple software (witen using Node-RED) for force all the smart bulbs OFF if for some reason the power supply goes off and next come back, like during the storms.

ATTENTION:
We suggest to read this page because is propedeutics of you if there is the first time that you approach Node-RED.

Below there is the block diagram of the SW written with Node-RED used inside iHOST.

For see the configurations of each Node-RED function go here.

Puoi usare questi suggerimenti e trucchi con iHost e Home Assistant e potrebbero essere usati anche per altri sistemi di automazione.
Come sapete, quando manca la corrente e poi torna la corrente le lampadine intelligenti si accendono e questo può rappresentare un problema se non siete a casa, le lampadine restano accese per molto tempo e voi spendete un sacco di soldi per niente.

Per fare questo è necessario solo uno smart relè che all’accensione per default si posiziona su OFF.
Noi utilizziamo una rete ZigBee e il relè giusto è SONOFF MINI
La particolarità del SONOFF MINI è che quando lo si alimenta, si avvia per impostazione predefinita in stato di OFF, quindi con un semplice software (scritto utilizzando Node-RED) spegneremo tutte le lampadine intelligenti se per qualche motivo si sono accese a causa di una mancanza di alimentazione, come durante i temporali.

ATTENZIONE:
Ti consigliamo di leggere questa pagina perché è propedeutica se è la prima volta che ti avvicini a Node-RED.

Di seguito è riportato lo schema a blocchi del SW scritto con Node-RED utilizzato all’interno di iHOST.

Configurations of the Node-RED functions
Configurazioni delle funzioni di Node-RED


Below there are the bulbs that we turn off.
Qui sotto ci sono le lampadine che spegniamo.


The last command is to turn on the relay so that it is ready for the next power failure.
L’ultimo comando è quello di accendere il relè in modo che sia pronto per la prossima interruzione di corrente.