Hello everyone, from my panel for the management of the off-grid system on Epever 6415 I was able to configure the state of the system’s condition. I would like to send notification emails when the text value changes state . Example how do I send an email if the status changes from “FLOAT” to “BOOST CHARGE” ? Here’s where I stop :
Ecco il file yaml
sensor:
- platform: template
sensors:
epeverstatustext:
friendly_name: "STATO REG1 battery"
value_template: >-
{% set mapper = {
'0' : 'NORMAL',
'1' : 'NOT CHARGING',
'2' : 'UNDER VOLTAGE',
'3' : 'NONE',
'4' : 'FAULT',
'5' : 'NONE',
'6' : 'NONE',
'7' : 'NONE' } %}
{% set state = states.sensor.PV_Battery_Status_1.state %}
{{ mapper[state] if state in mapper else 'Unknown' }}
- platform: template
sensors:
epeverstatustext:
friendly_name: "STATO REG1 charging"
value_template: >-
{% set mapper = {
'0' : 'NORMAL',
'1' : 'NOT CHARGE',
'2' : 'none',
'3' : 'none',
'4' : 'none',
'5' : 'FLOAT',
'6' : 'none',
'7' : 'none',
'9' : 'BOOST CHARGHING',
'35' : 'OVER VOLTAGE',
'10' : 'NONE',
'11' : 'NONE' } %}
{% set state = states.sensor.PV_Charging_Status_1.state %}
{{ mapper[state] if state in mapper else 'Unknown' }}