I’m a bit stumped here. I have an automation that I need to add another action to, with a delay between. Can somebody please tell me where I went wrong? This is the original:
- alias: Termostater til 5 grader
action:
data_template:
node_id: '{{ trigger.payload }}'
parameter: 10
value: 50
- service: zwave.set_config_parameter
condition: []
id: '1524675052575'
trigger:
platform: mqtt
topic: ZWaveTermostatAv
What I want to get to, is this:
- alias: Termostater til 5 grader
action:
data_template:
node_id: '{{ trigger.payload }}'
parameter: 10
value: 50
- service: zwave.set_config_parameter
data_template:
node_id: '{{ trigger.payload }}'
parameter: 2
value: 'Heat'
- service: zwave.set_config_parameter
- delay: ‘00:00:05’
condition: []
id: '1524675052575'
trigger:
platform: mqtt
topic: ZWaveTermostatAv
Even adding the delay with nothing more gives me errors:
Configuration invalid
Error loading /home/homeassistant/.homeassistant/configuration.yaml: while parsing a block mapping in “/home/homeassistant/.homeassistant/automations.yaml”, line 110, column 3 expected , but found ‘-’
I guess it’s the dashes, I have never gotten a handle of those. Most of my automations do not have them at all, since they are only one action each. But I have read that I need to use them with more actions in one automation.
Because I see this in my log now (didn’t think to look there before):
Temperature uses zwave.set_config_parameter based on the node_id of the device, while mode uses climate.set_operation_mode based on the name of the device.