This doesn’t seem to work for me… I thought events are ‘OR’, however, seems like written this way may be doing ‘and’ on entity_id?
Is there a faster way to write this rather than breaking it out?
As a matter of opinion and style, I always try to avoid as many characters as possible… which in the case of only one item below either trigger, condition and action means no - at all…and if there’s no data to pass on others than the entity_id, leave out the data field. (in the action part)
in this case:
- alias: Large Area Hold/On
trigger:
event_data:
scene_data: 7740
scene_id: 1
event_type: zwave.scene_activated
platform: event
condition:
condition: template
value_template: >
{{ trigger.event.data.entity_id.startswith('zwave.arena_large_row') and
trigger.event.data.entity_id[-1] in ['1', '2', '3', '4'] }}
action:
service: homeassistant.turn_on
entity_id: group.large_arena
Yamllint greens it. not sure what HA thinks of it of course .
Anyways, lesson learnt on this day once more, thanks for enlightning me