@myle wrote:
I have this input_select
kettle_set: name: Set Kettle options: - 'Keepwarm Off :102,0' - 'Keepwarm 40c :102,1' - 'Keepwarm 50c :102,2' - 'Keepwarm 60c :102,3' - 'Keepwarm 80c :102,4' - 'Keepwarm 90c :102,5'
I have this automation
- id: 'Set the kettle Auto' alias: 'Set the kettle Auto' description: '' trigger: - entity_id: input_select.kettle_set platform: state condition: [] action: - data: payload_template: '{% set dta = trigger.to_state.state %}{{dta.split(":")[1]}}' topic: bla/bla service: mqtt.publish
I want it to run when the state of the input_select is updated
2020-01-28 17:48:57 ERROR (MainThread) [homeassistant.components.automation] Error while executing automation automation.set_the_kettle_auto. Error rendering template for call_service at pos 1: UndefinedError: 'trigger' is undefined
What manual did i miss read ??
Posts: 8
Participants: 2