Hi there,
I’m on my first steps with Home Assistant and I would like to start with automations.
The automation-tool looks a bit strange to me, so I tried it in the automation.yaml.
What do I want to do?
If the entity sensor.ipad_kuche_battery_level is below 35% AND switch.netzteil_tablets_schalten is off, I would like to switch it on.
When sensor.ipad_kuche_battery_level is above 79% AND switch.netzteil_tablets_schalten is on, I would like to switch it off.
So this is the content of my automation.yaml:
automation: #Netzteil für Tablet laden einschalten
trigger:
- platform: numeric_state
entity_id:
- sensor.ipad_kuche_battery_level
- platform: state
entity_id:
- switch.netzteil_tablets_schalten
state: 'off'
action:
- service: switch.turn_on
target:
entity_id: switch.netzteil_tablets_schalten
automation2: #Netzteil für Tablets laden abschalten
trigger:
- platform: numeric_state
entity_id:
- sensor.ipad_kuche_battery_level
above: 79
- platform: state
entity_id:
- switch.netzteil_tablets_schalten
state: 'on'
action:
- service: switch.turn_off
target:
entity_id: switch.netzteil_tablets_schalten
But it seems, I did anything wrong…
Anyone wo sees the mistake?
Ans is it correct, that the automation isn’t visible in the automation-tool?
Cheers!