I triggers one time and sends the correct message. After a trigger my home-assistant.log file shows this entry if it tries to trigger again…
ERROR (MainThread) [homeassistant.core] Invalid service data for automation.trigger: Entity ID cold house is an invalid entity id for dictionary value @ data['entity_id']. Got 'Cold house'
What’s the state of: sensor.tankpi_temp
Also, if you have the history component loaded, what are some historic states of: sensor.tankpi_temp
Is it a integer, eg 70, or a decimal, eg 70.45
Also, if you throw “House is cold! {{states(‘sensor.tankpi_temp’) }}F” in the template editor, what does it return?
I think I jumped the gun… it still appears not to like the ’ or `, what the heck.
Error with ’ used:
2017-11-14 11:44:20 ERROR (SyncWorker_6) [homeassistant.util.yaml] while parsing a block mapping
in "/config/includes/automations.yaml", line 479, column 9
expected <block end>, but found '<scalar>'
in "/config/includes/automations.yaml", line 480, column 44
2017-11-14 11:44:20 ERROR (MainThread) [homeassistant.components.automation] while parsing a block mapping
in "/config/includes/automations.yaml", line 479, column 9
expected <block end>, but found '<scalar>'
in "/config/includes/automations.yaml", line 480, column 44
Error with `:
2017-11-14 11:46:28 ERROR (MainThread) [homeassistant.core] Invalid service data for notify.email: invalid template (TemplateSyntaxError: unexpected char '`' at 24) for dictionary value @ data['message']. Got 'House is cold! {{states(`sensor.tankpi_temp`)}}F'
2017-11-14 11:46:28 ERROR (MainThread) [homeassistant.core] Invalid service data for notify.sms_matt: invalid template (TemplateSyntaxError: unexpected char '`' at 24) for dictionary value @ data['message']. Got 'House is cold! {{states(`sensor.tankpi_temp`)}}F'
Made the change and tried a trigger with “automation” “trigger”
{
"entity-id": "Cold house"
}
Got the following error:
2017-11-14 12:12:28 ERROR (MainThread) [homeassistant.core] Invalid service data for automation.trigger: extra keys not allowed @ data['entity-id']. Got 'Cold house'
I appreciate your help, beginning to wonder if this will work.
Adjusted the dash to an underscore and triggered with this logged error:
2017-11-14 12:17:38 ERROR (MainThread) [homeassistant.core] Invalid service data for automation.trigger: Entity ID cold house is an invalid entity id for dictionary value @ data['entity_id']. Got 'Cold house'
You need to get the entity_id from the states tab. What you have is probably the entity friendly_name. If you click on the hamburger icon on the top left, and under developer tools, you will find states tab that looks like < >. Click on that, you will be presented with a page that has all the entities.