[BETA] Hue Accessories and rooms using Hue Bridge (TAP, Motion Sensor, Dimmer Switch)

dth_sensors

#121

Thats not loading in either chrome or edge. I get a time out message. I added hue b bridge ip and username to the command.


(Martin Verbeek) #122

just to be sure, you have to be on the local network…this is how actual working example…apart from the username :slight_smile:

http://10.0.0.197/api/zdCCUI-djRNdkTUIJHKCsfshgs-VwJkyi1PRzDDA40cb/sensors


#123

Than i have to do it after work. Im not at the local network right now, im at the office. Will let you know the results as soon as i get home.


(Martin Verbeek) #124

For the motion events, what you could do is the following: there is a option in the app for elevated polling when in certain modes, i use it when mode is home to have more fluid performance, there will be more traffic to the ST cloud, also you can specify not to poll during certain modes, i do that when nobody is at home.
I can see the motion events coming through on my sensors when elevated. When normal polling is active, the app will miss motion occurrences.


#125

Theres 2 things i want to try and accomplish with this app as soon i get the motion detectors working.

  1. I have an electrical blanket to warm up the bed. I have a pocket socket connected to this and i want to make something so i can turn that blanket on and have it turned off after 20 minutes automatically. Because i cannot see if it is on or off i want a lamp in the bedroom to turn into a specific color for aslong as the blanket is on. On both sides of the bed there is a Philips switch to control the lights, i would like this button to be able to control the blanket aswell.

  2. In the hall we have 3 lights and 2 motion detectors. 1 detector is downstairs and the other one is upstairs near the bedroom door. The detectors are connected to each other and both have same function: turn hall lights on on movement. I would like to use your app to add a function if possible. When detector downstairs detects movement first and secondly the one upstairs (meaning someone goes upstairs) then turn on bedroom lights aswell. But when the detector upstairs firstly reads movement (meaning someone goes downstairs) in this case only turn on lights in the hall.


(Martin Verbeek) #126

The pocket socket can act as a switch in ST? e.g. with a Fibaro z-wave wall plug, it will give a color when active already…

The second one needs (web)core, no experience with that.


#127

Yes it does have a small LED light in it. But since the socket is hidden under the bed i wont be able to see it. But i have a hue strip under a closet in the bedroom. I figured i can make the light from that strip turn blue or whatever for as long as the blanket is on. This is a very easy way to see if its on or off. Im using TKB sockets. Much cheaper as the Fibaro and same funcionality, you can buy them locally (TKB stekker).

I also never used webcore yet, but ill have a go with it. to do something with these sensors seems like a nice project. With basic settings the motion sensor is unable to control 2 different rooms i think. So that plus the temperature readings are already 2 nice improvements on what the hue app itself offers.


(Martin Verbeek) #128

If the TKB is visible as a switch in ST then you can create a standard automation rule to set the Hue Strip blue when TKB switches on, and off when state goes to off. The 20 minute delay for blanket Off would be more of a challenge without core.

What is the trigger for switching the blanket on, On on the dimmer switch?


#129

Again… i dont know how Core works. But i was thinking something along these lines: When click button X turn on blanket+turn on light, then wait 20mins and put settings back as they were in previous state or turn them off.

I dont think i want it to happen when click “on”. This should just be some night light or something. I would like the blanket to turn on when i click 3 times for example or when i hold a button. I need to look into this, at the moment its just an idea just.


#130

Heres the output of the hue B bridge, prepare for a wall of text:

