Can't get plugwise Stretch plugin to work on Synology
Posted: Friday 04 December 2020 11:56
I have a Plugwise Smile and a Stretch which I want to read and log on my Synology NAS.
According to this article that shouldn't be too hard: https://www.domoticz.com/wiki/Plugins/Plugwise
I thought that if I could get this going for the Stretch then that should possibly also work for my wireless P1-Smile.
However I can't get it to work. See the logging below:
2020-12-04 10:31:02.690 Status: Domoticz V2020.1 (c)2012-1970 GizMoCuz
2020-12-04 10:31:02.711 Status: Build Hash: 0, Date: 1970-01-01 01:00:00
2020-12-04 10:31:02.712 Status: Startup Path: /usr/local/domoticz/
2020-12-04 10:31:03.103 Active notification Subsystems: gcm, http (2/13)
2020-12-04 10:31:03.127 Starting shared server on: :::6144
2020-12-04 10:31:03.098 Status: PluginSystem: Started, Python version '3.8.2'.
2020-12-04 10:31:03.121 Status: WebServer(HTTP) started on address: :: with port 8084
2020-12-04 10:31:03.125 Status: WebServer(SSL) started on address: :: with port 8443
2020-12-04 10:31:03.127 Status: TCPServer: shared server started...
2020-12-04 10:31:03.127 Status: RxQueue: queue worker started...
2020-12-04 10:31:05.127 Status: (Stretch) Started.
2020-12-04 10:31:05.128 Status: NotificationSystem: thread started...
2020-12-04 10:31:05.128 Status: EventSystem: reset all events...
2020-12-04 10:31:05.130 Status: EventSystem: reset all device statuses...
2020-12-04 10:31:05.220 Status: Python EventSystem: Initalizing event module.
2020-12-04 10:31:05.220 Status: EventSystem: Started
2020-12-04 10:31:05.220 Status: EventSystem: Queue thread started...
2020-12-04 10:31:05.344 Status: PluginSystem: Entering work loop.
2020-12-04 10:31:05.914 Status: (Stretch) Initialized version 1.0.3, author 'Gerrit Hulleman'
2020-12-04 10:31:05.914 Status: (Stretch) Entering work loop.
2020-12-04 10:31:05.916 Error: (Stretch) 'onStart' failed 'FileNotFoundError'.
2020-12-04 10:31:05.916 Error: (Stretch) ----> Line 352 in '/usr/local/domoticz/var/plugins/Plugwise/plugin.py'
2020-12-04 10:31:05.916 Error: (Stretch) ----> Line 65 in '/usr/local/domoticz/var/plugins/Plugwise/plugin.py'
2020-12-04 10:31:05.916 Error: (Stretch) ----> Line 342 in '/usr/local/domoticz/var/plugins/Plugwise/plugin.py'
2020-12-04 10:31:15.930 Error: (Stretch) 'onHeartbeat' failed 'FileNotFoundError'.
2020-12-04 10:31:15.930 Error: (Stretch) ----> Line 380 in '/usr/local/domoticz/var/plugins/Plugwise/plugin.py'
2020-12-04 10:31:15.930 Error: (Stretch) ----> Line 178 in '/usr/local/domoticz/var/plugins/Plugwise/plugin.py'
2020-12-04 10:31:15.930 Error: (Stretch) ----> Line 342 in '/usr/local/domoticz/var/plugins/Plugwise/plugin.py'
line 352 _plugin.onStart()
line 65 self.logMessage("Loading parameters")
line 342 f= open("plugins/Plugwise/log.txt","a+")
line 380 _plugin.onHeartbeat()
line 178 self.logMessage("onHeartbeat called")
line 342 f= open("plugins/Plugwise/log.txt","a+")
1) From Startup Path: /usr/local/domoticz/ the path "plugins/Plugwise/log.txt" does not appear right. In my eyes it should be: "var/plugins/Plugwise/log.txt"
But after correcting is the results remain the same.
2) It looks like the logfile cannot be created. But after manually creating a log.txt in this location I stil get the same log messages.
Is the code correct? I don't know much about Python but the code seems to be ok.
3) Could it be a rights issue? I assume that on the Synology the script is being executed by the root account. Installation however was done by user 'domoticz'.
I changed the owner of all folders and files to owner 'root' recursively. That also didn't help.
Does anyone have any ideas or even experience with this issue?
I am running out of clues here.
NAS: Synology DS218play, architecture: rtd1296 (armv8)
Domoticz: V2020.1, package: domoticz_rtd1296-6.2_4.0.10717-8
Python version '3.8.2'
Any help would be much appreciated.
According to this article that shouldn't be too hard: https://www.domoticz.com/wiki/Plugins/Plugwise
I thought that if I could get this going for the Stretch then that should possibly also work for my wireless P1-Smile.
However I can't get it to work. See the logging below:
2020-12-04 10:31:02.690 Status: Domoticz V2020.1 (c)2012-1970 GizMoCuz
2020-12-04 10:31:02.711 Status: Build Hash: 0, Date: 1970-01-01 01:00:00
2020-12-04 10:31:02.712 Status: Startup Path: /usr/local/domoticz/
2020-12-04 10:31:03.103 Active notification Subsystems: gcm, http (2/13)
2020-12-04 10:31:03.127 Starting shared server on: :::6144
2020-12-04 10:31:03.098 Status: PluginSystem: Started, Python version '3.8.2'.
2020-12-04 10:31:03.121 Status: WebServer(HTTP) started on address: :: with port 8084
2020-12-04 10:31:03.125 Status: WebServer(SSL) started on address: :: with port 8443
2020-12-04 10:31:03.127 Status: TCPServer: shared server started...
2020-12-04 10:31:03.127 Status: RxQueue: queue worker started...
2020-12-04 10:31:05.127 Status: (Stretch) Started.
2020-12-04 10:31:05.128 Status: NotificationSystem: thread started...
2020-12-04 10:31:05.128 Status: EventSystem: reset all events...
2020-12-04 10:31:05.130 Status: EventSystem: reset all device statuses...
2020-12-04 10:31:05.220 Status: Python EventSystem: Initalizing event module.
2020-12-04 10:31:05.220 Status: EventSystem: Started
2020-12-04 10:31:05.220 Status: EventSystem: Queue thread started...
2020-12-04 10:31:05.344 Status: PluginSystem: Entering work loop.
2020-12-04 10:31:05.914 Status: (Stretch) Initialized version 1.0.3, author 'Gerrit Hulleman'
2020-12-04 10:31:05.914 Status: (Stretch) Entering work loop.
2020-12-04 10:31:05.916 Error: (Stretch) 'onStart' failed 'FileNotFoundError'.
2020-12-04 10:31:05.916 Error: (Stretch) ----> Line 352 in '/usr/local/domoticz/var/plugins/Plugwise/plugin.py'
2020-12-04 10:31:05.916 Error: (Stretch) ----> Line 65 in '/usr/local/domoticz/var/plugins/Plugwise/plugin.py'
2020-12-04 10:31:05.916 Error: (Stretch) ----> Line 342 in '/usr/local/domoticz/var/plugins/Plugwise/plugin.py'
2020-12-04 10:31:15.930 Error: (Stretch) 'onHeartbeat' failed 'FileNotFoundError'.
2020-12-04 10:31:15.930 Error: (Stretch) ----> Line 380 in '/usr/local/domoticz/var/plugins/Plugwise/plugin.py'
2020-12-04 10:31:15.930 Error: (Stretch) ----> Line 178 in '/usr/local/domoticz/var/plugins/Plugwise/plugin.py'
2020-12-04 10:31:15.930 Error: (Stretch) ----> Line 342 in '/usr/local/domoticz/var/plugins/Plugwise/plugin.py'
line 352 _plugin.onStart()
line 65 self.logMessage("Loading parameters")
line 342 f= open("plugins/Plugwise/log.txt","a+")
line 380 _plugin.onHeartbeat()
line 178 self.logMessage("onHeartbeat called")
line 342 f= open("plugins/Plugwise/log.txt","a+")
1) From Startup Path: /usr/local/domoticz/ the path "plugins/Plugwise/log.txt" does not appear right. In my eyes it should be: "var/plugins/Plugwise/log.txt"
But after correcting is the results remain the same.
2) It looks like the logfile cannot be created. But after manually creating a log.txt in this location I stil get the same log messages.
Is the code correct? I don't know much about Python but the code seems to be ok.
3) Could it be a rights issue? I assume that on the Synology the script is being executed by the root account. Installation however was done by user 'domoticz'.
I changed the owner of all folders and files to owner 'root' recursively. That also didn't help.
Does anyone have any ideas or even experience with this issue?
I am running out of clues here.
NAS: Synology DS218play, architecture: rtd1296 (armv8)
Domoticz: V2020.1, package: domoticz_rtd1296-6.2_4.0.10717-8
Python version '3.8.2'
Any help would be much appreciated.