-
Notifications
You must be signed in to change notification settings - Fork 7
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
Feature: Allow sending commands via MQTT or HTTP #44
Comments
MQTT sending is already implemented. Also in audio firmware and should work. If not it is a bug in the audio beta. |
@DaSchaef awesome, do we have some generic documentation for that? It seems openhab documentation has it, but I am not familiar with openhab |
https://gdoor-org.github.io/documentation/openhab.html From what I can gather from the above to send a command to the bus via MQTT you have to publish to the MQTT topic "gdoor/bus_tx". The payload is unclear. Is it 'formatBeforePublish="020031ECF3EB0060A11A2F76BD"' or is it just '020031ECF3EB0060A11A2F76BD' or is it a JSON? Neither of the two first options seems to do anything. They are published and can be found on the MQTT broker but the gdoor device does not send a request. |
We need to improve MQTT documentation yes. The topic is correct (it is the default value, you can change it in the web interface) and just send raw, the At the moment I do not know what the bus message If it does not work we may have a bug in the beta firmware or the wiring between ESP and GDoor is somewhere wrong. |
Also the serial debug log should show what the GDoor is trying to send: From sourcecode:
|
@DaSchaef so I got this to work somewhat in Home Assistant, but something is weird: YAML to add a dashboard button to send to the bus (opens the door in this case). Note that the topic is "gdoor/bus_tx" not "/gdoor/bus_tx" as one would think from the openhab docu linked above. Example Street Door
Here comes the weird part: Example Courtyard Door
opens the same door (Courtyard) although the payload is different. Sniffed payload to OPEN DOOR COURTYARD
Sniffed payload to OPEN DOOR STREET
Not sure what is happening here. Identical source makes sense (same indoor unit), destination is different. Is it possible that the firmware does not refresh the payload from the MQTT topic update and just sees that there is an update and sends the same payload again without updating its variable? |
I think you hit a limitation of the Gira bus itself. The door opener used depends on the last BUTTON_RING message. The controller which operates the door opener relay decides if it opens the door. https://partner.gira.de/service/faq/antwort.html?id=1268
|
I improved the HA MQTT docs with gdoor-org/gdoor-org.github.io#4. |
It would be great to be able to send commands to the Bus via MQTT or HTTP in addition to being able to send via serial. Particularly when there is no computer close to the gdoor adapter/ESP32, sending commands via network would be ideal.
Maybe sending of the commands could be implemented in two ways:
The text was updated successfully, but these errors were encountered: