mill7
(D)
1
as I understood from the help, triggers and conditions are not necessary, I create this one
- id: '6d4c566e-2362-4b6c-b821-aa83604e7c6f'
alias: Movie
actions:
- action: light.turn_off
metadata: {}
data: {}
target:
entity_id: light.kabinet_stena
mode: single
That is, I want the light to turn off when the automation is turned on.
Error:required key not provided @ data[‘triggers’]. Got None.
So I need a trigger ? how can I just start the automation from HA by switching the slider in the list where all automations are ?
Sir_Goodenough
((SG) WhatAreWeFixing.Today)
2
Hi D,
You want a script, not an automation.
mill7
(D)
3
can you show me script with simple example with turn the light off ?
If you have a way of getting the state of the media player into HA use that as a trigger instead.
mill7
(D)
6
its not help
I just copy past script from help and have errors that i dont understand
Sir_Goodenough
((SG) WhatAreWeFixing.Today)
7
There is a script UI editor. It will help you write a script.
1 Like