GithubHelp home page GithubHelp logo

domoticz-woonveilig's People

Contributors

stuffnl avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

domoticz-woonveilig's Issues

Components don't appear

Hi,

I'm quite new to Raspberry pi and quite enthusiastic to learn this.
I followed your work instruction and managed to add Woonveilig GATE 01 to my hardware. Now the components don't show up in my hardware.
I did notice that I couldn't perform the pip3 update. Has this something to do with it?

Thanks

Installation issue - domoticz not starting

First thanks for the great project.

I've went trough the installation. Had some issues with demjson. But fixed that by updating append path to Python3.5 in the plugin.py.

This issue now is that when I've changed the path to Python3.5 and I restart Domoticz it never stats up. When I comment out the append then Domoticz will start again.

The installation is on a RPI with Stretch. Not sure where to start from here, any help is appreciated.

Cheers,
Pieter

Error: (woonveilig) 'onHeartbeat' failed 'KeyError'

Hi and thanks for this great project.
Whatever i tried, i keep the message: Error: (woonveilig) 'onHeartbeat' failed 'KeyError'

Am i missing something? Can you please help me?

Debug info:
2018-09-14 11:03:17.956 {no : "1", type : "IR Sensor", zone : "1", name : "Gang", attr : "Entry Zone", cond : "", battery : "", tamp : "", bypass : "No"},
2018-09-14 11:03:17.956 {no : "2", type : "IR Sensor", zone : "2", name : "Woonkamer", attr : "Entry Zone", cond : "", battery : "", tamp : "", bypass : "No"},
2018-09-14 11:03:17.956 {no : "3", type : "Remote Keypad", zone : "3", name : "Paneel", attr : "",cond : "", battery : "", tamp : "", bypass : "No"},
2018-09-14 11:03:17.956 {no : "4", type : "Remote Keypad", zone : "4", name : "Paneel", attr : "",cond : "", battery : "", tamp : "", bypass : "No"},
2018-09-14 11:03:17.956 {no : "5", type : "Door Contact", zone : "5", name : "Berging", attr : "Entry Zone", cond : "", battery : "", tamp : "", bypass : "No"},
2018-09-14 11:03:17.956 {no : "6", type : "Smoke Sensor", zone : "6", name : "Rookmelder", attr : "",cond : "", battery : "", tamp : "", bypass : "No"}]
2018-09-14 11:03:17.956 }
2018-09-14 11:03:17.956 /
2018-09-14 11:03:17.821 Status: (woonveilig) Entering work loop.
2018-09-14 11:03:17.821 Status: (woonveilig) Initialized version 1.1.0, author 'Steven van den Beemt'
2018-09-14 11:03:17.862 Status: RFLink: Controller Initialized!...
2018-09-14 11:03:17.938 Status: RFLink Detected, Version: 1.1 Revision: 48 Build: 4
2018-09-14 11:03:17.963 Status: AppLamp: Bridge found!...
2018-09-14 11:03:18.152 (woonveilig) Devices initialized.
2018-09-14 11:03:18.152 (woonveilig) 'Version':'1.1.0'
2018-09-14 11:03:18.152 (woonveilig) 'DomoticzHash':'93c187f2'
2018-09-14 11:03:18.152 (woonveilig) 'Port':'0'
2018-09-14 11:03:18.152 (woonveilig) 'Username':’xxxxxxx’
2018-09-14 11:03:18.152 (woonveilig) 'Name':'woonveilig'
2018-09-14 11:03:18.152 (woonveilig) 'Key':'Woonveilig'
2018-09-14 11:03:18.152 (woonveilig) 'Mode6':'Debug'
2018-09-14 11:03:18.152 (woonveilig) 'HardwareID':'17'
2018-09-14 11:03:18.152 (woonveilig) 'HomeFolder':'/home/pi/domoticz/plugins/domoticz-woonveilig/'
2018-09-14 11:03:18.152 (woonveilig) 'DomoticzBuildTime':'2018-08-22 11:09:19'
2018-09-14 11:03:18.152 (woonveilig) 'Author':'Steven van den Beemt'
2018-09-14 11:03:18.152 (woonveilig) 'Password':’xxxxxxxx’
2018-09-14 11:03:18.153 (woonveilig) 'Address':'10.0.0.208'
2018-09-14 11:03:18.153 (woonveilig) 'DomoticzVersion':'4.9921'
2018-09-14 11:03:18.153 (woonveilig) Device count: 4
2018-09-14 11:03:18.153 (woonveilig) Device: 1 - ID: 1398, Name: 'woonveilig - Gang', nValue: 0, sValue: 'False'
2018-09-14 11:03:18.153 (woonveilig) Device ID: '1398'
2018-09-14 11:03:18.153 (woonveilig) Device Name: 'woonveilig - Gang'
2018-09-14 11:03:18.153 (woonveilig) Device nValue: 0
2018-09-14 11:03:18.153 (woonveilig) Device sValue: 'False'
2018-09-14 11:03:18.153 (woonveilig) Device LastLevel: 0
2018-09-14 11:03:18.153 (woonveilig) Device: 2 - ID: 1399, Name: 'woonveilig - Woonkamer', nValue: 0, sValue: 'False'
2018-09-14 11:03:18.153 (woonveilig) Device ID: '1399'
2018-09-14 11:03:18.153 (woonveilig) Device Name: 'woonveilig - Woonkamer'
2018-09-14 11:03:18.153 (woonveilig) Device nValue: 0
2018-09-14 11:03:18.153 (woonveilig) Device sValue: 'False'
2018-09-14 11:03:18.153 (woonveilig) Device LastLevel: 0
2018-09-14 11:03:18.154 (woonveilig) Device: 99 - ID: 1400, Name: 'woonveilig - Paneel', nValue: 0, sValue: ''
2018-09-14 11:03:18.154 (woonveilig) Device ID: '1400'
2018-09-14 11:03:18.154 (woonveilig) Device Name: 'woonveilig - Paneel'
2018-09-14 11:03:18.154 (woonveilig) Device nValue: 0
2018-09-14 11:03:18.154 (woonveilig) Device sValue: ''
2018-09-14 11:03:18.154 (woonveilig) Device LastLevel: 0
2018-09-14 11:03:18.154 (woonveilig) Device: 5 - ID: 1401, Name: 'woonveilig - Berging', nValue: 0, sValue: 'False'
2018-09-14 11:03:18.154 (woonveilig) Device ID: '1401'
2018-09-14 11:03:18.154 (woonveilig) Device Name: 'woonveilig - Berging'
2018-09-14 11:03:18.154 (woonveilig) Device nValue: 0
2018-09-14 11:03:18.154 (woonveilig) Device sValue: 'False'
2018-09-14 11:03:18.154 (woonveilig) Device LastLevel: 0
2018-09-14 11:03:21.468 Status: P1 Smart Meter: Meter reports as DSMR 4.2
2018-09-14 11:03:22.686 (Smartmeter P1) P1 Smart Meter (Stroom)
2018-09-14 11:03:22.688 (Smartmeter P1) P1 Smart Meter (Gas)
2018-09-14 11:03:22.523 Status: P1 Smart Meter: Found gas meter on M-Bus channel 1
2018-09-14 11:03:26.955 (Weather Underground) Temp + Humidity + Baro (Weer)
2018-09-14 11:03:26.957 (Weather Underground) Wind (Wind)
2018-09-14 11:03:26.960 (Weather Underground) UV (UV)
2018-09-14 11:03:26.962 (Weather Underground) Rain (Regen)
2018-09-14 11:03:26.964 (Weather Underground) General/Visibility (Zicht)
2018-09-14 11:03:26.966 (Weather Underground) General/Solar Radiation (Solar Radiation)
2018-09-14 11:03:27.656 (woonveilig) Pushing 'onHeartbeatCallback' on to queue
2018-09-14 11:03:27.684 (woonveilig) Processing 'onHeartbeatCallback' message
2018-09-14 11:03:27.684 (woonveilig) Calling message handler 'onHeartbeat'.
2018-09-14 11:03:27.684 (woonveilig) onHeartbeat called
2018-09-14 11:03:27.779 (woonveilig) /
-secure-
2018-09-14 11:03:27.779 { senrows : [
2018-09-14 11:03:27.779 {no : "1", type : "IR Sensor", zone : "1", name : "Gang", attr : "Entry Zone", cond : "", battery : "", tamp : "", bypass : "No"},
2018-09-14 11:03:27.779 {no : "2", type : "IR Sensor", zone : "2", name : "Woonkamer", attr : "Entry Zone", cond : "", battery : "", tamp : "", bypass : "No"},
2018-09-14 11:03:27.779 {no : "3", type : "Remote Keypad", zone : "3", name : "Paneel", attr : "",cond : "", battery : "", tamp : "", bypass : "No"},
2018-09-14 11:03:27.779 {no : "4", type : "Remote Keypad", zone : "4", name : "Paneel", attr : "",cond : "", battery : "", tamp : "", bypass : "No"},
2018-09-14 11:03:27.779 {no : "5", type : "Door Contact", zone : "5", name : "Berging", attr : "Entry Zone", cond : "", battery : "", tamp : "", bypass : "No"},
2018-09-14 11:03:27.779 {no : "6", type : "Smoke Sensor", zone : "6", name : "Rookmelder", attr : "",cond : "", battery : "", tamp : "", bypass : "No"}]
2018-09-14 11:03:27.779 }
2018-09-14 11:03:27.779 /
2018-09-14 11:03:28.020 (woonveilig) /
-secure-
2018-09-14 11:03:28.020 { updates : {
2018-09-14 11:03:28.020 mode_st : "Disarm",
2018-09-14 11:03:28.020 battery : "Normal",
2018-09-14 11:03:28.020 tamper : "Close",
2018-09-14 11:03:28.020 interference : "Normal",
2018-09-14 11:03:28.020 ac_activation : "Normal",
2018-09-14 11:03:28.020 rssi : "28"
2018-09-14 11:03:28.020 },
2018-09-14 11:03:28.020 forms : {
2018-09-14 11:03:28.020 pcondform : {
2018-09-14 11:03:28.020 mode : "2"
2018-09-14 11:03:28.020 }
2018-09-14 11:03:28.020 }
2018-09-14 11:03:28.020 }
2018-09-14 11:03:28.020 /
2018-09-14 11:03:28.068 Error: (woonveilig) 'onHeartbeat' failed 'KeyError'.
2018-09-14 11:03:28.068 Error: (woonveilig) ----> Line 165 in '/home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py', function onHeartbeat
2018-09-14 11:03:28.068 Error: (woonveilig) ----> Line 125 in '/home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py', function onHeartbeat
2018-09-14 11:03:37.658 (woonveilig) Pushing 'onHeartbeatCallback' on to queue
2018-09-14 11:03:37.689 (woonveilig) Processing 'onHeartbeatCallback' message
2018-09-14 11:03:37.690 (woonveilig) Calling message handler 'onHeartbeat'.
2018-09-14 11:03:37.690 (woonveilig) onHeartbeat called
2018-09-14 11:03:37.784 (woonveilig) /
-secure-
2018-09-14 11:03:37.784 { senrows : [
2018-09-14 11:03:37.784 {no : "1", type : "IR Sensor", zone : "1", name : "Gang", attr : "Entry Zone", cond : "", battery : "", tamp : "", bypass : "No"},
2018-09-14 11:03:37.784 {no : "2", type : "IR Sensor", zone : "2", name : "Woonkamer", attr : "Entry Zone", cond : "", battery : "", tamp : "", bypass : "No"},
2018-09-14 11:03:37.784 {no : "3", type : "Remote Keypad", zone : "3", name : "Paneel", attr : "",cond : "", battery : "", tamp : "", bypass : "No"},
2018-09-14 11:03:37.784 {no : "4", type : "Remote Keypad", zone : "4", name : "Paneel", attr : "",cond : "", battery : "", tamp : "", bypass : "No"},
2018-09-14 11:03:37.784 {no : "5", type : "Door Contact", zone : "5", name : "Berging", attr : "Entry Zone", cond : "", battery : "", tamp : "", bypass : "No"},
2018-09-14 11:03:37.784 {no : "6", type : "Smoke Sensor", zone : "6", name : "Rookmelder", attr : "",cond : "", battery : "", tamp : "", bypass : "No"}]
2018-09-14 11:03:37.784 }
2018-09-14 11:03:37.784 /
2018-09-14 11:03:38.045 (woonveilig) /
-secure-
2018-09-14 11:03:38.045 { updates : {
2018-09-14 11:03:38.045 mode_st : "Disarm",
2018-09-14 11:03:38.045 battery : "Normal",
2018-09-14 11:03:38.045 tamper : "Close",
2018-09-14 11:03:38.045 interference : "Normal",
2018-09-14 11:03:38.045 ac_activation : "Normal",
2018-09-14 11:03:38.045 rssi : "27"
2018-09-14 11:03:38.045 },
2018-09-14 11:03:38.045 forms : {
2018-09-14 11:03:38.045 pcondform : {
2018-09-14 11:03:38.045 mode : "2"
2018-09-14 11:03:38.045 }
2018-09-14 11:03:38.045 }
2018-09-14 11:03:38.045 }
2018-09-14 11:03:38.045 */
2018-09-14 11:03:38.093 Error: (woonveilig) 'onHeartbeat' failed 'KeyError'.
2018-09-14 11:03:38.093 Error: (woonveilig) ----> Line 165 in '/home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py', function onHeartbeat
2018-09-14 11:03:38.093 Error: (woonveilig) ----> Line 125 in '/home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py', function onHeartbeat

