This is a gist for me personally to play and think about extending the Home Assistant script & automation engine and its syntax.
This is in no way a direction Home Assistant is going, and is just a personal idea/notebook.
This is a gist for me personally to play and think about extending the Home Assistant script & automation engine and its syntax.
This is in no way a direction Home Assistant is going, and is just a personal idea/notebook.
Just for fiddling...
trigger:
- event: scene.reloaded
- event:
- homeassistant.start
- automation.reloaded
- light.kitchen
- entity: light.kitchen
- entity: # backwards compatible `entity_id`
- light.kitchen
- light.living_room
- entity_id:
- light.kitchen
- light.living_room
- state: 'on'
entity_id: light.kitchen
for:
minute: 1
- state: 'on'
entity_id: light.kitchen
for: 1 minute
- entity_id: light.kitchen
for: 1 minute
condition: # backwards compatible `if`
- input_boolean.automations_enabled: true
action: # backwards compatible `then`
- if:
- state:
entity: binary_sensor.motion
state: 'off'
- state:
entity: kitchen.light
state: 'on'
- input_boolean.enabled: true
then:
- light.turn_off: light.kitchen
else:
- light.turn_on:
entity: light.kitchen
brightness: 100%
no updates here m8?