{“1”:{“state”:{“daylight”:null,“lastupdated”:“none”},“config”:{“on”:true,“configured”:false,“sunriseoffset”:30,“sunsetoffset”:-30},“name”:“Daylight”,“type”:“Daylight”,“modelid”:“PHDL00”,“manufacturername”:“Philips”,“swversion”:“1.0”},“2”:{“state”:{“buttonevent”:1002,“lastupdated”:“2017-10-03T15:36:22”},“swupdate”:{“state”:“noupdates”,“lastinstall”:null},“config”:{“on”:true,“battery”:100,“reachable”:true,“pending”:[]},“name”:“Woonkamer (achter)”,“type”:“ZLLSwitch”,“modelid”:“RWL021”,“manufacturername”:“Philips”,“swversion”:“5.45.1.17846”,“uniqueid”:“00:17:88:01:10:49:8a:32-02-fc00”},“3”:{“state”:{“status”:0,“lastupdated”:“2017-10-03T15:36:32”},“config”:{“on”:true,“reachable”:true},“name”:“Dimmer Switch 2 SceneCycle”,“type”:“CLIPGenericStatus”,“modelid”:“PHWA01”,“manufacturername”:“mSQtIWkozYZBj3-YX2-mgzaz5Q-NbVDv”,“swversion”:“1.0”,“uniqueid”:“WA0001”,“recycle”:true},“4”:{“state”:{“temperature”:1834,“lastupdated”:“2017-10-03T16:26:54”},“swupdate”:{“state”:“noupdates”,“lastinstall”:null},“config”:{“on”:true,“battery”:100,“reachable”:true,“alert”:“none”,“ledindication”:false,“usertest”:false,“pending”:[]},“name”:“Hue temperature sensor 1”,“type”:“ZLLTemperature”,“modelid”:“SML001”,“manufacturername”:“Philips”,“swversion”:“6.1.0.18912”,“uniqueid”:“00:17:88:01:02:03:12:a9-02-0402”},“5”:{“state”:{“presence”:false,“lastupdated”:“2017-10-03T07:00:30”},“swupdate”:{“state”:“noupdates”,“lastinstall”:null},“config”:{“on”:true,“battery”:100,“reachable”:true,“alert”:“none”,“ledindication”:false,“usertest”:false,“sensitivity”:2,“sensitivitymax”:2,“pending”:[]},“name”:“Hal sensor”,“type”:“ZLLPresence”,“modelid”:“SML001”,“manufacturername”:“Philips”,“swversion”:“6.1.0.18912”,“uniqueid”:“00:17:88:01:02:03:12:a9-02-0406”},“6”:{“state”:{“lightlevel”:7747,“dark”:true,“daylight”:false,“lastupdated”:“2017-10-03T16:24:40”},“swupdate”:{“state”:“noupdates”,“lastinstall”:null},“config”:{“on”:true,“battery”:100,“reachable”:true,“alert”:“none”,“tholddark”:13209,“tholdoffset”:7000,“ledindication”:false,“usertest”:false,“pending”:[]},“name”:“Hue ambient light sensor 1”,“type”:“ZLLLightLevel”,“modelid”:“SML001”,“manufacturername”:“Philips”,“swversion”:“6.1.0.18912”,“uniqueid”:“00:17:88:01:02:03:12:a9-02-0400”},“7”:{“state”:{“status”:0,“lastupdated”:“2017-10-03T15:38:01”},“config”:{“on”:true,“reachable”:true},“name”:“roomstate”,“type”:“CLIPGenericStatus”,“modelid”:“HUELABSENUM”,“manufacturername”:“Philips”,“swversion”:“1.0”,“uniqueid”:“2:4:a10b-63df-495f-ac41”,“recycle”:true},“8”:{“state”:{“temperature”:2233,“lastupdated”:“2017-10-03T16:28:28”},“swupdate”:{“state”:“noupdates”,“lastinstall”:null},“config”:{“on”:true,“battery”:100,“reachable”:true,“alert”:“none”,“ledindication”:false,“usertest”:false,“pending”:[]},“name”:“Hue temperature sensor 2”,“type”:“ZLLTemperature”,“modelid”:“SML001”,“manufacturername”:“Philips”,“swversion”:“6.1.0.18912”,“uniqueid”:“00:17:88:01:02:03:27:9c-02-0402”},“9”:{“state”:{“presence”:false,“lastupdated”:“2017-10-03T15:38:01”},“swupdate”:{“state”:“noupdates”,“lastinstall”:null},“config”:{“on”:true,“battery”:100,“reachable”:true,“alert”:“none”,“ledindication”:false,“usertest”:false,“sensitivity”:0,“sensitivitymax”:2,“pending”:[]},“name”:“Hal sensor”,“type”:“ZLLPresence”,“modelid”:“SML001”,“manufacturername”:“Philips”,“swversion”:“6.1.0.18912”,“uniqueid”:“00:17:88:01:02:03:27:9c-02-0406”},“10”:{“state”:{“lightlevel”:12327,“dark”:true,“daylight”:false,“lastupdated”:“2017-10-03T16:23:56”},“swupdate”:{“state”:“noupdates”,“lastinstall”:null},“config”:{“on”:true,“battery”:100,“reachable”:true,“alert”:“none”,“tholddark”:17414,“tholdoffset”:7000,“ledindication”:false,“usertest”:false,“pending”:[]},“name”:“Hue ambient light sensor 2”,“type”:“ZLLLightLevel”,“modelid”:“SML001”,“manufacturername”:“Philips”,“swversion”:“6.1.0.18912”,“uniqueid”:“00:17:88:01:02:03:27:9c-02-0400”},“11”:{“state”:{“status”:0,“lastupdated”:“2017-10-03T15:38:01”},“config”:{“on”:true,“reachable”:true},“name”:“presenceState”,“type”:“CLIPGenericStatus”,“modelid”:“HUELABSENUM”,“manufacturername”:“Philips”,“swversion”:“1.0”,“uniqueid”:“3:5:8efe-17ec-46fc-a452”,“recycle”:true},“14”:{“state”:{“buttonevent”:4002,“lastupdated”:“2017-10-02T22:41:35”},“swupdate”:{“state”:“noupdates”,“lastinstall”:null},“config”:{“on”:true,“battery”:100,“reachable”:true,“pending”:[]},“name”:“Woonkamer (voor)”,“type”:“ZLLSwitch”,“modelid”:“RWL021”,“manufacturername”:“Philips”,“swversion”:“5.45.1.17846”,“uniqueid”:“00:17:88:01:02:0e:4d:c6-02-fc00”},“15”:{“state”:{“status”:0,“lastupdated”:“2017-10-02T22:41:46”},“config”:{“on”:true,“reachable”:true},“name”:“Dimmer Switch 14 SceneCycle”,“type”:“CLIPGenericStatus”,“modelid”:“PHWA01”,“manufacturername”:“mSQtIWkozYZBj3-YX2-mgzaz5Q-NbVDv”,“swversion”:“1.0”,“uniqueid”:“WA0001”,“recycle”:true},“16”:{“state”:{“buttonevent”:2002,“lastupdated”:“2017-10-02T22:37:14”},“swupdate”:{“state”:“noupdates”,“lastinstall”:null},“config”:{“on”:true,“battery”:100,“reachable”:true,“pending”:[]},“name”:“Slaapkamer (deur)”,“type”:“ZLLSwitch”,“modelid”:“RWL021”,“manufacturername”:“Philips”,“swversion”:“5.45.1.17846”,“uniqueid”:“00:17:88:01:10:49:8a:31-02-fc00”},“17”:{“state”:{“buttonevent”:4002,“lastupdated”:“2017-10-02T22:42:48”},“swupdate”:{“state”:“noupdates”,“lastinstall”:null},“config”:{“on”:true,“battery”:100,“reachable”:true,“pending”:[]},“name”:“Slaapkamer (Jeroen)”,“type”:“ZLLSwitch”,“modelid”:“RWL021”,“manufacturername”:“Philips”,“swversion”:“5.45.1.17846”,“uniqueid”:“00:17:88:01:10:49:8a:2e-02-fc00”},“18”:{“state”:{“status”:0,“lastupdated”:“2017-10-02T22:42:58”},“config”:{“on”:true,“reachable”:true},“name”:“Dimmer Switch 17 SceneCycle”,“type”:“CLIPGenericStatus”,“modelid”:“PHWA01”,“manufacturername”:“mSQtIWkozYZBj3-YX2-mgzaz5Q-NbVDv”,“swversion”:“1.0”,“uniqueid”:“WA0001”,“recycle”:true},“19”:{“state”:{“status”:0,“lastupdated”:“2017-10-02T22:37:24”},“config”:{“on”:true,“reachable”:true},“name”:“Dimmer Switch 16 SceneCycle”,“type”:“CLIPGenericStatus”,“modelid”:“PHWA01”,“manufacturername”:“mSQtIWkozYZBj3-YX2-mgzaz5Q-NbVDv”,“swversion”:“1.0”,“uniqueid”:“WA0001”,“recycle”:true},“26”:{“state”:{“status”:1,“lastupdated”:“2017-09-30T17:15:48”},“config”:{“on”:true,“reachable”:true},“name”:“player”,“type”:“CLIPGenericStatus”,“modelid”:“HUELABSSTOGGLE”,“manufacturername”:“Philips”,“swversion”:“1.0”,“uniqueid”:“2:b420-0b9c-40e3-8ac5”,“recycle”:true},“41”:{“state”:{“temperature”:1831,“lastupdated”:“2017-10-03T16:24:43”},“swupdate”:{“state”:“noupdates”,“lastinstall”:null},“config”:{“on”:true,“battery”:100,“reachable”:true,“alert”:“none”,“ledindication”:false,“usertest”:false,“pending”:[]},“name”:“Hue temperature sensor 3”,“type”:“ZLLTemperature”,“modelid”:“SML001”,“manufacturername”:“Philips”,“swversion”:“6.1.0.18912”,“uniqueid”:“00:17:88:01:02:03:13:e0-02-0402”},“42”:{“state”:{“presence”:false,“lastupdated”:“2017-10-03T07:03:43”},“swupdate”:{“state”:“noupdates”,“lastinstall”:null},“config”:{“on”:true,“battery”:100,“reachable”:true,“alert”:“none”,“ledindication”:false,“usertest”:false,“sensitivity”:2,“sensitivitymax”:2,“pending”:[]},“name”:“Hue motion sensor 1 (Toilet)”,“type”:“ZLLPresence”,“modelid”:“SML001”,“manufacturername”:“Philips”,“swversion”:“6.1.0.18912”,“uniqueid”:“00:17:88:01:02:03:13:e0-02-0406”},“43”:{“state”:{“lightlevel”:2728,“dark”:true,“daylight”:false,“lastupdated”:“2017-10-03T16:27:46”},“swupdate”:{“state”:“noupdates”,“lastinstall”:null},“config”:{“on”:true,“battery”:100,“reachable”:true,“alert”:“none”,“tholddark”:65534,“tholdoffset”:7000,“ledindication”:false,“usertest”:false,“pending”:[]},“name”:“Hue ambient light sensor 3”,“type”:“ZLLLightLevel”,“modelid”:“SML001”,“manufacturername”:“Philips”,“swversion”:“6.1.0.18912”,“uniqueid”:“00:17:88:01:02:03:13:e0-02-0400”},“44”:{“state”:{“status”:0,“lastupdated”:“2017-10-03T07:05:28”},“config”:{“on”:true,“reachable”:true},“name”:“MotionSensor 42.Companion”,“type”:“CLIPGenericStatus”,“modelid”:“PHA_STATE”,“manufacturername”:“Philips”,“swversion”:“1.0”,“uniqueid”:“MotionSensor 42.Companion”,“recycle”:true},“45”:{“state”:{“buttonevent”:4002,“lastupdated”:“2017-09-30T21:45:21”},“swupdate”:{“state”:“noupdates”,“lastinstall”:null},“config”:{“on”:true,“battery”:100,“reachable”:true,“pending”:[]},“name”:“Slaapkamer (Lena)”,“type”:“ZLLSwitch”,“modelid”:“RWL021”,“manufacturername”:“Philips”,“swversion”:“5.45.1.17846”,“uniqueid”:“00:17:88:01:02:0d:67:2a-02-fc00”},“46”:{“state”:{“status”:0,“lastupdated”:“2017-09-30T21:45:31”},“config”:{“on”:true,“reachable”:true},“name”:“Dimmer Switch 45 SceneCycle”,“type”:“CLIPGenericStatus”,“modelid”:“PHWA01”,“manufacturername”:“sJnDlQx6wPpe-QhVQswYdXmE4e0Jc8et”,“swversion”:“1.0”,“uniqueid”:“WA0001”,“recycle”:true},“61”:{“state”:{“status”:0,“lastupdated”:“none”},“config”:{“on”:true,“reachable”:true},“name”:“start - stop”,“type”:“CLIPGenericStatus”,“modelid”:“HUELABSVDIMMER”,“manufacturername”:“Philips”,“swversion”:“1.0”,“uniqueid”:“da85-3a4f-44d3-b1d2”,“recycle”:true},“62”:{“state”:{“status”:1,“lastupdated”:“2017-09-30T17:15:48”},“config”:{“on”:true,“reachable”:true},“name”:“0:state huelabs/candlelight-rom”,“type”:“CLIPGenericStatus”,“modelid”:“HUELABSSTOGGLE”,“manufacturername”:“Philips”,“swversion”:“1.0”,“uniqueid”:“2:0:3d17-7a6f-4068-8725”,“recycle”:true},“63”:{“state”:{“status”:0,“lastupdated”:“none”},“config”:{“on”:true,“reachable”:true},“name”:“start - stop”,“type”:“CLIPGenericStatus”,“modelid”:“HUELABSVDIMMER”,“manufacturername”:“Philips”,“swversion”:“1.0”,“uniqueid”:“cf74-a35a-40e8-92bb”,“recycle”:true},“64”:{“state”:{“status”:1,“lastupdated”:“2017-09-30T18:13:44”},“config”:{“on”:true,“reachable”:true},“name”:“0:state huelabs/candlelight-rom”,“type”:“CLIPGenericStatus”,“modelid”:“HUELABSSTOGGLE”,“manufacturername”:“Philips”,“swversion”:“1.0”,“uniqueid”:“2:0:0fd8-91d5-4d12-a4ef”,“recycle”:true}}