Thanks in advance!!

Support for GATE-03

Hello,

The API for the GATE-03 model seems to be different, which causes the plugin to be unable to communicate with my alarm system. Would it be possible to update the plugin to support this?

Thanks.

Domoticz #7722 and domoticz-woonveilig addon

Hi Steven,

Great plugin/ work you have done. I have the Gate-01 myself as well (CTC-1718, right?) and was able to add the gate and the sensors to my system but got a crash somehow after adding the sensors as switches to my system.

Now it even crashes on initializing. This was all on the latest beta (7722). I'm back to stable right now and it is working again. Here is the error I got from the log. Do you require additional error logging (I startup with loglevel = 1)?

2017-06-12 20:58:04.627 RxQueue: queue worker started...
2017-06-12 20:58:06.628 Wunderground: Worker started...
2017-06-12 20:58:06.629 EventSystem: reset all events...
2017-06-12 20:58:06.629 EventSystem: reset all device statuses...
2017-06-12 20:58:06.745 Python EventSystem: Module not found - Trying to initialize.
2017-06-12 20:58:06.747 Python EventSystem: Initalizing event module.
2017-06-12 20:58:06.747 EventSystem: Started
2017-06-12 20:58:06.837 RFLink: Using serial port: /dev/ttyUSB0
2017-06-12 20:58:06.974 PluginSystem: Entering work loop.
2017-06-12 20:58:07.128 OpenZWave: using config in: /domoticz/Config/
2017-06-12 20:58:07.130 OpenZWave: Starting...
2017-06-12 20:58:07.130 OpenZWave: Version: 1.4-2501-g5af6780-dirty
2017-06-12 20:58:07.365 (woonveilig) Initialized version 1.0.0, author 'Steven van den Beemt'
2017-06-12 20:58:07.615 OpenZWave: Driver Ready
2017-06-12 20:58:07.616 OpenZWave: Invalid NodeID received. HomeID: 3396558102, NodeID: 0 (0x00)
2017-06-12 20:58:07.763 RFLink: Controller Initialized!...
2017-06-12 20:58:07.838 RFLink Detected, Version: 1.1 Revision: 46 Build: 0
2017-06-12 20:58:16.946 Error: Domoticz received fatal signal 11 !...
2017-06-12 20:58:16.949 Error: /domoticz/domoticz() [0x1cca74]
2017-06-12 20:58:16.949 Error: /domoticz/domoticz(_Z14signal_handleri+0x58) [0x1ccb2c]
2017-06-12 20:58:16.949 Error: /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer_v2+0) [0x76a53180]
2017-06-12 21:00:30.167 RxQueue: queue worker started...
2017-06-12 21:00:32.168 Wunderground: Worker started...
2017-06-12 21:00:32.169 EventSystem: reset all events...
2017-06-12 21:00:32.169 EventSystem: reset all device statuses...
2017-06-12 21:00:32.266 Python EventSystem: Module not found - Trying to initialize.
2017-06-12 21:00:32.268 Python EventSystem: Initalizing event module.
2017-06-12 21:00:32.268 EventSystem: Started
2017-06-12 21:00:32.377 RFLink: Using serial port: /dev/ttyUSB0
2017-06-12 21:00:32.520 PluginSystem: Entering work loop.
2017-06-12 21:00:32.668 OpenZWave: using config in: /domoticz/Config/
2017-06-12 21:00:32.670 OpenZWave: Starting...
2017-06-12 21:00:32.670 OpenZWave: Version: 1.4-2501-g5af6780-dirty
2017-06-12 21:00:32.847 OpenZWave: Driver Ready
2017-06-12 21:00:32.847 OpenZWave: Invalid NodeID received. HomeID: 3396558102, NodeID: 0 (0x00)
2017-06-12 21:00:32.914 (woonveilig) Initialized version 1.0.0, author 'Steven van den Beemt'
2017-06-12 21:00:33.303 RFLink: Controller Initialized!...
2017-06-12 21:00:33.378 RFLink Detected, Version: 1.1 Revision: 46 Build: 0
2017-06-12 21:00:42.487 Error: Domoticz received fatal signal 11 !...
2017-06-12 21:00:42.492 Error: /domoticz/domoticz() [0x1cca74]
2017-06-12 21:00:42.493 Error: /domoticz/domoticz(_Z14signal_handleri+0x58) [0x1ccb2c]
2017-06-12 21:00:42.493 Error: /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer_v2+0) [0x76a7a180]

