Jump to content

KeypadLinc + Home Assistant + MQTT


Recommended Posts

Posted

I have two garage doors, both controlled with a home made remote opener (an ESP8266 controller and a relay).  One is using MQTT for receiving an ON command (the "shed"), the other is set up with it's own web server and simple POST with an ON message will close the contacts (the "garage").  I want to migrate the garage opener to MQTT like the shed.  Doing so allows me to integrate with Home Assistant and thus, work with my Apple HomeKit for voice activation via Siri.  

For the garage, I have a TriggerLinc that senses the status of the door.  If it's open, it turns on a button on a KeypadLinc in the house.  It was easy to set this button to also open and close the garage door.  I had a program that said, if the button was switched on or off, run a network resource.  The network resource in turn sent a POST to the garage opener's URL to open the door.  Easy!

However, with a move to managing the garage opener via MQTT and HA, I'm not sure how to make this happen.  I tried to create an automation in HA that would send the MQTT command if the button state changed.  However, just by virtue of the TriggerLinc changing the button state caused the automation to perform the opposite result (ie: close the door, button turns off, automation sends MQTT, door opens back up - ugh!). 

I'm thinking my solution lies somewhere here: https://www.home-assistant.io/integrations/isy994/
Maybe create a va
riable in the ISY that keeps track of the button push and make that a sensor in HA?  Just making that up (and not even sure how I'd make that happen)... Is there a better solution?

Thanks!

Guest
This topic is now closed to further replies.

×
×
  • Create New...