PIR Sensor / Normail On-Off switch

I have a Hue Outdoor sensor and created 2 automations :

  1. Turn lightbulb_1 on if motion is detected
  2. Turn lightbulb_1 off if no motion is detected for 5 minutes.

But now I want to make an extra function that if I turn on the lightbulb_1 using my Home Assistant app (so the lightbulb_1 is NOT turned on by the PIR) the lamp should stay on until I swicth it of manually.

I search the forum and did some code copy but without any luck.
Mostly I receive the error " Message malformed: extra keys not allowed @ data…"

Using :

Home Assistant 2022.10.4
Supervisor 2022.10.0
Operating System 9.2
Frontend-versie: 20221010.0 - latest

Please advice.

TIA