Hi again, after some tests I’ve found that the only way to show the error is this:
- Create a template under devices and settings → Helpers
- The template has to be of type SENSOR
add the following code:
{% set mapper = {
'0' : 'Normale',
'1' : 'Errore Generico',
'2' : 'Tanica Piena'} %}
{% set state = states('sensor.deumidificatore_stato_errori') %}
{{ mapper[state] if state in mapper else 'Sconosciuto' }}
to model state, where “sensor.deumidificatore_stato_errori” is the actual sensor (SENSOR type with enum type in device class, all the rest as default) with DP 11 from the dehumidifier.
Then use that template to show the correct naming of the error.