Trigger state node

Hi guys, I have an aqara human body sensor and want to turn a light on when the property occupancy is true. So I user a trigger:state node but I always get an error: "“constraint comparator: one more more comparators failed to match constraints, message will send on the failed output” "

So this is an example of the values the sensor gives:

{
“illuminance”: 64,
“linkquality”: 70,
“occupancy”: true,
“battery”: 100,
“voltage”: 3065,
“friendly_name”: “Presenza”,
“device_class”: “motion”
}

and this is how the node is set:

what am I doing wrong?? Thank you and sorry if this is a noob question

if it is string … than you have to compare to “ON”/“OFF” or “HOME”/“Not home” … whatever is displayed in HA

True/False does only work for logical/boolean values!

there are as well some nice nodes available for these sensors (first, second)

Thank you for your answer, I managed to solve the issue, in fact I had to set boolean as type… As for those nodes, sadly I don’t think I can use them since I use zigbee2mqtt …
Thank you again, xx_Nexus_xx

if you are already using zigbee2mqtt you can do this one or even go with the native mqtt from node-red.

I used the native broker for all my zigbee devices and it works great!