Hi,
a few versions ago I converted all my automations to fit the Automation Editor. I works “ok” for me, but sometimes I have to edit the automation manually in the automations.yaml.
Why looks the automations created with the editor so illogical.
The ID
is somewhere in the middle.
The action
at the beginnen…nearly everything is mixxed.
This is what the editor does:
- action:
- alias: Schalte Luftbefeuchter Schlafzimmer aus
data:
entity_id: switch.luftbefeuchter_schlafzimmer
service: switch.turn_off
alias: Luftbefeuchter Schlafzimmer aus Regel
condition: []
id: Luftbefeuchter Schlafzimmer aus Regel
trigger:
- above: '54'
entity_id: sensor.humidity_158d0001720bba
for:
hours: 0
minutes: 10
seconds: 0
platform: numeric_state
This is how I would do this.
- id: Luftbefeuchter Schlafzimmer aus Regel
alias: Luftbefeuchter Schlafzimmer aus Regel
trigger:
platform: numeric_state
entity_id: sensor.humidity_158d0001720bba
above: '54'
for:
hours: 0
minutes: 10
seconds: 0
action:
alias: Schalte Luftbefeuchter Schlafzimmer aus
service: switch.turn_off
data:
entity_id: switch.luftbefeuchter_schlafzimmer
Bigger Automations looks a far more confusing.
Hope this can be changed in future HA versions.