Advertisement
Guest User

dawn till dusk auto dimming light

a guest
Jul 27th, 2018
987
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.49 KB | None | 0 0
  1. [{"id":"15a79464.c2118c","type":"bigtimer","z":"8b209c2.a081c6","outtopic":"","outpayload1":"on","outpayload2":"off","name":"Big Timer","lat":"40.7928359","lon":"-3.4970447000000604","starttime":5001,"endtime":"5000","startoff":0,"endoff":0,"offs":0,"outtext1":"","outtext2":"","timeout":1440,"sun":true,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"jan":true,"feb":true,"mar":true,"apr":true,"may":true,"jun":true,"jul":true,"aug":true,"sep":true,"oct":true,"nov":true,"dec":true,"day1":0,"month1":0,"day2":0,"month2":0,"day3":0,"month3":0,"day4":0,"month4":0,"day5":0,"month5":0,"d1":0,"w1":0,"d2":0,"w2":0,"d3":0,"w3":0,"d4":0,"w4":0,"d5":0,"w5":0,"suspend":false,"random":false,"repeat":true,"atstart":true,"odd":false,"even":false,"x":480,"y":80,"wires":[["cbe4a137.76971"],[],[]]},{"id":"cbe4a137.76971","type":"switch","z":"8b209c2.a081c6","name":"Turn the bulb on or off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":720,"y":80,"wires":[["5db304cb.bb8f6c"],["9d88c5aa.b72058"]]},{"id":"5db304cb.bb8f6c","type":"api-call-service","z":"8b209c2.a081c6","name":"Turn on the bulb","server":"496baa94.116b04","service_domain":"light","service":"turn_on","data":"{\"entity_id\":\"light.tradfri_bulb_e27_ws_opal_980lm\"}","mergecontext":"","x":1000,"y":20,"wires":[[]]},{"id":"9d88c5aa.b72058","type":"api-call-service","z":"8b209c2.a081c6","name":"Turn off the bulb","server":"496baa94.116b04","service_domain":"light","service":"turn_off","data":"{\"entity_id\":\"light.tradfri_bulb_e27_ws_opal_980lm\"}","mergecontext":"","x":1000,"y":80,"wires":[[]]},{"id":"43b15ef4.605b8","type":"ui_switch","z":"8b209c2.a081c6","name":"","label":"switch","group":"8b7a2ce6.50a2","order":0,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"on","onvalueType":"str","onicon":"","oncolor":"","offvalue":"off","offvalueType":"str","officon":"","offcolor":"","x":70,"y":80,"wires":[["9050ccee.86d6"]]},{"id":"9050ccee.86d6","type":"change","z":"8b209c2.a081c6","name":"modify off with default","rules":[{"t":"change","p":"payload","pt":"msg","from":"off","fromt":"str","to":"default","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":260,"y":80,"wires":[["15a79464.c2118c"]]},{"id":"b577ec7d.be80a","type":"ui_slider","z":"8b209c2.a081c6","name":"","label":"slider","group":"8b7a2ce6.50a2","order":0,"width":0,"height":0,"passthru":true,"topic":"","min":0,"max":"100","step":"5","x":70,"y":220,"wires":[["e01d8e42.886b"]]},{"id":"c4e84d2f.445c9","type":"template","z":"8b209c2.a081c6","name":"prepare attributes","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n\"data\":\n{\n\"entity_id\" : \"light.tradfri_bulb_e27_ws_opal_980lm\",\n\"brightness\" : {{flow.floorlampbrightness}},\n}\n}","output":"str","x":600,"y":220,"wires":[[]]},{"id":"e01d8e42.886b","type":"change","z":"8b209c2.a081c6","name":"Store brightnes","rules":[{"t":"set","p":"floorlampbrightness","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":220,"wires":[["c4e84d2f.445c9"]]},{"id":"496baa94.116b04","type":"server","z":"","name":"Home Assistant","url":"http://hassio/homeassistant","pass":""},{"id":"8b7a2ce6.50a2","type":"ui_group","z":"","name":"Bulb switch","tab":"4b1e5236.06c50c","disp":true,"width":"6","collapse":false},{"id":"4b1e5236.06c50c","type":"ui_tab","z":"","name":"Lights","icon":"dashboard"}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement