Node Red Flow for Pico and Lifx

I previously had setup a flow in SmartThings Webcore to control a group of Lifx lights using Pico remotes. Since it was all cloud - somethings you could count a minute (or more) for it to execute. I’m trying to setup the same flow in node red where I have button 1 turn on, 4 turn off, 16 dim down 10%, 8 dim up 10%, and the favorite button set a random color. So far - I’ve only managed to get on/off working. This is my first node red flow…hoping someone can offer some advice to get this working…

Here is what I have so far:

[{“id”:“6903d07e.c9dad”,“type”:“tab”,“label”:“Pico Side Entry”,“disabled”:false,“info”:""},{“id”:“68f9b806.588eb8”,“type”:“server-state-changed”,“z”:“6903d07e.c9dad”,“name”:“Kitchen Pico SF”,“server”:“9c3edb27.85f978”,“entityidfilter”:“sensor.kitchen_pico_side_entry”,“entityidfiltertype”:“substring”,“haltifstate”:"",“x”:100,“y”:180,“wires”:[[“fdedffa1.3a98b8”,“4aa9eae1.747dc4”,“54ee1d3d.78e92c”,“7d62b4ef.74597c”,“a8518b54.0c8c18”]]},{“id”:“1b13cb41.84e795”,“type”:“api-current-state”,“z”:“6903d07e.c9dad”,“name”:“Light Off?”,“server”:“9c3edb27.85f978”,“halt_if”:“off”,“override_topic”:true,“override_payload”:true,“entity_id”:“group.kitchen_ceiling_lights”,“x”:780,“y”:320,“wires”:[[]]},{“id”:“54ee1d3d.78e92c”,“type”:“trigger-state”,“z”:“6903d07e.c9dad”,“name”:“Dim Button Down Pressed”,“server”:“9c3edb27.85f978”,“entityid”:“sensor.kitchen_pico_side_entry”,“debugenabled”:true,“constraints”:[{“id”:“leiypdreu8a”,“targetType”:“this_entity”,“targetValue”:"",“propertyType”:“current_state”,“propertyValue”:“new_state.state”,“comparatorType”:“is”,“comparatorValueDatatype”:“str”,“comparatorValue”:“16”}],“constraintsmustmatch”:“all”,“outputs”:2,“customoutputs”:[],“x”:500,“y”:260,“wires”:[[“1b13cb41.84e795”],[]]},{“id”:“fdedffa1.3a98b8”,“type”:“trigger-state”,“z”:“6903d07e.c9dad”,“name”:“On Button Pressed”,“server”:“9c3edb27.85f978”,“entityid”:“sensor.kitchen_pico_side_entry”,“debugenabled”:true,“constraints”:[{“id”:“4uzaezhjure”,“targetType”:“this_entity”,“targetValue”:"",“propertyType”:“current_state”,“propertyValue”:“new_state.state”,“comparatorType”:“is”,“comparatorValueDatatype”:“str”,“comparatorValue”:“1”}],“constraintsmustmatch”:“all”,“outputs”:2,“customoutputs”:[],“x”:490,“y”:80,“wires”:[[“9a10328f.ebb4c”],[]]},{“id”:“4aa9eae1.747dc4”,“type”:“trigger-state”,“z”:“6903d07e.c9dad”,“name”:“Off Button Pressed”,“server”:“9c3edb27.85f978”,“entityid”:“sensor.kitchen_pico_side_entry”,“debugenabled”:true,“constraints”:[{“id”:“tdz61aq78n”,“targetType”:“this_entity”,“targetValue”:"",“propertyType”:“current_state”,“propertyValue”:“new_state.state”,“comparatorType”:“is”,“comparatorValueDatatype”:“str”,“comparatorValue”:“4”}],“constraintsmustmatch”:“all”,“outputs”:2,“customoutputs”:[],“x”:490,“y”:180,“wires”:[[],[“7d9c9e6f.5ac01”]]},{“id”:“fcbac91c.5a2168”,“type”:“api-call-service”,“z”:“6903d07e.c9dad”,“name”:“OFF”,“server”:“9c3edb27.85f978”,“service_domain”:“light”,“service”:“turn_off”,“data”:"{“entity_id”:“group.kitchen_ceiling_lights”}",“mergecontext”:"",“x”:990,“y”:180,“wires”:[[]]},{“id”:“9a10328f.ebb4c”,“type”:“api-current-state”,“z”:“6903d07e.c9dad”,“name”:“Light On?”,“server”:“9c3edb27.85f978”,“halt_if”:“on”,“override_topic”:true,“override_payload”:true,“entity_id”:“group.kitchen_ceiling_lights”,“x”:740,“y”:60,“wires”:[[“77463cfc.adadc4”]]},{“id”:“7d9c9e6f.5ac01”,“type”:“api-current-state”,“z”:“6903d07e.c9dad”,“name”:“Light Off?”,“server”:“9c3edb27.85f978”,“halt_if”:“off”,“override_topic”:true,“override_payload”:true,“entity_id”:“group.kitchen_ceiling_lights”,“x”:780,“y”:180,“wires”:[[“fcbac91c.5a2168”]]},{“id”:“77463cfc.adadc4”,“type”:“api-call-service”,“z”:“6903d07e.c9dad”,“name”:“ON”,“server”:“9c3edb27.85f978”,“service_domain”:“light”,“service”:“turn_on”,“data”:"{“entity_id”:“group.kitchen_ceiling_lights”}",“mergecontext”:"",“x”:990,“y”:80,“wires”:[[]]},{“id”:“7d62b4ef.74597c”,“type”:“trigger-state”,“z”:“6903d07e.c9dad”,“name”:“Dim Button Up Pressed”,“server”:“9c3edb27.85f978”,“entityid”:“sensor.kitchen_pico_side_entry”,“debugenabled”:true,“constraints”:[{“id”:“0iplw6pp5mqv”,“targetType”:“this_entity”,“targetValue”:"",“propertyType”:“current_state”,“propertyValue”:“new_state.state”,“comparatorType”:“is”,“comparatorValueDatatype”:“str”,“comparatorValue”:“8”}],“constraintsmustmatch”:“all”,“outputs”:2,“customoutputs”:[],“x”:490,“y”:360,“wires”:[[“ce86b10a.72d44”],[]]},{“id”:“ce86b10a.72d44”,“type”:“switch”,“z”:“6903d07e.c9dad”,“name”:“Increase Brightness”,“property”:“payload”,“propertyType”:“msg”,“rules”:[{“t”:“eq”,“v”:“0”,“vt”:“str”}],“checkall”:“true”,“repair”:false,“outputs”:1,“x”:760,“y”:420,“wires”:[[“a9be72bc.13b7c8”]]},{“id”:“a9be72bc.13b7c8”,“type”:“api-call-service”,“z”:“6903d07e.c9dad”,“name”:“ON 50%”,“server”:“cbb5750e.2e39e”,“service_domain”:“homeassistant”,“service”:“turn_on”,“data”:"{“entity_id”:“group.kitchen_ceiling_lights”, “brightness_pct”: 50, “transition”: 1}",“mergecontext”:"",“x”:1080,“y”:480,“wires”:[[]]},{“id”:“a8518b54.0c8c18”,“type”:“trigger-state”,“z”:“6903d07e.c9dad”,“name”:“Fav Button Pressed”,“server”:“9c3edb27.85f978”,“entityid”:“sensor.kitchen_pico_side_entry”,“debugenabled”:true,“constraints”:[{“id”:“w6lb7ixv888”,“targetType”:“this_entity”,“targetValue”:"",“propertyType”:“current_state”,“propertyValue”:“new_state.state”,“comparatorType”:“is”,“comparatorValueDatatype”:“str”,“comparatorValue”:“1”}],“constraintsmustmatch”:“all”,“outputs”:2,“customoutputs”:[],“x”:430,“y”:480,“wires”:[[“9766d9c3.680228”],[]]},{“id”:“9766d9c3.680228”,“type”:“api-call-service”,“z”:“6903d07e.c9dad”,“name”:"",“server”:“9c3edb27.85f978”,“service_domain”:“light”,“service”:“lifx_set_state”,“data”:"{“entity_id” : “group.kitchen_ceiling_lights” } ["{{range(256)|random}}","{{range(256)|random}}","{{range(256)|random}}"]",“mergecontext”:"",“x”:770,“y”:580,“wires”:[[]]},{“id”:“9c3edb27.85f978”,“type”:“server”,“z”:"",“name”:“Home Assistant”,“url”:“http://hassio/homeassistant",“pass”:""},{“id”:“cbb5750e.2e39e”,“type”:“server”,“z”:"",“name”:"Home Assistant”,“url”:“http://localhost:8123”,“pass”:“XXXXX”}]

I ended up using Hubitat for this integration - it was about 20 mouse clicks for the integration. I’m going to keep playing with home assistant but the automations definitely take some work!