reporting alarms, IR-status

Hi,

The latest version added all my IR sensors to Domoticz, and arming/disarming the panel from domoticz (and from the panel itself, which is then seen by domoticz) works great.

I wonder though how I should get an alarm reported back. The IR sensors have never given me an 'on' or 'active' state in Domoticz - not even when the system was armed. I also see no way to have domoticz notice and/or handle an alarm state.

Am I missing something? Is there a stub somewhere in your code I can expand to add this functionality?

install problem raspberry pi

I have installed the module on a raspberry pi and tried it also on an ubuntu (virtual) desktop
On both machines i have the same failure in the log of domoticz
What is the problem?
Thanks in advance for your reply
Cees

Log file domoticz:
2017-12-01 16:42:27.476 Error: (Woonveilig) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/domoticz-woonveilig/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.
2017-12-01 16:42:27.476 Error: (woonveilig) Module Import failed, exception: 'ImportError'
2017-12-01 16:42:27.476 Error: (woonveilig) Module Import failed: ' Name: demjson'

on ubuntu
2017-12-02 13:20:59.943 Error: (Woonveilig) failed to load 'plugin.py', Python Path used was '/home/parallels/domoticz/plugins/domoticz-woonveilig/:/usr/lib/python35.zip:/usr/lib/python3.5/:/usr/lib/python3.5/plat-x86_64-linux-gnu:/usr/lib/python3.5/lib-dynload'.
2017-12-02 13:20:59.943 Error: (woonveilig) Module Import failed, exception: 'ImportError'
2017-12-02 13:20:59.943 Error: (woonveilig) Module Import failed: ' Name: demjson'
2017-12-02 13:20:59.943 Error: (woonveilig) Error Line details not available.

