Python Plugin: Woonvelig Gate01 Alarmsystem Topic is solved

Python and python framework
Daehnie
Posts: 2
Joined: Wednesday 27 September 2017 7:33
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python Plugin: Woonvelig Gate01 Alarmsystem

Post by Daehnie » Wednesday 27 September 2017 13:46

Thank u for your reply,

if I change in the plugin.py:
sys.path.append('/usr/local/lib/python3.4/dist-packages')
to
sys.path.append('/usr/local/lib/python3.5/dist-packages')

I become:
2017-09-27 13:41:26.271 Error: (Egardia) 'onStart' failed 'UnicodeDecodeError'.
2017-09-27 13:41:26.271 Error: (Egardia) ----> Line 141 in /home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py, function onStart
2017-09-27 13:41:26.272 Error: (Egardia) ----> Line 43 in /home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py, function onStart
2017-09-27 13:41:26.272 Error: (Egardia) ----> Line 198 in /home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py, function MakeRequest
2017-09-27 13:41:26.653 Incoming connection from: 192.168.178.21
2017-09-27 13:41:35.588 (Egardia) Calling message handler 'onHeartbeat'.
2017-09-27 13:41:35.588 (Egardia) onHeartbeat called
2017-09-27 13:41:35.755 Error: (Egardia) 'onHeartbeat' failed 'UnicodeDecodeError'.
2017-09-27 13:41:35.755 Error: (Egardia) ----> Line 169 in /home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py, function onHeartbeat
2017-09-27 13:41:35.755 Error: (Egardia) ----> Line 115 in /home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py, function onHeartbeat
2017-09-27 13:41:35.755 Error: (Egardia) ----> Line 198 in /home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py, function MakeRequest

niekniek89
Posts: 1
Joined: Saturday 04 November 2017 14:48
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python Plugin: Woonvelig Gate01 Alarmsystem

Post by niekniek89 » Saturday 04 November 2017 14:53

Hey,

I have a question. Does this work with the "woonveilig gate03" ??

User avatar
fvdijke
Posts: 6
Joined: Monday 19 June 2017 20:51
Target OS: Raspberry Pi
Domoticz version: 3.8000
Contact:

Re: Python Plugin: Woonvelig Gate01 Alarmsystem

Post by fvdijke » Wednesday 08 November 2017 19:34

Hi,
I think i did evrything correct. Checked the sys.path, checked the exsistance of demjson.py but i end up with this message:

Code: Select all

2017-11-08 18:26:06.173 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-11-08 18:26:06.173 Error: (Woonveilig) Module Import failed, exception: 'IndentationError'
2017-11-08 18:26:06.173 Error: (Woonveilig) Import detail: File: /home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py, Line: 1978305016, offset: 46
2017-11-08 18:26:06.174 Error: (Woonveilig) Error Line 'x if (sensor["type"] == "Door Contact"): 
Did i overlooked something?

Thanks in advance

User avatar
fvdijke
Posts: 6
Joined: Monday 19 June 2017 20:51
Target OS: Raspberry Pi
Domoticz version: 3.8000
Contact:

Re: Python Plugin: Woonvelig Gate01 Alarmsystem

Post by fvdijke » Wednesday 08 November 2017 19:40

fvdijke wrote:
Wednesday 08 November 2017 19:34
Hi,
I think i did evrything correct. Checked the sys.path, checked the exsistance of demjson.py but i end up with this message:

Code: Select all

2017-11-08 18:26:06.173 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-11-08 18:26:06.173 Error: (Woonveilig) Module Import failed, exception: 'IndentationError'
2017-11-08 18:26:06.173 Error: (Woonveilig) Import detail: File: /home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py, Line: 1978305016, offset: 46
2017-11-08 18:26:06.174 Error: (Woonveilig) Error Line 'x if (sensor["type"] == "Door Contact"): 
Did i overlooked something?

Thanks in advance
So i tried to reinstall the plugin by: git clone https://github.com/StuffNL/domoticz-woonveilig.git (removed the old installation first) i get:

Code: Select all

2017-11-08 18:37:29.916 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-11-08 18:37:29.916 Error: (Woonveilig) Module Import failed, exception: 'ImportError'
2017-11-08 18:37:29.916 Error: (Woonveilig) Module Import failed: ' Name: demjson'
2017-11-08 18:37:29.916 Error: (Woonveilig) Error Line details not available.
Oke, reinstalling the plugin.py work but i forgot to change the python path.
I think its working now :)

This my log:

Code: Select all

