andrewshilliday/garage-door-controller

Alternate configuration for magnetic switch

Closed this issue · 5 comments

This isn't so much an issue as a question. I apologize if this isn't the appropriate venue for asking a question, but I couldn't find anywhere else to do so.

Is it possible to have the software recognize the door as open when the magnetic switch is closed, rather than open? Basically, I want to mount the switch in such a way that when the door is opened, the two pieces of the magnetic switch are close to one another and when the door is closed, the switch parts will be separated.

Is this possible via a configuration file or something?

Thanks in advance.
jerry

Simple enough. Thank you!

Hi, before you go through the trouble of using alternate hardware, there is a configuration setting you may want to try playing with. I've never tested it (as this is not how I've ever configured my doors), but there is a setting in the config.json file for switching the "closed" value of the sensor relay. The settings are "state_pin_closed_value". Try changing that from a 0 to a 1 and see if that does the trick.

Thank you. I did see that setting in the config.json file but didn't want to make any assumptions and figured I'd ask first. I don't have anything installed yet, I'm still waiting on the 2-channel relay module to be delivered. I have a NC magnetic reed switch that I'll try first along with that config setting and see how it goes. It's easy enough to change if it doesn't work.

I appreciate the responses. I'll report back once I get things up and running.