Closed iondarie closed 10 months ago
I don't think you need the parseFloat
there, because true
and false
are Booleans not floating-point numbers.
Since the on and off values are strings, you might need something like:
"apply": "return JSON.parse(message).occupancy + '';"
THANK YOU!!!! all works perfect now!
Hello,
I have a Zigbee motion sensor that publishes to mqtt the following:
I am trying to make it work on homebridge with the following code:
It will not work, it refuses to update the sensor. Please help.
Thank you,