Having
Homebridge(HB) up and running it's simple to retrieve and visualize status or measurements from accessories.
For example I'm using the Aeotec MultiSensor 6,(AM6), via the z-way plugin, where I'm sensing the light level. Since Im living in northern Europe it's not very accurate to switch the indoor lightning by sun-rise/set. So instead I'm using the AM6 together with the EVE app to switch the lightning.
To visualize the measured values over time I'm using
NodeRed(NR) and a HomeBridge plugin
The broadband measure is explained in this post.
The broadband measure is explained in this post.
The HB plugin used is "node-red-contrib-homebridge-automation" which is very simple to use. Just install it via NR and
follow the instructions.
With "node-red-dashboard" installed just import the flow and test
[{"id":"151cd31b.971fe5","type":"tab","label":"HB
luminicense","disabled":false,"info":""},{"id":"e123bdab.15d01","type":"ui_chart","z":"151cd31b.971fe5","name":"","group":"8ae85136.2739c8","order":1,"width":"0","height":"0","label":"Light
level","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"4","removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":780,"y":100,"wires":[[]]},{"id":"ced265c4.12b778","type":"function","z":"151cd31b.971fe5","name":"Read
Light level","func":"msg.payload =
msg.payload.CurrentAmbientLightLevel\nreturn
msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":540,"y":100,"wires":[["e123bdab.15d01"]]},{"id":"758e10a0.ecc138","type":"hb-status","z":"151cd31b.971fe5","name":"Luminiscence
(33.0.49.3)","Homebridge":"homebridge","Manufacturer":"Z-Wave.me","Service":"Light
Sensor","device":"homebridge54:A4:D8:72:1C:B0Z-Wave.meLuminiscence
(33.0.49.3)00000084","conf":"d8dfe0f.600c9a","x":310,"y":100,"wires":[["ced265c4.12b778"]]},{"id":"e0f663de.e1f15","type":"inject","z":"151cd31b.971fe5","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":100,"y":100,"wires":[["758e10a0.ecc138"]]},{"id":"8ae85136.2739c8","type":"ui_group","name":"Light","tab":"ffb3234a.39ca9","order":1,"disp":false,"width":"6","collapse":false},{"id":"d8dfe0f.600c9a","type":"hb-conf","username":"03145155"},{"id":"ffb3234a.39ca9","type":"ui_tab","name":"Light","icon":"dashboard","order":9,"disabled":false,"hidden":false}]
No comments:
Post a Comment
Feel free to leave a comment ! ... but due to a lot of spam comments I have to moderate them. Will reply ASAP !