Hue Dimmer Automation with Nodered

Hi community.
I am using Dimmer to trigger certain Lights and scenes in m System . I currently do that using regular automations.
It looks as such in yaml.

alias: Licht Spüle
description: ""
mode: single
triggers:
  - device_id: 55abed58bc316ffccedc5a853bb11370
    domain: hue
    type: short_release
    subtype: 2
    unique_id: 4094b117-6a3f-4e63-9089-f688af8ffdd9
    trigger: device
conditions: []
actions:
  - data: {}
    target:
      entity_id: light.licht_spule
    action: light.toggle

As I start to move things to Nodered, it would be much more convenient to do that in Nodered as well. So I added Hue Magic to Nodered and I get the status change but I don’t know what to do with it from here on out. I tried the action node but that is probably not the right way.

[{"id":"74f3cdad2b625d5c","type":"inject","z":"d5d4a606.0f05","name":"Status","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"status\":true}","payloadType":"json","x":90,"y":200,"wires":[["664e68b0b62d7e4e"]],"icon":"node-red/alert.svg"},{"id":"664e68b0b62d7e4e","type":"hue-buttons","z":"d5d4a606.0f05","name":"Küche ","bridge":"6ef0df541ffad1f5","sensorid":"c71ebede-2c2b-49fa-b639-62627adcedd2","skipevents":false,"initevents":true,"x":290,"y":200,"wires":[[]]},{"id":"71ed34196fc69a04","type":"api-call-service","z":"d5d4a606.0f05","name":"Licht Spüle einschalten","server":"92183824.74a3e8","version":7,"debugenabled":false,"action":"light.turn_on","floorId":[],"areaId":[],"deviceId":[],"entityId":["light.licht_spule"],"labelId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","blockInputOverrides":true,"domain":"light","service":"turn_on","x":510,"y":220,"wires":[[]]},{"id":"6ef0df541ffad1f5","type":"hue-bridge","name":"Hue Bridge","bridge":"192.168.178.69","key":"A46GGf9zMwEKH8zci-7KH4uVov18-EYIbyUF49io","worker":"10","autoupdates":true,"disableupdates":false},{"id":"92183824.74a3e8","type":"server","name":"Home Assistant","addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"","connectionDelay":true,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"","statusSeparator":"","enableGlobalContextStore":false}]

I now have a debug node, which gives the following:

msg.payload{"reachable":true,"connectionStatus":"connected","button":3,"action":"long_release","updated":"2025-01-10T22:45:52+01:00"}

So it is all there. it is just a question of what ta do with that information.
I would only need something like:
If msg.payload=button":3,“action”:“long_release” then Turn Spüle Licht on.
Something like that. Which node or nodes could do that? Maybe the Function Node and something else? It is just guesswork on my side.

Thank you for your help.
The easier the better.