Recently got repair issues with SMTP notifications I am using in automations so now I’m editing all my automations to correct the syntax but not having much luck.
Repair notification-
Here is an example of one of the automations-
alias: A/C failure notification
description: ''
triggers:
- trigger: numeric_state
entity_id:
- sensor.toad_song_farm_space_temperature
above: 85
conditions: []
actions:
- action: notify.send_email
metadata: {}
data:
message: The A/C appears to have failed. High temp.
title: Heatpump fault
target: [email protected]
mode: single
Here is the same automation after making required changes-
description: 'Send email notification when room temperature is above 85F.'
mode: single
triggers:
- trigger: numeric_state
entity_id:
- sensor.toad_song_farm_space_temperature
above: 85
conditions: []
actions:
- action: notify.send_message
target:
entity_id: send_email
metadata: {}
data:
message: The A/C appears to have failed. High temp.
title: Heatpump fault
alias: A/C failure notification
With the new edit I get this error when trying to save it-
Message malformed: not a valid value for dictionary value @ data['actions'][0]['target']['entity_id']
I am using the entity ID shown in the SMTP integration. Not sure what I’m missing???
