Cool.
Habe damit gerade mal rumgespielt.
- sowohl die Hue-Bridge als auch deCONZ liefern eine “config” Antwort
- sowohl die Hue-Bridge als auch deCONZ liefern eine “sensors” Antwort
Wäre es nicht als erster Schritt sinnvoll, die Sensor-Peers der Hue-Bridge/deCONZ abzufragen? Bei einer deCONZ-Bridge könnte man dann eine Websockets Verbindung aufbauen… Bei der Hue-Bridge müsste man sich dann was überlegen, wie das gehen kann. Eventuell durch pollen.
Hier sind meine Test-Sensoren:
{
"1":{"config":{"configured":true,"on":true,"sunriseoffset":30,"sunsetoffset":-30},"etag":"0ebca0cad6101b4eefc49fe43ea1be01","manufacturername":"Philips","modelid":"PHDL00","name":"Daylight","state":{"dark":false,"daylight":true,"lastupdated":"2019-03-03T11:46:35","status":170},"swversion":"1.0","type":"Daylight","uniqueid":"00:21:2e:ff:ff:02:46:62-01"},
"2":{"config":{"battery":null,"duration":122,"on":true,"reachable":false,"temperature":null},"ep":1,"etag":"abed6c9fe5622de3c3e2c30f7fe89d91","manufacturername":"LUMI","modelid":"lumi.sensor_motion.aq2","name":"Presence 2","state":{"lastupdated":"2019-03-01T21:01:21","presence":false},"type":"ZHAPresence","uniqueid":"00:15:8d:00:02:37:53:26-01-0406"},
"3":{"config":{"battery":null,"on":true,"reachable":false,"temperature":null,"tholddark":12000,"tholdoffset":7000},"ep":1,"etag":"abed6c9fe5622de3c3e2c30f7fe89d91","manufacturername":"LUMI","modelid":"lumi.sensor_motion.aq2","name":"LightLevel 3","state":{"dark":true,"daylight":false,"lastupdated":"2019-03-01T20:59:51","lightlevel":0,"lux":0},"type":"ZHALightLevel","uniqueid":"00:15:8d:00:02:37:53:26-01-0400"},
"4":{"config":{"battery":100,"on":true,"reachable":true,"temperature":2400},"ep":1,"etag":"41a902b9c168bc429743914d03768f50","manufacturername":"LUMI","mode":1,"modelid":"lumi.sensor_switch.aq2","name":"lumi.sensor_switch.aq2 4","state":{"buttonevent":1004,"lastupdated":"2019-03-01T21:09:08"},"swversion":"20161128","type":"ZHASwitch","uniqueid":"00:15:8d:00:02:15:ca:03-01-0006"},
"5":{"config":{"battery":100,"on":true,"reachable":true,"temperature":2600},"ep":1,"etag":"7bcf408328549ab4f6f41b780e6c84de","manufacturername":"LUMI","mode":1,"modelid":"lumi.sensor_switch.aq2","name":"lumi.sensor_switch.aq2 5","state":{"buttonevent":1004,"lastupdated":"2019-03-01T21:01:22"},"swversion":"20161128","type":"ZHASwitch","uniqueid":"00:15:8d:00:02:04:2c:27-01-0006"},
"6":{"config":{"duration":60,"on":true,"reachable":true},"etag":"2960e327b075644847fc34518c6bf96d","manufacturername":"Phoscon","modelid":"PHOSCON_VPIR","name":"VPIR y","state":{"lastupdated":"2019-03-01T21:02:22","presence":false},"swversion":"1.0","type":"CLIPPresence","uniqueid":"vpir-1551474114742"},
"7":{"config":{"on":true,"reachable":true},"etag":"2960e327b075644847fc34518c6bf96d","manufacturername":"Phoscon","modelid":"PHOSCON_FSM_STATE","name":"FSM_STATE y","state":{"lastupdated":"2019-03-01T21:02:22","status":0},"swversion":"1.0","type":"CLIPGenericStatus","uniqueid":"fsm-state-1551474114742"},
"8":{"config":{"battery":100,"on":true,"pending":[],"reachable":true,"sensitivity":11,"sensitivitymax":21,"temperature":2500},"ep":1,"etag":"c69f102b9fc5475c61fe32386ef4d4c0","manufacturername":"LUMI","mode":1,"modelid":"lumi.vibration.aq1","name":"lumi.vibration.aq1 8","state":{"buttonevent":1007,"lastupdated":"2019-03-03T14:39:09"},"swversion":"20180130","type":"ZHASwitch","uniqueid":"00:15:8d:00:02:a4:91:00-01-0101"}
}