2017-11-08 19:29:30.139 (Woonveilig) Initialized version 1.1.0, author 'Steven van den Beemt'
2017-11-08 19:29:30.514 (Woonveilig) Devices initialized.
2017-11-08 19:29:39.987 (Woonveilig) Update 0:'False' (Woonveilig - Gang bened)
2017-11-08 19:29:39.990 (Woonveilig) Update 0:'False' (Woonveilig - Woonkamer)
2017-11-08 19:29:39.992 (Woonveilig) Update 0:'False' (Woonveilig - Fietsenber)
2017-11-08 19:29:40.097 Error: (Woonveilig) 'onHeartbeat' failed 'KeyError'.
2017-11-08 19:29:40.097 Error: (Woonveilig) ----> Line 165 in /home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py, function onHeartbeat
2017-11-08 19:29:40.097 Error: (Woonveilig) ----> Line 125 in /home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py, function onHeartbeat
2017-11-08 19:29:48.414 (Dummy) General/Custom Sensor (Plantensensor)
2017-11-08 19:29:50.085 Error: (Woonveilig) 'onHeartbeat' failed 'KeyError'.
2017-11-08 19:29:50.085 Error: (Woonveilig) ----> Line 165 in /home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py, function onHeartbeat
2017-11-08 19:29:50.085 Error: (Woonveilig) ----> Line 125 in /home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py, function onHeartbeat
2017-11-08 19:30:00.064 Error: (Woonveilig) 'onHeartbeat' failed 'KeyError'.
2017-11-08 19:30:00.064 Error: (Woonveilig) ----> Line 165 in /home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py, function onHeartbeat
2017-11-08 19:30:00.064 Error: (Woonveilig) ----> Line 125 in /home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py, function onHeartbeat
2017-11-08 19:30:10.075 Error: (Woonveilig) 'onHeartbeat' failed 'KeyError'.
2017-11-08 19:30:10.075 Error: (Woonveilig) ----> Line 165 in /home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py, function onHeartbeat
2017-11-08 19:30:10.075 Error: (Woonveilig) ----> Line 125 in /home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py, function onHeartbeat
I have still some errors, any idea what they are?

vincent80
Posts: 1
Joined: Monday 20 November 2017 14:41
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin: Woonvelig Gate01 Alarmsystem

Post by vincent80 » Tuesday 21 November 2017 20:40

Roughly the same errors here after redirecting to Python3.5 . I must say however I am using a Gate02 and at the alarm panel site of my woonveilig system some terms differ from the plugin. I.e. sensorListGet in the plugin is deviceListGet in the alarm panel etc.

peter750
Posts: 6
Joined: Monday 13 October 2014 22:23
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python Plugin: Woonvelig Gate01 Alarmsystem

Post by peter750 » Monday 08 January 2018 22:35

Does this also work with the gate03 system?

Thuurke
Posts: 4
Joined: Friday 22 September 2017 17:27
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin: Woonvelig Gate01 Alarmsystem

Post by Thuurke » Friday 20 July 2018 11:14

I have a Gate 03.
Installed as provided and get the next errors:

Code: Select all

2018-07-20 11:12:43.329 Error: (Woonveilig) 'onHeartbeat' failed 'URLError'.
2018-07-20 11:12:43.330 Error: (Woonveilig) ----> Line 165 in /home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py, function onHeartbeat
2018-07-20 11:12:43.330 Error: (Woonveilig) ----> Line 111 in /home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py, function onHeartbeat
2018-07-20 11:12:43.330 Error: (Woonveilig) ----> Line 193 in /home/pi/domoticz/plugins/domoticz-woonveilig/plugin.py, function MakeRequest
2018-07-20 11:12:43.330 Error: (Woonveilig) ----> Line 163 in /usr/lib/python3.5/urllib/request.py, function urlopen
2018-07-20 11:12:43.330 Error: (Woonveilig) ----> Line 466 in /usr/lib/python3.5/urllib/request.py, function open
2018-07-20 11:12:43.330 Error: (Woonveilig) ----> Line 484 in /usr/lib/python3.5/urllib/request.py, function _open
2018-07-20 11:12:43.331 Error: (Woonveilig) ----> Line 444 in /usr/lib/python3.5/urllib/request.py, function _call_chain
2018-07-20 11:12:43.331 Error: (Woonveilig) ----> Line 1282 in /usr/lib/python3.5/urllib/request.py, function http_open
2018-07-20 11:12:43.331 Error: (Woonveilig) ----> Line 1260 in /usr/lib/python3.5/urllib/request.py, function do_open
What can be the problem?
Edited script to sys.path.append('/usr/local/lib/python3.5/dist-packages') and demsjon.py is insite this folder.

Tvanoirschot
Posts: 3
Joined: Sunday 23 July 2017 9:41
Target OS: Raspberry Pi
Domoticz version: 3.8119
Location: south-limbourgia (NL)
Contact:

Re: Python Plugin: Woonvelig Gate01 Alarmsystem

Post by Tvanoirschot » Thursday 02 August 2018 16:30

I also have the gate 03 and had the same errors. Found another plugin that works with the gate 03, but at this moment you cannot set the state of the alarm from within domoticz.

https://github.com/System67/GateKeeper/ ... /plugin.py

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests