[{“id”:“9589ba0f.dc4288”,“type”:“tab”,“label”:“Lights Kitchen”,“disabled”:false,“info”:“Turn Light on / off based on Illuminance, Motion, HouseMode”},{“id”:“7005d4b3.44676c”,“type”:“switch”,“z”:“9589ba0f.dc4288”,“name”:“”,“property”:“payload”,“propertyType”:“msg”,“rules”:[{“t”:“eq”,“v”:“on”,“vt”:“str”},{“t”:“eq”,“v”:“off”,“vt”:“str”}],“checkall”:“true”,“repair”:false,“outputs”:2,“x”:350,“y”:240,“wires”:[[“154bc203.2e31be”],[“b6d21259.6101b”]]},{“id”:“40d9556.fa932ac”,“type”:“api-call-service”,“z”:“9589ba0f.dc4288”,“name”:“ON”,“server”:“2fba4297.e4145e”,“service_domain”:“light”,“service”:“turn_on”,“data”:“{"entity_id":"light.kuche","kelvin":"2700","brightness_pct":"100"}”,“render_data”:false,“mergecontext”:“”,“output_location”:“payload”,“output_location_type”:“msg”,“x”:1150,“y”:100,“wires”:[]},{“id”:“ecc5df4f.b28a3”,“type”:“api-current-state”,“z”:“9589ba0f.dc4288”,“name”:“Already On?”,“server”:“2fba4297.e4145e”,“halt_if”:“on”,“halt_if_type”:“str”,“halt_if_compare”:“is”,“override_topic”:true,“override_payload”:true,“override_data”:true,“entity_id”:“light.kuche”,“state_type”:“str”,“outputs”:1,“x”:750,“y”:140,“wires”:[[“4280096b.77b3c8”,“1a50be40.8d74a2”,“95672975.207a78”]]},{“id”:“50f142e.a3b2dbc”,“type”:“server-state-changed”,“z”:“9589ba0f.dc4288”,“name”:“Kitchen Motion”,“server”:“2fba4297.e4145e”,“entityidfilter”:“binary_sensor.kuche_motion”,“entityidfiltertype”:“substring”,“outputinitially”:false,“state_type”:“str”,“haltifstate”:“”,“halt_if_type”:“str”,“halt_if_compare”:“is”,“outputs”:1,“x”:200,“y”:240,“wires”:[[“7005d4b3.44676c”]]},{“id”:“154bc203.2e31be”,“type”:“api-current-state”,“z”:“9589ba0f.dc4288”,“name”:“Illuminance”,“server”:“2fba4297.e4145e”,“halt_if”:“120”,“halt_if_type”:“num”,“halt_if_compare”:“gt”,“override_topic”:true,“override_payload”:true,“override_data”:true,“entity_id”:“sensor.kuche_helligkeit”,“state_type”:“str”,“outputs”:1,“x”:570,“y”:200,“wires”:[[“ecc5df4f.b28a3”,“ad78ce1d.bcd6e”]]},{“id”:“ad7f7ccb.155b9”,“type”:“inject”,“z”:“9589ba0f.dc4288”,“name”:“”,“topic”:“”,“payload”:“on”,“payloadType”:“str”,“repeat”:“”,“crontab”:“”,“once”:false,“onceDelay”:0.1,“x”:350,“y”:120,“wires”:[[“154bc203.2e31be”]]},{“id”:“3122492d.3fc036”,“type”:“inject”,“z”:“9589ba0f.dc4288”,“name”:“”,“topic”:“”,“payload”:“off”,“payloadType”:“str”,“repeat”:“”,“crontab”:“”,“once”:false,“onceDelay”:0.1,“x”:350,“y”:180,“wires”:[[“b6d21259.6101b”]]},{“id”:“b6d21259.6101b”,“type”:“api-current-state”,“z”:“9589ba0f.dc4288”,“name”:“Manually switched?”,“server”:“2fba4297.e4145e”,“halt_if”:“off”,“halt_if_type”:“str”,“halt_if_compare”:“is”,“override_topic”:true,“override_payload”:true,“override_data”:true,“entity_id”:“input_boolean.kitchen”,“state_type”:“str”,“outputs”:1,“x”:590,“y”:260,“wires”:[[“df2fe012.81341”]]},{“id”:“4280096b.77b3c8”,“type”:“api-call-service”,“z”:“9589ba0f.dc4288”,“name”:“on automation toggle”,“server”:“2fba4297.e4145e”,“service_domain”:“input_boolean”,“service”:“turn_on”,“data”:“{"entity_id":"input_boolean.kitchen"}”,“render_data”:false,“mergecontext”:“”,“x”:1020,“y”:40,“wires”:[]},{“id”:“893c97f8.36fa18”,“type”:“api-current-state”,“z”:“9589ba0f.dc4288”,“name”:“Still Motion?”,“server”:“2fba4297.e4145e”,“halt_if”:“on”,“halt_if_type”:“str”,“halt_if_compare”:“is”,“override_topic”:true,“override_payload”:false,“override_data”:true,“entity_id”:“binary_sensor.kuche_motion”,“state_type”:“str”,“outputs”:1,“x”:1130,“y”:260,“wires”:[[“499259bd.013698”,“5f20a655.f5e7e8”]],“outputLabels”:[“on”]},{“id”:“1a6386a6.b60259”,“type”:“api-call-service”,“z”:“9589ba0f.dc4288”,“name”:“OFF”,“server”:“2fba4297.e4145e”,“service_domain”:“light”,“service”:“turn_off”,“data”:“{"entity_id":"light.kuche"}”,“render_data”:false,“mergecontext”:“”,“x”:1830,“y”:320,“wires”:[]},{“id”:“e22c0fe0.e894e”,“type”:“api-call-service”,“z”:“9589ba0f.dc4288”,“name”:“off automation toggle”,“server”:“2fba4297.e4145e”,“service_domain”:“input_boolean”,“service”:“turn_off”,“data”:“{"entity_id":"input_boolean.kitchen"}”,“render_data”:false,“mergecontext”:“”,“x”:1880,“y”:260,“wires”:[]},{“id”:“ad78ce1d.bcd6e”,“type”:“api-current-state”,“z”:“9589ba0f.dc4288”,“name”:“Automation running”,“server”:“2fba4297.e4145e”,“halt_if”:“off”,“halt_if_type”:“str”,“halt_if_compare”:“is”,“override_topic”:true,“override_payload”:true,“override_data”:true,“entity_id”:“input_boolean.kitchen”,“state_type”:“str”,“outputs”:1,“x”:770,“y”:200,“wires”:[[“df2fe012.81341”,“1a50be40.8d74a2”,“95672975.207a78”,“43192541.27efcc”]]},{“id”:“df2fe012.81341”,“type”:“stoptimer”,“z”:“9589ba0f.dc4288”,“duration”:“90”,“units”:“Second”,“payloadtype”:“num”,“payloadval”:“0”,“name”:“90sec”,“x”:970,“y”:260,“wires”:[[“893c97f8.36fa18”],]},{“id”:“bb95ec1.114df1”,“type”:“api-current-state”,“z”:“9589ba0f.dc4288”,“name”:“Still Motion?”,“server”:“2fba4297.e4145e”,“halt_if”:“on”,“halt_if_type”:“str”,“halt_if_compare”:“is”,“override_topic”:true,“override_payload”:true,“override_data”:true,“entity_id”:“binary_sensor.kuche_motion”,“state_type”:“str”,“outputs”:1,“x”:1650,“y”:260,“wires”:[[“e22c0fe0.e894e”,“1a6386a6.b60259”]]},{“id”:“499259bd.013698”,“type”:“api-current-state”,“z”:“9589ba0f.dc4288”,“name”:“still On?”,“server”:“2fba4297.e4145e”,“halt_if”:“off”,“halt_if_type”:“str”,“halt_if_compare”:“is”,“override_topic”:true,“override_payload”:true,“override_data”:true,“entity_id”:“light.kuche”,“state_type”:“str”,“outputs”:1,“x”:1340,“y”:200,“wires”:[[“1dc28306.1b8ead”,“6c56b8fd.f9ccb8”]]},{“id”:“1a50be40.8d74a2”,“type”:“api-current-state”,“z”:“9589ba0f.dc4288”,“name”:“Day Mode”,“server”:“2fba4297.e4145e”,“halt_if”:“Tag”,“halt_if_type”:“str”,“halt_if_compare”:“is_not”,“override_topic”:true,“override_payload”:true,“override_data”:true,“entity_id”:“input_select.mode”,“state_type”:“str”,“outputs”:1,“x”:990,“y”:100,“wires”:[[“40d9556.fa932ac”]]},{“id”:“95672975.207a78”,“type”:“api-current-state”,“z”:“9589ba0f.dc4288”,“name”:“Night Mode”,“server”:“2fba4297.e4145e”,“halt_if”:“Nacht”,“halt_if_type”:“str”,“halt_if_compare”:“is_not”,“override_topic”:true,“override_payload”:true,“override_data”:true,“entity_id”:“input_select.mode”,“state_type”:“str”,“outputs”:1,“x”:990,“y”:160,“wires”:[[“3591db7f.915d34”]]},{“id”:“3591db7f.915d34”,“type”:“api-call-service”,“z”:“9589ba0f.dc4288”,“name”:“ON”,“server”:“2fba4297.e4145e”,“service_domain”:“light”,“service”:“turn_on”,“data”:“{"entity_id":"light.kitchen_top","color_name":"red","brightness_pct":"25"}”,“render_data”:false,“mergecontext”:“”,“x”:1150,“y”:160,“wires”:[]},{“id”:“1dc28306.1b8ead”,“type”:“api-current-state”,“z”:“9589ba0f.dc4288”,“name”:“Tag Mode”,“server”:“2fba4297.e4145e”,“halt_if”:“Tag”,“halt_if_type”:“str”,“halt_if_compare”:“is_not”,“override_topic”:true,“override_payload”:true,“override_data”:true,“entity_id”:“input_select.mode”,“state_type”:“str”,“outputs”:1,“x”:1520,“y”:140,“wires”:[[“76b87490.acd23c”]]},{“id”:“6c56b8fd.f9ccb8”,“type”:“api-current-state”,“z”:“9589ba0f.dc4288”,“name”:“Nacht Mode”,“server”:“2fba4297.e4145e”,“halt_if”:“Nacht”,“halt_if_type”:“str”,“halt_if_compare”:“is_not”,“override_topic”:true,“override_payload”:true,“override_data”:true,“entity_id”:“input_select.mode”,“state_type”:“str”,“outputs”:1,“x”:1530,“y”:200,“wires”:[[“19cfca2f.0d2ec6”]]},{“id”:“76b87490.acd23c”,“type”:“api-call-service”,“z”:“9589ba0f.dc4288”,“name”:“ON”,“server”:“2fba4297.e4145e”,“service_domain”:“light”,“service”:“turn_on”,“data”:“{"entity_id":"light.kuche","kelvin":"2700","brightness_pct":"50"}”,“render_data”:false,“mergecontext”:“”,“x”:1690,“y”:140,“wires”:[]},{“id”:“19cfca2f.0d2ec6”,“type”:“api-call-service”,“z”:“9589ba0f.dc4288”,“name”:“ON”,“server”:“2fba4297.e4145e”,“service_domain”:“light”,“service”:“turn_on”,“data”:“{"entity_id":"light.kitchen_top","color_name":"red","brightness_pct":"10"}”,“render_data”:false,“mergecontext”:“”,“x”:1690,“y”:200,“wires”:[]},{“id”:“43192541.27efcc”,“type”:“template”,“z”:“9589ba0f.dc4288”,“name”:“cancel”,“field”:“payload”,“fieldType”:“msg”,“format”:“handlebars”,“syntax”:“plain”,“template”:“cancel”,“output”:“str”,“x”:1110,“y”:220,“wires”:[[“5f20a655.f5e7e8”]],“inputLabels”:[“on”],“outputLabels”:[“stop”]},{“id”:“5f20a655.f5e7e8”,“type”:“mytimeout”,“z”:“9589ba0f.dc4288”,“name”:“30sec”,“outtopic”:“”,“outsafe”:" “,“outwarning”:”“,“outunsafe”:“off”,“warning”:”“,“timer”:“30”,“debug”:false,“ndebug”:true,“ignoreCase”:false,“repeat”:false,“again”:false,“x”:1330,“y”:260,“wires”:[[“7239e6d1.887788”],]},{“id”:“7239e6d1.887788”,“type”:“switch”,“z”:“9589ba0f.dc4288”,“name”:”“,“property”:“payload”,“propertyType”:“msg”,“rules”:[{“t”:“eq”,“v”:“off”,“vt”:“str”}],“checkall”:“true”,“repair”:false,“outputs”:1,“x”:1470,“y”:260,“wires”:[[“bb95ec1.114df1”]]},{“id”:“2fba4297.e4145e”,“type”:“server”,“z”:”",“name”:“Home Assistant”,“legacy”:false,“hassio”:true,“rejectUnauthorizedCerts”:true,“ha_boolean”:“y|yes|true|on|home|open”}]![lights|690x134]