Giter Club home page Giter Club logo

bisecur2mqtt's People

Contributors

smar000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bisecur2mqtt's Issues

COMMAND_NOT_FOUND [get_gw_version()]

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

[ERROR] CLI error found {'value': 'Socket timeout (5/5)', 'code': -1} [get_door_status()]

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()]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.