Fibaro HC2 <> HA <> node red - override a flow

Hi,

I have my Fibaro HC2 linked to my HA. In HA I have node-red installed, and I’m trying to create all my smart things in node-red (I’m no coding expert).

Part 1(OK)
Simplified, I have a PIR connected to a light. When the PIR is triggered, the light should switch on @ 50% with a timer at 30 seconds.

For this I used a “call service” with as json

{
    "entity_id": "light.gang_ganglamp_110",
    "brightness": 30
}

this works fine.

Part 2(my question)
If I manually double click the light switch button, I want the light to go to 255 brightness (100%) without any timer.

My problem is that the output of the lightswitch seems to be only true/false.
How can I check the brightness condition?

My idea is to add a function that checks the brightness condition. If the brightness is > 200 ( ~80%), then do not trigger the part of the flow that sets the light at dimmed level with a timer.

Thanks for help!

Grtz
Jules