i worked out the dimming
[{"id":"9950aae5.971b18","type":"server-state-changed","z":"a9a9b2a55d44b512","name":"Multi 1 Action","server":"fb2011e1.dac7e","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.kit_light_remote_01_action","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":70,"y":400,"wires":[["1aff2674.326c6a"]]},{"id":"1aff2674.326c6a","type":"switch","z":"a9a9b2a55d44b512","name":"Multi 1 Action","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"toggle","vt":"str"},{"t":"eq","v":"toggle_hold","vt":"str"},{"t":"eq","v":"brightness_up_click","vt":"str"},{"t":"eq","v":"brightness_up_hold","vt":"str"},{"t":"eq","v":"brightness_up_release","vt":"str"},{"t":"eq","v":"brightness_down_click","vt":"str"},{"t":"eq","v":"brightness_down_hold","vt":"str"},{"t":"eq","v":"brightness_down_release","vt":"str"},{"t":"eq","v":"arrow_left_click","vt":"str"},{"t":"eq","v":"arrow_right_click","vt":"str"},{"t":"eq","v":"arrow_left_hold","vt":"str"},{"t":"eq","v":"arrow_left_release","vt":"str"},{"t":"eq","v":"arrow_right_hold","vt":"str"},{"t":"eq","v":"arrow_right_release","vt":"str"}],"checkall":"false","repair":false,"outputs":14,"x":230,"y":400,"wires":[["1f1ce544.44c9bb","07088e75c3726505"],[],["46a9c4c0.7cbe6c","d98e707a8a4b103c"],["61a096a9.48e8d8"],["5084864f.8776d8"],["ce4be35ab65a1cf6","dacf77bdb8b5cbfe"],["9206f09c.30871"],["c198c10.a6fe84"],[],[],[],[],[],[]]},{"id":"1f1ce544.44c9bb","type":"api-current-state","z":"a9a9b2a55d44b512","name":"Kitchen light 1 state","server":"fb2011e1.dac7e","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"light.kit_counter_led_01","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","x":510,"y":80,"wires":[["f763fbd1.6373b8"],["7bf1cb35.bbd874"]]},{"id":"f763fbd1.6373b8","type":"api-call-service","z":"a9a9b2a55d44b512","name":"Light Off","server":"fb2011e1.dac7e","version":5,"debugenabled":false,"domain":"light","service":"turn_off","areaId":[],"deviceId":[],"entityId":["light.kit_counter_led_01"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","output_location":"","output_location_type":"none","x":720,"y":40,"wires":[[]]},{"id":"7bf1cb35.bbd874","type":"api-call-service","z":"a9a9b2a55d44b512","name":"Light On","server":"fb2011e1.dac7e","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.kit_counter_led_01"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","output_location":"","output_location_type":"none","x":720,"y":100,"wires":[[]]},{"id":"46a9c4c0.7cbe6c","type":"api-current-state","z":"a9a9b2a55d44b512","name":"Kitchen light 1 state","server":"fb2011e1.dac7e","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"light.kit_counter_led_01","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","x":470,"y":280,"wires":[["e1ef3418.3aa2a8"],[]]},{"id":"e1ef3418.3aa2a8","type":"api-current-state","z":"a9a9b2a55d44b512","name":"Kitchen light 1 brightness","server":"fb2011e1.dac7e","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"light.kit_counter_led_01","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"brightness","propertyType":"msg","value":"$entity().attributes.brightness","valueType":"jsonata"}],"for":0,"forType":"num","forUnits":"minutes","x":720,"y":280,"wires":[["b5213ba.d6940c8","89b7741f68638647"]]},{"id":"b5213ba.d6940c8","type":"function","z":"a9a9b2a55d44b512","name":"Brightness +50","func":"\nvar brightness = msg.brightness; //setup brightness and set to msg.payload\nbrightness = parseInt(brightness);\n\nif (brightness < 205) {\n brightness = brightness + 50;\n} else {\n brightness = 255;\n}\n\nmsg.payload = brightness;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":960,"y":280,"wires":[["e820e467.aba478","efb4ca5e9a279d78"]]},{"id":"e820e467.aba478","type":"api-call-service","z":"a9a9b2a55d44b512","name":"Light On","server":"fb2011e1.dac7e","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.kit_counter_led_01"],"data":"{ \"entity_id\": \"light.bedroom_1_light\", \"brightness\": {{payload}}}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","output_location":"","output_location_type":"none","x":1140,"y":280,"wires":[[]]},{"id":"838f1e04.6d1b8","type":"api-call-service","z":"a9a9b2a55d44b512","name":"Light On","server":"fb2011e1.dac7e","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.kit_counter_led_01"],"data":"{ \"entity_id\": \"light.bedroom_1_light\", \"brightness\": {{payload}}}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","output_location":"","output_location_type":"none","x":1360,"y":400,"wires":[[]]},{"id":"76d5c13c.42e95","type":"function","z":"a9a9b2a55d44b512","name":"Brightness +10","func":"\nvar brightness = msg.brightness; //setup brightness and set to msg.payload\nbrightness = parseInt(brightness);\n\nif (brightness < 245) {\n brightness = brightness + 10;\n} else {\n brightness = 255;\n}\n\nmsg.payload = brightness;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1180,"y":400,"wires":[["838f1e04.6d1b8"]]},{"id":"61a096a9.48e8d8","type":"trigger","z":"a9a9b2a55d44b512","name":"","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"-250","extend":false,"overrideDelay":false,"units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":480,"y":400,"wires":[["fafee5d91b8d487d","1a0af0f50e43bd71"]]},{"id":"5084864f.8776d8","type":"change","z":"a9a9b2a55d44b512","name":"reset","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":430,"y":460,"wires":[["61a096a9.48e8d8"]]},{"id":"9206f09c.30871","type":"trigger","z":"a9a9b2a55d44b512","name":"","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"-250","extend":false,"overrideDelay":false,"units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":500,"y":680,"wires":[["d65937d04e66509c","4de274f37b847413"]]},{"id":"c198c10.a6fe84","type":"change","z":"a9a9b2a55d44b512","name":"reset","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":740,"wires":[["9206f09c.30871"]]},{"id":"07088e75c3726505","type":"api-current-state","z":"a9a9b2a55d44b512","name":"Kitchen light 2 state","server":"fb2011e1.dac7e","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"light.kit_counter_led_02","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","x":510,"y":200,"wires":[["99ca4adfc472e2c1"],["c985bd9fa2d8a7a5"]]},{"id":"99ca4adfc472e2c1","type":"api-call-service","z":"a9a9b2a55d44b512","name":"Light Off","server":"fb2011e1.dac7e","version":5,"debugenabled":false,"domain":"light","service":"turn_off","areaId":[],"deviceId":[],"entityId":["light.kit_counter_led_02"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","output_location":"","output_location_type":"none","x":720,"y":160,"wires":[[]]},{"id":"c985bd9fa2d8a7a5","type":"api-call-service","z":"a9a9b2a55d44b512","name":"Light On","server":"fb2011e1.dac7e","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.kit_counter_led_02"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","output_location":"","output_location_type":"none","x":720,"y":220,"wires":[[]]},{"id":"d98e707a8a4b103c","type":"api-current-state","z":"a9a9b2a55d44b512","name":"Kitchen light 2 state","server":"fb2011e1.dac7e","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"light.kit_counter_led_02","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","x":470,"y":340,"wires":[["b4315d5ba775d07d"],[]]},{"id":"b4315d5ba775d07d","type":"api-current-state","z":"a9a9b2a55d44b512","name":"Kitchen light 2 brightness","server":"fb2011e1.dac7e","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"light.kit_counter_led_02","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"brightness","propertyType":"msg","value":"$entity().attributes.brightness","valueType":"jsonata"}],"for":0,"forType":"num","forUnits":"minutes","x":720,"y":340,"wires":[["75d9a77e2172b005"]]},{"id":"75d9a77e2172b005","type":"function","z":"a9a9b2a55d44b512","name":"Brightness +50","func":"\nvar brightness = msg.brightness; //setup brightness and set to msg.payload\nbrightness = parseInt(brightness);\n\nif (brightness < 205) {\n brightness = brightness + 50;\n} else {\n brightness = 255;\n}\n\nmsg.payload = brightness;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":960,"y":340,"wires":[["2a257e0d6828e466"]]},{"id":"2a257e0d6828e466","type":"api-call-service","z":"a9a9b2a55d44b512","name":"Light On","server":"fb2011e1.dac7e","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.kit_counter_led_02"],"data":"{ \"entity_id\": \"light.bedroom_1_light\", \"brightness\": {{payload}}}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","output_location":"","output_location_type":"none","x":1140,"y":340,"wires":[[]]},{"id":"89b7741f68638647","type":"debug","z":"a9a9b2a55d44b512","name":"debug 24","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1000,"y":220,"wires":[]},{"id":"efb4ca5e9a279d78","type":"debug","z":"a9a9b2a55d44b512","name":"debug 25","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1180,"y":220,"wires":[]},{"id":"ce4be35ab65a1cf6","type":"api-current-state","z":"a9a9b2a55d44b512","name":"Kitchen light 1 state","server":"fb2011e1.dac7e","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"light.kit_counter_led_01","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","x":490,"y":540,"wires":[["9e638b86ad8d5bda"],[]]},{"id":"9e638b86ad8d5bda","type":"api-current-state","z":"a9a9b2a55d44b512","name":"Kitchen light 1 brightness","server":"fb2011e1.dac7e","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"light.kit_counter_led_01","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"brightness","propertyType":"msg","value":"$entity().attributes.brightness","valueType":"jsonata"}],"for":0,"forType":"num","forUnits":"minutes","x":730,"y":540,"wires":[["9af2ad96f3b756bb"]]},{"id":"a1f2b248f7dd1abb","type":"api-call-service","z":"a9a9b2a55d44b512","name":"Light On","server":"fb2011e1.dac7e","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.kit_counter_led_01"],"data":"{ \"entity_id\": \"light.bedroom_1_light\", \"brightness\": {{payload}}}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","output_location":"","output_location_type":"none","x":1140,"y":540,"wires":[[]]},{"id":"dacf77bdb8b5cbfe","type":"api-current-state","z":"a9a9b2a55d44b512","name":"Kitchen light 2 state","server":"fb2011e1.dac7e","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"light.kit_counter_led_02","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","x":490,"y":600,"wires":[["7b5cf2a6d3674569"],[]]},{"id":"7b5cf2a6d3674569","type":"api-current-state","z":"a9a9b2a55d44b512","name":"Kitchen light 2 brightness","server":"fb2011e1.dac7e","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"light.kit_counter_led_02","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"brightness","propertyType":"msg","value":"$entity().attributes.brightness","valueType":"jsonata"}],"for":0,"forType":"num","forUnits":"minutes","x":730,"y":600,"wires":[["b3e3f52cca018922"]]},{"id":"c6bd27eafdd5507e","type":"api-call-service","z":"a9a9b2a55d44b512","name":"Light On","server":"fb2011e1.dac7e","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.kit_counter_led_02"],"data":"{ \"entity_id\": \"light.bedroom_1_light\", \"brightness\": {{payload}}}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","output_location":"","output_location_type":"none","x":1140,"y":600,"wires":[[]]},{"id":"9af2ad96f3b756bb","type":"function","z":"a9a9b2a55d44b512","name":"Brightness -50","func":"\nvar brightness = msg.brightness; //setup brightness and set to msg.payload\nbrightness = parseInt(brightness);\n\nif (brightness > 55) {\n brightness = brightness - 50;\n} else {\n brightness = 5;\n}\n\nmsg.payload = brightness;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":960,"y":540,"wires":[["a1f2b248f7dd1abb"]]},{"id":"b3e3f52cca018922","type":"function","z":"a9a9b2a55d44b512","name":"Brightness -50","func":"\nvar brightness = msg.brightness; //setup brightness and set to msg.payload\nbrightness = parseInt(brightness);\n\nif (brightness > 55) {\n brightness = brightness - 50;\n} else {\n brightness = 5;\n}\n\nmsg.payload = brightness;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":960,"y":600,"wires":[["c6bd27eafdd5507e"]]},{"id":"fafee5d91b8d487d","type":"api-current-state","z":"a9a9b2a55d44b512","name":"Kitchen light 1 state","server":"fb2011e1.dac7e","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"light.kit_counter_led_01","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","x":690,"y":400,"wires":[["7638c47a27f5c25e"],[]]},{"id":"1a0af0f50e43bd71","type":"api-current-state","z":"a9a9b2a55d44b512","name":"Kitchen light 2 state","server":"fb2011e1.dac7e","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"light.kit_counter_led_02","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","x":690,"y":460,"wires":[["8d60cc8f250c9270"],[]]},{"id":"7638c47a27f5c25e","type":"api-current-state","z":"a9a9b2a55d44b512","name":"Kitchen light 1 brightness","server":"fb2011e1.dac7e","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"light.kit_counter_led_01","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"brightness","propertyType":"msg","value":"$entity().attributes.brightness","valueType":"jsonata"}],"for":0,"forType":"num","forUnits":"minutes","x":930,"y":400,"wires":[["76d5c13c.42e95"]]},{"id":"8d60cc8f250c9270","type":"api-current-state","z":"a9a9b2a55d44b512","name":"Kitchen light 2 brightness","server":"fb2011e1.dac7e","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"light.kit_counter_led_02","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"brightness","propertyType":"msg","value":"$entity().attributes.brightness","valueType":"jsonata"}],"for":0,"forType":"num","forUnits":"minutes","x":930,"y":460,"wires":[["5d1f8730aa6e7646"]]},{"id":"5d1f8730aa6e7646","type":"function","z":"a9a9b2a55d44b512","name":"Brightness +10","func":"\nvar brightness = msg.brightness; //setup brightness and set to msg.payload\nbrightness = parseInt(brightness);\n\nif (brightness < 245) {\n brightness = brightness + 10;\n} else {\n brightness = 255;\n}\n\nmsg.payload = brightness;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1180,"y":460,"wires":[["48a2ea4bba50dd74"]]},{"id":"48a2ea4bba50dd74","type":"api-call-service","z":"a9a9b2a55d44b512","name":"Light On","server":"fb2011e1.dac7e","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.kit_counter_led_02"],"data":"{ \"entity_id\": \"light.bedroom_1_light\", \"brightness\": {{payload}}}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","output_location":"","output_location_type":"none","x":1360,"y":460,"wires":[[]]},{"id":"0cad3d542d8b9a1b","type":"api-call-service","z":"a9a9b2a55d44b512","name":"Light On","server":"fb2011e1.dac7e","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.kit_counter_led_01"],"data":"{ \"entity_id\": \"light.bedroom_1_light\", \"brightness\": {{payload}}}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","output_location":"","output_location_type":"none","x":1380,"y":680,"wires":[[]]},{"id":"d65937d04e66509c","type":"api-current-state","z":"a9a9b2a55d44b512","name":"Kitchen light 1 state","server":"fb2011e1.dac7e","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"light.kit_counter_led_01","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","x":710,"y":680,"wires":[["0db642fbe3628c86"],[]]},{"id":"4de274f37b847413","type":"api-current-state","z":"a9a9b2a55d44b512","name":"Kitchen light 2 state","server":"fb2011e1.dac7e","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"light.kit_counter_led_02","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","x":710,"y":740,"wires":[["e3dd9912a05564eb"],[]]},{"id":"0db642fbe3628c86","type":"api-current-state","z":"a9a9b2a55d44b512","name":"Kitchen light 1 brightness","server":"fb2011e1.dac7e","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"light.kit_counter_led_01","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"brightness","propertyType":"msg","value":"$entity().attributes.brightness","valueType":"jsonata"}],"for":0,"forType":"num","forUnits":"minutes","x":950,"y":680,"wires":[["76f4718c19e50db1"]]},{"id":"e3dd9912a05564eb","type":"api-current-state","z":"a9a9b2a55d44b512","name":"Kitchen light 2 brightness","server":"fb2011e1.dac7e","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"light.kit_counter_led_02","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"brightness","propertyType":"msg","value":"$entity().attributes.brightness","valueType":"jsonata"}],"for":0,"forType":"num","forUnits":"minutes","x":950,"y":740,"wires":[["f07f43b20382bafc"]]},{"id":"980d9c06a926a6c8","type":"api-call-service","z":"a9a9b2a55d44b512","name":"Light On","server":"fb2011e1.dac7e","version":5,"debugenabled":false,"domain":"light","service":"turn_on","areaId":[],"deviceId":[],"entityId":["light.kit_counter_led_02"],"data":"{ \"entity_id\": \"light.bedroom_1_light\", \"brightness\": {{payload}}}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","output_location":"","output_location_type":"none","x":1380,"y":740,"wires":[[]]},{"id":"76f4718c19e50db1","type":"function","z":"a9a9b2a55d44b512","name":"Brightness -10","func":"\nvar brightness = msg.brightness; //setup brightness and set to msg.payload\nbrightness = parseInt(brightness);\n\nif (brightness > 15) {\n brightness = brightness - 10;\n} else {\n brightness = 5;\n}\n\nmsg.payload = brightness;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1180,"y":680,"wires":[["0cad3d542d8b9a1b"]]},{"id":"f07f43b20382bafc","type":"function","z":"a9a9b2a55d44b512","name":"Brightness -10","func":"\nvar brightness = msg.brightness; //setup brightness and set to msg.payload\nbrightness = parseInt(brightness);\n\nif (brightness > 15) {\n brightness = brightness - 10;\n} else {\n brightness = 5;\n}\n\nmsg.payload = brightness;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1180,"y":740,"wires":[["980d9c06a926a6c8"]]},{"id":"fb2011e1.dac7e","type":"server","name":"Home Assistant","addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"","connectionDelay":false,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"","statusSeparator":"","enableGlobalContextStore":false}]