I know this is going to be really basic for most people but I have a number of automations where lights turn on when motion is detected and then a separate automation where the light goes off if motion stops being detected. I know this can be done but I’m not sure yet how to do it - how do I have just one automation for the same light so it does the on and off in the same automation? Is there a walkthrough guide to setting up an automation through the UI for this? I know most people will know this and think it is really simple but I’m still finding my way around HA and still learning, Thanks in advance…
The UI Automation editor has been recently overhauled, so it is unlikely there are any up-to-date tutorials available. This tutorial included an example for motion controlled lighting. @smarthomejunkie has a similar tutorial available on his Youtube channel.
The basic methodology is to include both triggers in the Trigger section and then use a Choose or If/Then action to decide which group of actions is appropriate for the trigger that initiated the automation.