I have an older Fibaro door/window sensor (FGK10x) with external button (reed switch) attached.
I use it to detect if the door is locked or not. Unfortunately I didn’t think when I installed it and did the cable installation, so now I can’t change the polarity for the cable, without destroying everything.
I wonder can I some how invert what the sensor report, either in z-wave or byt some script or something.
Now it say Off and shows a blue circle when the door is locked, and yellow icon and text on when the door is unlocked. can I invert that. so when door is locked to say On (or Yes) and the yellow icon, and when the door is unlocked to say off (or No) and the blue circle?
For its value_template, invert the state of the fibaro sensor. Normally it would check if the state is on, for your purpose it should check if the state is off.
I have installed an external reed switch where the lock goes into the door frame, so then I know if the door is locked or not. It doesn’t monitor if the door is closed or not, it monitors my lock.
I have an FK101 and use the extra contacts in a similar way. There is a zwave config option to make the contacts normally open or normally closed, Its Config Parameter 3 - Type of input no. 1. I used HA’s zwave config panel to change it.
Actually, looking at the manual for a FK10x its parameter 2