I have this code for one of the actions that I’m trying to combine, this one has the condition and I want both under the same condidion:
- if:
- condition: template
value_template: "{{ ('Tor' in (trigger.from_state.attributes.zone_name)) == true }}"
then:
data:
kommandoklasse: JRMC
kommando: Stoppet
sone: 9
action: rest_command.girder
alias: Tor
The second action is this:
- action: timer.start
metadata: {}
data: {}
target:
entity_id: timer.sone9
And I just can’t seem to combine two action under that condition. I’m guessing that I have been messing up indentation and dashes. All my attempts the last half hour has turned into nothing… Can somebody please put me out of my misery? I’m in the middle of an overhaul of a 15 year old part of my system, programmed in Lua in GIrder, if anybody knows about that. It’s been dead for quite a few years. Some of it works perfectly, other stuff is a bit messy, and this is a part of what’s messy that I hope to simplify a lot now.