I interested if any of you have come across such a device, which in principle is like a contact sensor, but it reports distance of the opening. Btw.: I know there ar ultrasonic, laser, lidar sensors, I am just interested if you have seen anything like that.
Our car uses ultrasonic for indicating the distance to obstacles when parking. Advantage of ultrasonic over ToF/laser is that it is working acoustically - so light sources (like the sun) doesn’t,'t interfere with the measurements
So the use case would be, that I have a dumb standing desk where I rewired a the controller to a esp32 and with some switches I am using cover esphome integration. But the problem is:
Due to the cover integration works by time, after a couple of opening closing cycle the cover status misaligned in HA. (Eg : It says closed where it is not closed). So the distance is approx a meter.