Last active
August 17, 2020 11:19
-
-
Save GuySie/d80a160672c0331d801bef38e715c53e to your computer and use it in GitHub Desktop.
NodeRED - Light Art automatic brightness
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"5a81a064.8f24","type":"server-state-changed","z":"4dfc0988.b18588","name":"If Light sensor changes","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.ls_ambient","entityidfiltertype":"exact","outputinitially":true,"state_type":"num","haltifstate":"0","halt_if_type":"num","halt_if_compare":"gt","outputs":2,"output_only_on_state_change":true,"x":120,"y":840,"wires":[["d0f3f59d.d57078"],[]]},{"id":"d0f3f59d.d57078","type":"switch","z":"4dfc0988.b18588","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"1000","vt":"str"},{"t":"btwn","v":"1000","vt":"num","v2":"500","v2t":"num"},{"t":"lt","v":"500","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":350,"y":840,"wires":[["20908601.393aaa"],["7aa03e71.b14d7"],["5b77d3b8.6db05c"]]},{"id":"20908601.393aaa","type":"api-current-state","z":"4dfc0988.b18588","name":"Is Light Art on?","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"light.extended_color_light_1","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":600,"y":840,"wires":[["ef6f24a1.1fa418"],[]]},{"id":"7aa03e71.b14d7","type":"api-current-state","z":"4dfc0988.b18588","name":"Is Light Art on?","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"light.extended_color_light_1","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":600,"y":900,"wires":[["4aead220.6f75ac"],[]]},{"id":"5b77d3b8.6db05c","type":"api-current-state","z":"4dfc0988.b18588","name":"Is Light Art on?","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"light.extended_color_light_1","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":600,"y":960,"wires":[["fc16faf1.685908"],[]]},{"id":"ef6f24a1.1fa418","type":"api-call-service","z":"4dfc0988.b18588","name":"Set to full brightness","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.extended_color_light_1","data":"{\"brightness\":255}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":820,"y":840,"wires":[[]]},{"id":"4aead220.6f75ac","type":"api-call-service","z":"4dfc0988.b18588","name":"Set to medium brightness","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.extended_color_light_1","data":"{\"brightness\":200}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":830,"y":900,"wires":[[]]},{"id":"fc16faf1.685908","type":"api-call-service","z":"4dfc0988.b18588","name":"Set to low brightness","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.extended_color_light_1","data":"{\"brightness\":150}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":820,"y":960,"wires":[[]]}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment