MQTT support

Thank you for this response. That would explain it!

The firmware 1.2 is absolutely using the door name after connection. The EASIEST way around this is to first name your garaget door the name you want to use for your topic name. DO NOT have spaces in the door name. Then when you setup MQTT locally set your topic name to the same name as the door. It will all work.

If you have already done this. Once initially connected to a MQTT broker as you have found out you will end up with two topics. One of the topic name set locally in the garadget and one for door name. The topic you will want to use to control your garadget via the broker is the Door Name oneā€¦even if it has a spaceā€¦it will work. I hope that all made sense. If I had the knowledge to suggest a change to the code I wouldā€¦but I donā€™t. (Or you can go back and change your door name to match your topic name)

@garadget pointed us in the correction direction here:

Anyone qualified to get us to firmware 1.3?

Thank you for this, this was driving me nuts! im new to MQTT so spend 5 hours figuring out the topic kept changing.

So I have this working perfectly with HA, MQTT and Node Red. I have Node Red looking after all the sensor info and polling of the ā€œstateā€. HA just issues the commands for Open or Close.

The changes is the ā€œswitchā€ and ā€œchangeā€ nodes clean up some of the formatting. e.g. ā€œmā€ is shown Minutes, all data is exported to sensors for HA. Using the RPE node to clear up unnecessary updates

image

image

I donā€™t use a command for Stop, by leaving the payload as empty. HA removes the option, so it can only go completely open or closed. Works perfectly exported to Homekit.

1 Like

This is looking great and worthy of a separate topic.
If you have some time to share your project a more detailed how-to would be much appreciated.

Done: Garadget, MQTT, Node-RED, Home Assistant, Homekit (or any other voice assistant with HA)

Awesome, thanks!

I have a garadet system. I use nymea as my control application. Nymea uses a uuid as the name for device name. MAXNAMESIZE in the global.h set this to 31 characters which translates to 30 characters the system currently accepts. Nymea needs the to accept 32 characters. Is there any reason this cannot be increased to say 34 to allow full integration with nymea?