-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there way I could replace Z Wave tilt sensor on garage door instead of using magnetic sensors? #27
Comments
Assuming you are using Home Assistant? I use Z wave sensors and just have the cover set to optimistic and it works fine.
Then I have a template switch that I use to mainly control the door, that reports the status via the Z wave sensor:
Finally, I also have some Node-RED flows that read the state of the sensors and inject the MQTT messages to keep the state topics on the garage door cover in sync. Not needed in my setup, but just to have everything reporting the same across the board. |
@slonkar - you can use the template cover component of HA to do this. Essentially what @walthowd showed you except instead of a switch you get a cover device at the end. Useful if you’re using the HomeKit component so that it shows as a Garage Door, for instance. Let me know if you need better instructions... |
@walthowd you could do this more simply like so:
And then in customize.yaml:
Which will give you the changing icons and make sure it shows up properly in HomeKit. This approach saves you having to make a dummy cover and set optimistic etc. Passing the mqtt topic and payload through a template cover is much cleaner I think. |
Just wanted to comment and say that this cover approach worked perfect for me using an Ecolink Based on how I did my binary sensors, I had to check for "on" instead of "open". Here's the relevant config for me. Here's my final config for reference (note I also changed in config.h the mqtt topic)
Also, thank you very much @marthoc for garHAge in general. This is the first time I've ever really mucked around with DIY on a circuit board project like this and your instructions and bill of materials were absolutely top notch. A very rewarding home automation afternoon! |
I already have Z wave sensor mounted on my garage door. If I am not wrong, you are using magnetic sensors to basically broadcast the state of the door. Is there way I could tweak your code in-order to support Z Wave + relay configuration instead of magnetic switch + relay configuration?
The text was updated successfully, but these errors were encountered: