zachowj / hass-node-red

Companion Component for node-red-contrib-home-assistant-websocket to help integrate Node-RED with Home Assistant Core
MIT License
470 stars 185 forks source link

Hue motion changed trigger? #161

Closed lougreenwood closed 1 year ago

lougreenwood commented 1 year ago

Is your feature request related to a problem? Please describe. I'm attempting to use your integration to make Home Assistant the source of truth for my devices which I automate in Node Red.

Currently I use Hue Magic, but since that's been a shit show for the past year or so - since I stumbled across your NR nodes to fetch device info for other HA devices I realised that I might be able to start using this for getting Hue device state too.

The problem I see is that for devices such as the hue motion sensor there is no motion changed trigger, we have motion started and motion ended (and also motion turned on or off), but no motion way to use a single node to get events about motion starting or ending.

I assume this is the same for the other hue sensors.

Describe the solution you'd like Hue sensors to include a motion changed trigger which outputs events when motion starts OR ends.

Describe alternatives you've considered Using 2 separate nodes to separately track motion start / end state.

Additional context Maybe this isn't within the control of this integration and instead comes directly from the HA Hue integration's exposed triggers?

lougreenwood commented 1 year ago

Nevermind, it seems that the device node (which I was trying to use) is the wrong one for my purpose and I needed the events: all node with some filters.

🦆