Going to the CLIP API debugger of my Hue Bridge2 ( http://192.168.1.101/debug/clip.html ) and doing af GET with “/api/TheNumbersAndLettersInMyAPIKey/sensors”
Reading the output, finding the relevant information - for example the temperature sensor:
Just to say thanks this is working well… tested only for one night though…I didn’t do any of this virtual switch business, seems like overly complex to me. I guess it would be better if we didn’t have to poll the hue hub every 2 seconds but hey, it works and the pi3 where my Ha runs seems perfectly happy. Now I need to do some cool stuff with it and maybe buy some more hue sensors and bulbs (why is it sooooooo expensive). My wife is tolerating my automation work at the moment, hopefully she’s not seeing the bank bills, need to simplify though as I have far too much going on at present, needs to be easy for others in the house. Need to add a camera also, any recommendations? I had a canary but I don’t want anything with a subscription, fed up of those.
If it helps anyone, here’s my config for the hue motion sensor…
Lux seems to go to 0 with lights off. Normal, guess it is dark! But 0? Also is at a very high number in the day.
Motion sensor seems bang on! Look, no false positives at all at night… same for others ?
Anyone got any great use cases, I figure I’d like to set the house to empty more if there is no movement for say 3 hours from 6am… That should do it I could then set things up on the basis the house is empty, any tips on how to do that?
Temp is nice, I have it near my nest, interesting to see if they tally.
Motion sensor saying True / False … Might be better on off or something, where can I set that?
Thanks again for the tips here, made it to easier…
Anyone help me by pasting in their complete sensor settings, am - checking if mine are right or if I can optimise, e.g. lux reads a v high number or 0 at the moment.
Is there a performance hit / advantage fro doing the scan_interval: 2 on all sensors, I have it just on the motion sensor at the moment, things are running ok.
Loving this sensor at the moment, am even thinking of buying another…pricey but cheaper than the multi sensors I read about…with z wave stick required etc. Most pleased with the fact I see 0 false positives, have previously knocked up MQTT sensors with PIR on a remote raspberry - good but fiddly and sometimes see false pos. This hue sensor takes the hassle out of it and get Temps and Lux for free.
You have to find the battery sensor number (32 in my case) with the clip web interface of the Hue bridge, just like you found the light and temperature sensors.
The code is:
How RuudV explained it is how I have it as well. Works very well for tracking the battery tracking. You can use any of the sensors ID’s (LUX, Temp or Motion) to retrieve the battery data as each sensor has the data embedded in it.
Thanks for the work here guys, I love these little sensors with the available temp, but I currently cannot get any automation working with them. I just did some testing and its not seeing the numeric_state. Though with the Nest sensor I have works fine. Do I need to use another platform?
alias: 'Alert on House temperature'
trigger:
platform: numeric_state
entity_id: sensor.house_thermostat_temperature
above: 10.0
action:
service: notify.mypushbullet
data:
message: "House Temperature Low"
Acting upon a temperature threshold can be done with a value_template. See my example below for the Netatmo weather station. I guess it works with the Hue sensor as well.
I use the limit value set by an input selector.
For completeness, here is the code for the input selector in my input_select.yaml file. I prefer input selectors over sliders because sliders don’t show the set value directly in the frontend.