UniCodeDecodeError

Hi,
I'm trying to integrate my Egardia Gate01 to Domoticz.
Domoticz is installed on a Raspberry Pi with Raspbian Jessie.
Like your Installation and Setup Description, I've added the plugin and I can add Woonveilig Gate01.
But I can't see devices...

Here's the Log:
2017-09-28 09:17:58.243 Domoticz V3.8153 (c)2012-2017 GizMoCuz
2017-09-28 09:17:58.245 Build Hash: 494fff7, Date: 2017-07-30 12:19:41
2017-09-28 09:17:58.247 Startup Path: /home/domoticz/domoticz/
2017-09-28 09:17:58.476 PluginSystem: Started, Python version '3.4.2'.
2017-09-28 09:17:58.489 Active notification Subsystems: gcm, http (2/12)
2017-09-28 09:17:58.491 WebServer(HTTP) started on address: :: with port 8080
2017-09-28 09:17:58.493 Proxymanager started.
2017-09-28 09:17:58.495 Starting shared server on: :::6144
2017-09-28 09:17:58.495 RxQueue: queue worker started...
2017-09-28 09:17:58.495 TCPServer: shared server started...
2017-09-28 09:17:58.548 Incoming connection from: 192.168.178.21
2017-09-28 09:18:00.496 EventSystem: reset all events...
2017-09-28 09:18:00.497 EventSystem: reset all device statuses...
2017-09-28 09:18:00.629 Python EventSystem: Module not found - Trying to initialize.
2017-09-28 09:18:00.630 Python EventSystem: Initalizing event module.
2017-09-28 09:18:00.631 EventSystem: Started
2017-09-28 09:18:00.807 PluginSystem: Entering work loop.
2017-09-28 09:18:01.197 (Egardia) Initialized version 1.1.0, author 'Steven van den Beemt'
2017-09-28 09:18:01.428 Error: (Egardia) 'onStart' failed 'UnicodeDecodeError'.
2017-09-28 09:18:01.428 Error: (Egardia) ----> Line 137 in /home/domoticz/domoticz/plugins/domoticz-woonveilig/plugin.py, function onStart
2017-09-28 09:18:01.428 Error: (Egardia) ----> Line 39 in /home/domoticz/domoticz/plugins/domoticz-woonveilig/plugin.py, function onStart
2017-09-28 09:18:01.428 Error: (Egardia) ----> Line 194 in /home/domoticz/domoticz/plugins/domoticz-woonveilig/plugin.py, function MakeRequest
2017-09-28 09:18:10.911 Error: (Egardia) 'onHeartbeat' failed 'UnicodeDecodeError'.
2017-09-28 09:18:10.911 Error: (Egardia) ----> Line 165 in /home/domoticz/domoticz/plugins/domoticz-woonveilig/plugin.py, function onHeartbeat
2017-09-28 09:18:10.912 Error: (Egardia) ----> Line 111 in /home/domoticz/domoticz/plugins/domoticz-woonveilig/plugin.py, function onHeartbeat
2017-09-28 09:18:10.912 Error: (Egardia) ----> Line 194 in /home/domoticz/domoticz/plugins/domoticz-woonveilig/plugin.py, function MakeRequest

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.