Hello everyone, I have a template where I can view the values of the photovoltaic system. I have a “19” value for a few seconds in the Pv system which I don’t know what it corresponds to in the modbus . I am attaching the image and the taml file of the section.
- 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' }}