(Martin Verbeek) #131

that looks like what the app expects. Could you go to my devices in the IDE and give me the numbers that are in the device network id for type Hue Motion e.g. the 21 in xxxxxx/sensor/21, so i can relate it to the wrongly added device.


#132

They all look like 4B1AA2/sensor/X
There is no number 21 though. I got 5, two 9’s and 42.


(Martin Verbeek) #133

ahhh. looks like there is a remnant childdevice from a previous app life…could you delete the two 9 identicals…the app will redefine (hopefully) a single 9 within a few minutes.


(Martin Verbeek) #134

For the dimmer switch, i had implemented my own scenecycle. When you press subsequent ON it will cycle through button 10-11-12-13-14, back to 10.

With OFF it will reset to 10.

So you can create your light automation by selecting button as the trigger and select 10-14 as the button, it can then turn on your TKB stekker. The other rule triggered by switch TKB ON will turn your led to blue/red.


#135

Deleted the detectors and reinstalled them. Now it’s 3 of them, one number 9 only. So yes it seems to be a remnant.
But unfortunately it does not change anything, theres still only 1 detectors who reads any movement. The number 9 is the only one that detects motion. But it has temperature reading wrong, it just went from 21 to 22 degrees and its located in an unheated hallway. The other 2 motion detectors do not detect motion, but they read 18 degrees temperature which seems correct.
Before i mentioned having 2 of them connected together through hue labs, but its the number 42 which is not connected and that one does not read any motion.


#136

Those switches work perfect. I already linked the TKB and the ledstrip to the button. I see 1-14 btw. Not just 10-14. Now to figure out how to make the light a different color.


(Martin Verbeek) #137

That´s right, ST only allows you to define a number of buttons, i decided to have ON as button1, Dim Up as 2, Down as 3, Off as 4. 5-9 not used.


(Martin Verbeek) #138

could you define elevated polling for your current mode? Hue will reset motion from true to false and back in 30 seconds. In normal polling it will miss the motion as it is 1 minute.


#139

i already have elevated pulling on when im in home mode. Plus theres been enough movement in the hall over the last hours to have atleast some reading.


(Martin Verbeek) #140

It´s weird, al is working fine here, I have multiple as well. One final thing to check out for me, could you paste the content of the devices variable in the application state? in the IDE -> my locations/smartapps/Hue Sensor (Connect).

PS
The Hal motion sensor has sensitivity 0 (low), the others don´t, ?