i have the solarman integration
i did an automation that when the state of the solar panel changes changes, it sends an email
actions:
- action: notify.notifiche_email
data:
target: x@x.y
title: Solarman "{{ trigger.entity_id }}"
message: >-
Errore connessione inverter "{{ trigger.entity_id }}" passato da "{{
trigger.from_state }}" a "{{ trigger.to_state }}"
but i get an eamil with:
Errore connessione inverter "sensor.dogana_remoto_device_state" passato da "<state sensor.dogana_remoto_device_state=Self-test; options=['Standby', 'Self-test', 'Normal', 'Alarm', 'Fault'], value=1, device_class=enum, friendly_name=Dogana remoto Device State @ 2024-10-21T16:36:05.511148+02:00>" a "<state sensor.dogana_remoto_device_state=Normal; options=['Standby', 'Self-test', 'Normal', 'Alarm', 'Fault'], value=2, device_class=enum, friendly_name=Dogana remoto Device State @ 2024-10-21T16:37:05.443515+02:00>"