smar000 / bisecur2mqtt Goto Github PK
View Code? Open in Web Editor NEWMQTT wrapper to Hormann Bisecur Gateway Library
MQTT wrapper to Hormann Bisecur Gateway Library
Hi.
I know you mentioned that it will not be developed any further, but maybe someone else has encountered the same error as me:
When I run the script I get this error: COMMAND_NOT_FOUND [get_gw_version()]
The log says:
Connecting to MQTT broker [<module>()]
INIT: User 'hass' logged in to Bisecur Gateway with token '5429375' [do_gw_login()]
Garage door is OPEN [get_door_status()]
Connected to MQTT broker. Subscribing to 'bisecur2mqtt/send_command/command' [on_connect()]
Device responded with error! Code: 0 Reason: COMMAND_NOT_FOUND [get_gw_version()]
Exiting system. Changing MQTT state to 'offline' [<module>()]
So it seems to connect to the broker just fine. but that's it.
You also mention a get_ports
command.. how do I run that?
Thanks
Hi,
First of all , thank you very much for your efforts.
I´m seeking your guidance on this script. It appears to connect properly to the Gateway and to the Mqtt-broker.
However, it looks like the script gets stuck on GET DOOR STATUS. My doors do not have any status and are only impulse ones, is there any chance to edit the script to not fetch the status of the door but only the doors themselves and the commands? Sorry if I am missing something.
2022-11-09 13:27:40,665 [bisecur2mqtt.py: 71] Starting [<module>()]
2022-11-09 13:27:40,676 [bisecur2mqtt.py:431] Connecting to MQTT broker [<module>()]
2022-11-09 13:27:40,731 [bisecur2mqtt.py:313] INIT: User 'ubuntuvm' logged in to Bisecur Gateway with token '2115053040' [do_gw_login()]
2022-11-09 13:27:45,737 [client.py: 64] MCPClient.recv_cmd() socket error (1/5): timed out [recv_cmd()]
2022-11-09 13:27:50,743 [client.py: 64] MCPClient.recv_cmd() socket error (2/5): timed out [recv_cmd()]
2022-11-09 13:27:55,749 [client.py: 64] MCPClient.recv_cmd() socket error (3/5): timed out [recv_cmd()]
2022-11-09 13:28:00,754 [client.py: 64] MCPClient.recv_cmd() socket error (4/5): timed out [recv_cmd()]
2022-11-09 13:28:05,760 [client.py: 64] MCPClient.recv_cmd() socket error (5/5): timed out [recv_cmd()]
2022-11-09 13:28:05,760 [bisecur2mqtt.py:205] ERROR: index out of range [get_door_status()]
2022-11-09 13:28:05,761 [bisecur2mqtt.py:213] [ERROR] CLI error found {'value': 'Socket timeout (5/5)', 'code': -1} [get_door_status()]
2022-11-09 13:28:11,267 [client.py: 64] MCPClient.recv_cmd() socket error (1/5): timed out [recv_cmd()]
2022-11-09 13:28:16,270 [client.py: 64] MCPClient.recv_cmd() socket error (2/5): timed out [recv_cmd()]
2022-11-09 13:28:21,275 [client.py: 64] MCPClient.recv_cmd() socket error (3/5): timed out [recv_cmd()]
2022-11-09 13:28:26,281 [client.py: 64] MCPClient.recv_cmd() socket error (4/5): timed out [recv_cmd()]
2022-11-09 13:28:31,287 [client.py: 64] MCPClient.recv_cmd() socket error (5/5): timed out [recv_cmd()]
2022-11-09 13:28:31,287 [bisecur2mqtt.py:205] ERROR: index out of range [get_door_status()]
2022-11-09 13:28:31,287 [bisecur2mqtt.py:213] [ERROR] CLI error found {'value': 'Socket timeout (5/5)', 'code': -1} [get_door_status()]
2022-11-09 13:28:31,789 [bisecur2mqtt.py:350] Connected to MQTT broker. Subscribing to 'bisecur2mqtt/send_command/command' [on_connect()]
2022-11-09 13:28:31,839 [bisecur2mqtt.py:143] Gateway HW Version: EE001425-14 [get_gw_version()]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.