Hello
I have a couple of Aqara wireless smart switches (1-4 presses) and my current setup is using 1 push of the button to turn it on on a certain effect.
I want to take the current value of brightness on the ledlight and dim up (lets say 10% with each step) with 2 push and dim down (10%) with 3 push
Im lost when it comes to how I should do the above…
Would greatly appriciate the help.
[{"id":"24b6260c.8473ea","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"f514eea5.9b43c","type":"server-events","z":"24b6260c.8473ea","name":"","server":"ee6480c8.d1c6b","event_type":"deconz_event","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"x":140,"y":160,"wires":[["7b63e41a.bfa91c"]]},{"id":"7b63e41a.bfa91c","type":"switch","z":"24b6260c.8473ea","name":"Aqara Smart switch","property":"payload.event.id","propertyType":"msg","rules":[{"t":"eq","v":"smart_switch_5","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":410,"y":160,"wires":[["36bcbd72.612512"]]},{"id":"36bcbd72.612512","type":"switch","z":"24b6260c.8473ea","name":"1-4 pusches on Button","property":"payload.event.event","propertyType":"msg","rules":[{"t":"eq","v":"1002","vt":"str"},{"t":"eq","v":"1004","vt":"str"},{"t":"eq","v":"1005","vt":"str"},{"t":"eq","v":"1006","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":680,"y":160,"wires":[["5e78bc27.f10e94"],[],[],[]]},{"id":"5e78bc27.f10e94","type":"api-call-service","z":"24b6260c.8473ea","name":"Led with effect","server":"ee6480c8.d1c6b","version":1,"debugenabled":false,"service_domain":"light","service":"toggle","entityId":"light.ledutekok","data":"{\"effect\":\"2\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":930,"y":60,"wires":[["f25d1935.3ffb08"]]},{"id":"f25d1935.3ffb08","type":"debug","z":"24b6260c.8473ea","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1170,"y":60,"wires":[]},{"id":"ee6480c8.d1c6b","type":"server","z":"","name":"Home Assistant"}]