Home assistant package that prevents meter detachment
The package has been designed in such a way as to intervene when the thresholds allowed by the meter are exceeded, once the disconnection procedure has been started a check will be carried out every 30 seconds, until the value has returned below the threshold, turning off the loads in the order set by us.
In order to function properly, the switches must be kept off when the appliance is not in use, this is because the package takes into account the status of the switch. If you want to use it with the switches always on, just create Switch Templates
- Home Assistant version 2021.4 or later
- Configured packages, possibly you can follow our Guide
- A sensor that reads the instantaneous power taken from the meter such as pzem or Shelly EM
- copy the "controllo_carichi.yaml" file into the Home Assistant package folder
- Compile your "secrets.yaml" file as the example
custom:
If you are not fond of custom cards, I leave below the list of useful entities in the frontend so that you can create your own custom cards:
- automation.innesco_controllo_carichi
- automation.notifica_accensione_carico_hub
- automation.notifica_spegnimento_carico_hub
- automation.accensione_ultimo_carico_spento
- sensor.potenza
- sensor.ultimo_carico
- sensor.data_ultimo_intervento
- input_select.selettore_kw_contatore
- input_number.tempo_intervento
- input_select.carico_1
- input_select.carico_2
- input_select.carico_3
- input_select.carico_4
- input_select.carico_5
- input_select.carico_6
- input_select.carico_7
- input_select.carico_8
- input_select.carico_9
- input_select.accensione_automatica_caric
- input_select.esclusione_1_riaccensione
- input_select.esclusione_2_riaccensione
The package is ready to send notifications using our notification center. If you do not use it, just change the action of two simple automations, inserting your notification services:
- automation.notifica_accensione_carico_hub
- automation.notifica_spegnimento_carico_hub