jackint
(Giacomo)
February 25, 2024, 9:44pm
1
Hi i still have these errors in automation.yaml after the alst update of HM
- id: accendi_luce_doccia
alias: "Accendi luce doccia"
trigger:
platform: numeric_state
entity_id: sensor.umiditabagno
above: 65
action:
- service: switch.turn_on
entity_id: switch.doccia
- delay: "00:20:00"
- service: switch.turn_off
entity_id: switch.doccia
condition:
- condition: numeric_state
entity_id: sensor.umiditabagno
above: 65
errors are at line 1-2-11 and is always the same “End of the stream or a document separator is expected”. I thing that the problem is the indentation but i don’t what to correct, it seems correct.
Can you help me? tks
tom_l
February 25, 2024, 9:52pm
2
Yeah most likely indentation. That one looks ok. Check your other automations.
You don’t need that condition by the way. Your trigger ensures the condition will always be true.
tom_l
February 25, 2024, 10:07pm
4
Indentation is all good.
What did you use to create the automations?
Windows uses CRLF as the line terminator:
Linux just uses LF. This is what HA needs.
You can convert the line termination in advanced editors like notepad++, VSCode, or UltraEdit.
tom_l
February 25, 2024, 10:10pm
5
jackint:
i’ve solved thanks
It would help others if you told us how you solved it.
jackint
(Giacomo)
February 25, 2024, 10:11pm
6
i had a line “automation” at the top, i hadn’t seen it
1 Like