Yep, two ways - one is using the motion sensor itself (ie mine have lux sensors, so you can detect the light level and trigger using that), the other is using your location settings in home assistant to trigger it, ie something like this:hi looking for some help with lighting automations, coming from HK and i moved everything to HA, set up a zigbee network and the only thing i am stuck at is sunset/sunrise dimmable lighting with motion sensors, as a work around i am using timed rather than sun, but would like to have it on at sunset and off at sunrise ?
Automating Home Assistant
A quick intro on getting your first automation going.
www.home-assistant.io
But basically you want to:
a) create automation
B) set the trigger to your motion sensors
C) set a condition that light level is more than X (or between sunset and sunrise)
And away you go!