arachnetech / homebridge-mqttthing

A plugin for Homebridge allowing the integration of many different accessory types using MQTT.
Apache License 2.0
462 stars 104 forks source link

Alternative accessory type for garage door #672

Open shflte opened 3 months ago

shflte commented 3 months ago

Hi, I want to setup an accessory to act as my sliding gate remote. I have already done the logic after MQTT message is published. I want the interface of the accessory to have 3 buttons, which triggers the corresponding logics as my remote control do. Which specific accessory type am I looking for? I have looked into Garage Door Opener, but there is only "open" and "close" target states, which does not fit my case.

NorthernMan54 commented 3 months ago

Responded to this on Reddit, but will do the same here. What actions are you looking for each button, open, close and ???

shflte commented 3 months ago

@NorthernMan54 Thanks for your reply! My remote looks like this. I want to have a button array in the home app, each button in the app corresponds to a button on the remote, but I dont know which of the accessory type is the type I am looking for. image. Maybe some multiple switch panel?

NorthernMan54 commented 3 months ago

How does your sliding gate work, and what do the buttons do ? If you press Open does the gate open all the way, and the motor stop ? Or do you need to hold the button until it is open?

The garage door accessory type sends a simple command to the device, either open or close. And the electronics on the device do all that is required to perform that function. In the open scenario, the electronics look at the status of the limit switches to see If the door is not already open, then it starts the motor in the proper direction, and once the door contacts the open limit switch it turns off the motor. It also has a timer that turns off the motor if it takes too long, and also detects obstructions and stops the motor.

Your sliding gate controller may not be as intelligent, hence more buttons.

shflte commented 3 months ago

How does your sliding gate work, and what do the buttons do?

I transform my remote with NodeMCU, and some relays for NodeMCU to control the remote. NodeMCU subscribe to some specific MQTT topic at the initialization stage. When NodeMCU receive message, it trigger relay (or press button logically) according to the message.

Is there any workarounds?