#triggers: vs trigger: / actions: vs action:

1 messages · Page 1 of 1 (latest)

lean trellis
#

I just copied an automation which made me do some RTFM. I came around the fact that HA offers triggers: and actions: in automations. So far my automations work with trigger: mentioning the platform and so on. Actions are started by action: followed by choose: / sequence: and so on. Is this a to be deprecated method? what is the advantage of having triggers: / actions: The docs provide any hint... (see https://www.home-assistant.io/docs/automation/trigger/)

real rune
#

It's just a neater and more intuitive syntax that got implemented last year
I don't believe the old one has plans to be deprecated currently, but there's no real reason to use it either

dark hollow