I’ve spent the past few days trying to get a multi sensor to work on my cat flap, but not simply returning ‘open’ and ‘close’ states. I’m not having any luck getting it to work, I’ve tried putting bits of code together from existing DTHs, including garage sensors, but I just can’t get a solution that works.
Basically, I want to do the following:
- Place the multi-sensor on the cat flap door, on the inside near the top - I’m not using the magnetic strip, just the main ‘big bit’.
- If the sensor is in a particular position, the status is reported as ‘closed’.
- If the flap opens in one direction, so the threeaxis value is within very specific limits (to be determined once it works!) the status changes to ‘Going out’ or something similar.
- If the flap opens in the opposite direction, the status is ‘Coming in’ or something similar.
That way, I can see whether the cat has gone out or not, rather than just being able to tell that the flap has been opened, in one direction or the other.
My first issue is that the threeaxis values aren’t updating when I’m using the ‘SmartSense Garage Door Multi’ DTH. Then I need to be able to determine the threeaxis values that the DTH uses to report whether the flap is closed, going out or coming in.
Can anybody help me? I’ve tried changing the code on the SmartSense Garage Door Multi DTH but I’m not getting anywhere!