michielpost / Q42.HueApi

C# helper library to talk to the Philips Hue bridge
MIT License
411 stars 114 forks source link

Polling Movement Sensor #148

Closed jimmywyatt closed 6 years ago

jimmywyatt commented 6 years ago

Hi, this isn't really an issue, but whats the best way to poll the movement sensor to find out if someone is there? check State.Presence every .5 seconds? is there a push event of any sort?

michielpost commented 6 years ago

The Philips Hue Bridge does not support push events through the public developer api. So polling is currently your best option.

jimmywyatt commented 6 years ago

Thanks, is that likely to drain the sensors battery or, i suppose you're only polling the hub which will only be updated when the sensor changes.