Code Monkey home page Code Monkey logo

mqtt-concord4's Introduction

ย 

mqtt-concord4's People

Contributors

automaton82 avatar

Stargazers

 avatar

Watchers

 avatar

mqtt-concord4's Issues

Motion Sensor

In my setup, Zone 2 is a motion sensor so I set it up using:

  • platform: mqtt
    device_class: motion
    name: "Zone2"
    state_topic: "concord/zone/2"
    payload_on: "active"
    payload_off: "inactive"

The MQTT broker is sending zone 2 as open or closed though it is a motion sensor. Can you fix this to send inactive/active?

Keypress

This project has worked great for getting my Concord 4 working with Home Assistant via MQTT. The original project allowed you to send 'keypress' (/concord/keypress/[key]) over the REST API. I was hoping to use that to turn the 'Chime' on and off at certain time of the day. I believe the keypress would be '7 1' from a keypad to do so. Would this be possible to integrate?

MQTT Failed to Publish Message

I'm seeing frequent instances of the error "MQTT Failed to publish message..." when running the script. It doesn't seem to give me much other info. I've got mosquitto running on the default port (1883) and the config is set to point to 127.0.0.1:1883.

Error - Problem handling command KeyError

Hi there. First of all, thanks for creating this and keep up the good work. I've just found this on GITHUB and decide to try it. However, while zone 1 to 10 is working, zone 11 to 17 is giving me error upon start up. Any idea what the problem is?

2020-12-18 22:43:54,836 [concord.py:handle_message()] - ERROR - Problem handling command KeyError(11,)
'090301000D000B000025'
2020-12-18 22:43:54,840 [concord.py:handle_message()] - ERROR - Traceback (most recent call last):
File "/home/gyoung/Downloads/MQTT-concord4-master/concord/concord.py", line 487, in handle_message
handler(decoded_command)
File "concordsvr_mqtt.py", line 586, in panelMessageHandler
zone_info['zone_text'] = FRIENDLY_ZONE_NAME_MAP[zk]
KeyError: 11

2020-12-18 22:43:55,345 [concord.py:handle_message()] - ERROR - Problem handling command KeyError(12,)
'090301000D000C000026'
2020-12-18 22:43:55,347 [concord.py:handle_message()] - ERROR - Traceback (most recent call last):
File "/home/gyoung/Downloads/MQTT-concord4-master/concord/concord.py", line 487, in handle_message
handler(decoded_command)
File "concordsvr_mqtt.py", line 586, in panelMessageHandler
zone_info['zone_text'] = FRIENDLY_ZONE_NAME_MAP[zk]
KeyError: 12

2020-12-18 22:43:55,853 [concord.py:handle_message()] - ERROR - Problem handling command KeyError(13,)
'090301000D000D000027'
2020-12-18 22:43:55,855 [concord.py:handle_message()] - ERROR - Traceback (most recent call last):
File "/home/gyoung/Downloads/MQTT-concord4-master/concord/concord.py", line 487, in handle_message
handler(decoded_command)
File "concordsvr_mqtt.py", line 586, in panelMessageHandler
zone_info['zone_text'] = FRIENDLY_ZONE_NAME_MAP[zk]
KeyError: 13

2020-12-18 22:43:56,361 [concord.py:handle_message()] - ERROR - Problem handling command KeyError(14,)
'090301000D000E000028'
2020-12-18 22:43:56,363 [concord.py:handle_message()] - ERROR - Traceback (most recent call last):
File "/home/gyoung/Downloads/MQTT-concord4-master/concord/concord.py", line 487, in handle_message
handler(decoded_command)
File "concordsvr_mqtt.py", line 586, in panelMessageHandler
zone_info['zone_text'] = FRIENDLY_ZONE_NAME_MAP[zk]
KeyError: 14

2020-12-18 22:43:56,869 [concord.py:handle_message()] - ERROR - Problem handling command KeyError(15,)
'090301000A000F010027'
2020-12-18 22:43:56,871 [concord.py:handle_message()] - ERROR - Traceback (most recent call last):
File "/home/gyoung/Downloads/MQTT-concord4-master/concord/concord.py", line 487, in handle_message
handler(decoded_command)
File "concordsvr_mqtt.py", line 586, in panelMessageHandler
zone_info['zone_text'] = FRIENDLY_ZONE_NAME_MAP[zk]
KeyError: 15

2020-12-18 22:43:57,378 [concord.py:handle_message()] - ERROR - Problem handling command KeyError(16,)
'09030100010010020020'
2020-12-18 22:43:57,380 [concord.py:handle_message()] - ERROR - Traceback (most recent call last):
File "/home/gyoung/Downloads/MQTT-concord4-master/concord/concord.py", line 487, in handle_message
handler(decoded_command)
File "concordsvr_mqtt.py", line 586, in panelMessageHandler
zone_info['zone_text'] = FRIENDLY_ZONE_NAME_MAP[zk]
KeyError: 16

2020-12-18 22:43:57,886 [concord.py:handle_message()] - ERROR - Problem handling command KeyError(17,)
'09030100010011020021'
2020-12-18 22:43:57,888 [concord.py:handle_message()] - ERROR - Traceback (most recent call last):
File "/home/gyoung/Downloads/MQTT-concord4-master/concord/concord.py", line 487, in handle_message
handler(decoded_command)
File "concordsvr_mqtt.py", line 586, in panelMessageHandler
zone_info['zone_text'] = FRIENDLY_ZONE_NAME_MAP[zk]
KeyError: 17

Migrating to this version of concord4, Homebridge configuration question

Hello!

I've just finished setting up an MQTT server and connecting this concord4 script to it. Seems to be working properly based on there being no errors in the log. I've been looking to try to get it connected with this homebridge MQTT alarm plugin-
https://github.com/nzbullet/homebridge-homeqtt-alarm/blob/master/README.md

But I'm a big confused as to what I should enter into the various topic fields and/or if there are any sensor codes like the guide there mentions. I thought I'd ask and see if you might have any insight into this, or if there's maybe another homebridge plugin that might be more compatible with this MQTT script that could be awesome too!

Not working in Python3

Can you help me run this with python3.

python3 concordsvr_mqtt.py
File "/var/lib/docker/volumes/mqtt-concord4/concordsvr_mqtt.py", line 103
except Exception, ex:
^
SyntaxError: invalid syntax

Silent Arm

The code that was forked from SmartThings also supported the 'Silent' arm and disarm so the keypad would not beep. Is that something that can be done here?

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.