Light "Turn-Off" Automation (Node-RED) Not Triggered if Light is Turned On with HomeKit or Alexa via Hubitat

I recently linked my HA Green with a Hubitat C8 Pro so that I could use Alexa and Siri to control some lights (WAF) that I have in HA.

I have a few motion sensors in the garage, and a few lights, when they detect motion, they turn on the lights, when 3 minutes pass and no motion is detected, it dims 50%, then in 60 seconds no motion is detected it turns the light off.

After I connected Hubitat to my HomeKit and Alexa Skill to Hubitat, and exposed the HA devices to Hubitat through HADB. I then proceeded to test out turning on and off lights via voice with Alexa and Siri. It all worked fine. However I asked Siri to turn on the Garage, and it hasn’t turned off via the Node Red automation to turn it off, it’s been on for 15 minutes and there have been no motion. I’m using ThirdReality Zigbee motion sensors and ThirdReality lightbulbs.

Any clue as to why the Node-RED Automation is not turning the lights off after turning them on via voice? Am I missing something in my Node-RED to watch for voice assistants that may turn on a light?

You’ll notice in the screenshots, the garage shop turned off because I poked my head into the garage, which then initiated the motion and it ended up turning off. The garage bay motion sensor is further away and I did not trip the motion sensor, so it’s still on.


Screen Shot 2025-01-18 at 11.09.39 PM
Screen Shot 2025-01-18 at 11.09.15 PM

The above flows are triggered by your motion detector. Voice commands are not going to trigger it.

So you’re saying if I manually flip the light on in HA, or turn it on via Alexa or Siri, the light will not turn off from this automation? Hmmmm…

So basically I need another flow to trigger them off?

Separate the on/off flows. Have the motion turn it on. Create another flow and use the light entity in the event state node to turn it off. Light turns on, trigger waiting period to turn off.

You will also need to connect the motion sensor to the delay to extend it if there is someone in the garage.

image

I wish I’ve had more experience in Node-RED to create what you’re saying.
What you pictured, will it operate the same way that it does now? Just moving some things around and adding that additional event state? — Ok I tested it, seems to be working. Thank you!