I’ve found some posts about this but they really have not helped (mainly because they are for other sensors or the code is dramatically different) and my lack of understanding on how device states can be manipulated is killing me.
I’m simply trying to invert the contacts determined state (closed vs opened) to solve a fundamental issue with using the contact to determine a window is fully opened vs closed.
I can easily flip the state on the tile but that seems to be a vanity item only and does not actually represent the state of the sensor. For instance if I use with HomeBridge it stills sees the sensor as closed when the window is actually open.
Any ideas?