#I made this with the automation editor:

1 messages · Page 1 of 1 (latest)

tropic atlas
#

Did you manually edit that YAML at all?

stable carbon
#

only after it gave the error first

#

i can make it again from scratch

tropic atlas
#

Editing device triggers is likely to lead to pain

#

Same goes for anything device related - don't touch the YAML the UI gives you

stable carbon
#

uhm
i remade it and this time it's like this:

trigger:
  - platform: state
    entity_id:
      - climate.termostato_bagni
    to: heat
    for:
      hours: 0
      minutes: 30
      seconds: 0
#

and this can be saved

#

i don't really remember how did the first one
usually i make automations in yaml directly

tropic atlas
#

Yeah, that's valid - and even shown in the docs

#

The only way you did the first one was with the UI

#

No chance you memorised the random device and entity identifiers

stable carbon
#

yep, but what i chose to end like that, i dont really remember

the ending trigger, in ui, is

" Bagni HVAC mode changed"

the second is
"When Bagni changes to Heat for 30:00"

maybe the first one does not even support for:

tropic atlas
#

Device triggers are limited, and only support what the UI shows you

#

Any time you edit the YAML for a device trigger/condition/action you're likely to end up with something invalid