Hey,
Can someone paste me an example from the automations.yaml file of reacting to a motion / door / button sensor in home assistant. I am trying to get it to trigger a Broadlink power outlet wait 5 mins then switch off but can't seem to work it out.
I have all the devices setup so Im just stuck on the automation part, if someone can paste an example I think I should be golden.
Much appreciated!
Worked it out with the example here: https://home-assistant.io/cookbook/turn_on_light_for_10_minu…
Is it better to use home assistant or the Xiaomi app to enable my automations? This one I had to use home assistant as the power outlet is broadlink.