Drayton Wiser heating system with Domoticz

For heating/cooling related questions in Domoticz

Moderator: leecollings

MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Drayton Wiser heating system with Domoticz

Post by MikeF »

For a number of years now, I have been using the Hive heating system (from British Gas), and I have written python routines to read and control the system
- see https://www.domoticz.com/forum/viewtopi ... =38&t=6837

However, I have been conscious that every time I issue a read request (every minute), the Hive system is 'phoning home' to access the central server via the Internet. For a while, I have been looking for a system that I can control locally, and the Drayton Wiser system (https://wiser.draytoncontrols.co.uk/) appears to fit the bill. Although it does use the Internet, this is primarily so that it can be controlled remotely using a phone app (iOS / Android); Drayton state that the app will continue to operate without an Internet connection or if the Wiser servers are down - this because all the 'intelligence' is in the local hub.

There are a number of packages available, ranging from a one-channel system (for combi boilers) without iTRVs (*) consisting of thermostat and hub, to a 3-channel (HW + 2 CH zones) with iTRVs. The system can be extended by purchasing additional thermostats / iTRVs. The Wiser system creates a hierarchy of rooms and devices (you can have multiple rooms, and multiple devices in each room - e..g, iTRVs), and the app enables you to configure this.
(*iTRV: intelligent thermostatic radiator valve).

As suggested above, the system relies heavily on the phone app ('tablets will be supported at a later date' - user manual) to configure and control it. The thermostat has a very minimalistic appearance, with touch buttons for decrease / increase temperature and boost:
Image

When the system is first set up, it creates a temporary wireless access point to enable the app to find it. A number of people have discovered that the system generates a 'secret', which is stored in the app, and which then enables the app to subsequently access it. It is possible to capture this secret, and to create simple (python) routines to access and control the Wiser system locally - without the need for Internet access. (I have verified this, by blocking Internet access for the Wiser's IP address in my router.)

I have written the following very simple python routine, for a 1-channel system (combi boiler), which captures the current thermostat temperature and setpoint, and heating relay state (on / off), and sends these to Domoticz. You will need to create 2 dummy temperature devices and one dummy switch, and insert their Domoticz idx's in the script. You will also need to obtain the Wiser hub IP address and secret - how to do this is explained in one of the reference links below. The script can be executed as a cron job at your desired frequency.
Spoiler: show

Code: Select all

'''
Simple python routine to send Drayton Wiser data to Domoticz:
- thermostat current temperature, setpoint, heating status
For single channel (combi boiler) system, with 1 thermostat and no iTRVs
- can be extended for 2-channel (CH + HW) and 3-channel (2-zone CH + HW) systems & iTRVs

Replace occurrences of <xxx> with your own values

See  https://github.com/connor9/python-draytonwiser-api for comprehensive API, 
and instructions for obtaining hubIP and hubSecret
'''

import requests
import json

hubIP     = '<xxx>'
hubSecret = '<xxx>'

wiserHubURL = "http://{}/data/domain/".format(hubIP)

currTempIdx = <xxx>	# Wiser thermostat temperature
setpointIdx = <xxx>	# Wiser setpoint
heatingIdx  = <xxx>	# Wiser heating status

domoWriteURL  = 'http://<domoticz IP:port>/json.htm?type=command&param=udevice&nvalue=0&idx='
domoSwitchURL = 'http://<domoticz IP:port>/json.htm?type=command&param=switchlight&idx='

headers = {'SECRET': hubSecret,'Content-Type': 'application/json;charset=UTF-8'}
wiserHubData = requests.get(wiserHubURL, headers=headers).json()

#print(json.dumps(wiserHubData, indent=2, sort_keys=True))

heatingState = wiserHubData["HeatingChannel"][0]["HeatingRelayState"]
currentTemp  = float(wiserHubData["Room"][0]["CalculatedTemperature"])/10.0
setPoint     = float(wiserHubData["Room"][0]["CurrentSetPoint"])/10.0

#print heatingRelayState, currentTemp, setPoint

url = domoWriteURL + str(currTempIdx) + '&svalue=' + str(currentTemp)
r = requests.get(url)

url = domoWriteURL + str(setpointIdx) + '&svalue=' + str(setPoint)
r = requests.get(url)

url = domoSwitchURL + str(heatingIdx) + '&switchcmd=' + heatingState
r = requests.get(url)
	
This can be extended (not by me!) to the bigger systems referred to above. I have come across 2 very comprehensive python APIs, both of which explain how to capture the Wiser secret:
https://github.com/connor9/python-draytonwiser-api
https://pypi.org/project/wiser-heating-api/

There is a very detailed 4-part review of the Drayton Wiser system here:
https://www.automatedhome.co.uk/reviews ... ation.html
bluebook
Posts: 17
Joined: Tuesday 15 January 2019 3:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Drayton Wiser heating system with Domoticz

Post by bluebook »

In case you're interested I have developed a python plugin for the Drayton Wiser. It auto-discovers the attached devices, polls temperature and humidty from those devices have it, polls and controls state of Hot Water and smart plugs, alters set point of radiators and thermostat. The main thing it can't do currently is alter the schedule - so whilst you can override the current set point, hot water state, or smart plug state, you can't alter their schedule from Domoticz.

Like you I started off with a stand-alone script doing the polling, but I didn't like having to have separate process running to do the job.
MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: Drayton Wiser heating system with Domoticz

Post by MikeF »

I certainly am interested. I've recently created additional scripts to update setpoint and mode (auto / manual / boost / home / away) from / to Domoticz, and it would be good to have all this functionality in one plugin.
chaiwalla
Posts: 9
Joined: Thursday 10 October 2019 22:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: UK
Contact:

Re: Drayton Wiser heating system with Domoticz

Post by chaiwalla »

HI Guys

I have recently purchased the Wiser system and would love to be able to integrate it with my Domoticz

Any chance you could share your scripts or plugin?

Many thanks
Chris
bluebook
Posts: 17
Joined: Tuesday 15 January 2019 3:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Drayton Wiser heating system with Domoticz

Post by bluebook »

Sorry, haven't been by here in a while. If you're still interested in a plug-in for wiser, let me know. I've recently added some additional functionality to track when the boiler itself switches on and off.
chaiwalla
Posts: 9
Joined: Thursday 10 October 2019 22:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: UK
Contact:

Re: Drayton Wiser heating system with Domoticz

Post by chaiwalla »

Hi

Yes please definitely still interested.

Haven't posted here enough to be able to PM you

Please let me know how to get in touch to share your plugin.

Regards
Chris
bluebook
Posts: 17
Joined: Tuesday 15 January 2019 3:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Drayton Wiser heating system with Domoticz

Post by bluebook »

I finally got around to putting this somewhere accessible in github, so you can now download from https://github.com/bloob00k/domoticz. I haven't yet provided any documentation on how to obtain your HeatHub secret, which you will need in order to configure the plug-in. Hopefully you know that already or can google it, but if not then let me know. Likewise I am assuming you know where to put this script and how to get it loaded, but again let me know if not. Finally you are the first person I know of aside from me to actually use it, so it seems inevitable you will run into problems! Very interested to hear how you get on, and I will try to help if you do have any issues or questions. Enjoy!

Paul
chaiwalla
Posts: 9
Joined: Thursday 10 October 2019 22:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: UK
Contact:

Re: Drayton Wiser heating system with Domoticz

Post by chaiwalla »

Cheers Paul

Thank you very much for that.

I've got my secret but some guidance on where to put the script would be useful.

I'll have a play and let you know how I get on

Chris
bluebook
Posts: 17
Joined: Tuesday 15 January 2019 3:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Drayton Wiser heating system with Domoticz

Post by bluebook »

Plugins go in sub-directories of your main domoticz directory. Eg I have mine in ~/domoticz/plugins/Wiser/plugin.py. The name must be plugin.py, whihc is why each one needs its own sub-directory.

Good luck!
chaiwalla
Posts: 9
Joined: Thursday 10 October 2019 22:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: UK
Contact:

Re: Drayton Wiser heating system with Domoticz

Post by chaiwalla »

Thanks Paul

Been having a play but getting errors

2019-11-19 17:46:07.455 Error: (Wiser) 'onMessage' failed 'KeyError'.
2019-11-19 17:46:07.455 Error: (Wiser) ----> Line 449 in '/home/pi/domoticz/plugins/Wiser/plugin.py'
2019-11-19 17:46:07.455 Error: (Wiser) ----> Line 383 in '/home/pi/domoticz/plugins/Wiser/plugin.py'
2019-11-19 17:46:07.455 Error: (Wiser) ----> Line 115 in '/home/pi/domoticz/plugins/Wiser/plugin.py'

The devices have all been created ok...

Looks promising but any help debugging would be welcome :D

Cheers

Chris
bluebook
Posts: 17
Joined: Tuesday 15 January 2019 3:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Drayton Wiser heating system with Domoticz

Post by bluebook »

Ah... I'm guessing you have a combi boiler? I've made some false assumptions which turn out only to be true for conventional boiler. Fix to follow.
bluebook
Posts: 17
Joined: Tuesday 15 January 2019 3:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Drayton Wiser heating system with Domoticz

Post by bluebook »

Try that. You'll most likely need to restart Domoticz after you copy in the new version.
sudo service domoticz restart
chaiwalla
Posts: 9
Joined: Thursday 10 October 2019 22:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: UK
Contact:

Re: Drayton Wiser heating system with Domoticz

Post by chaiwalla »

HI Paul

Thanks for that, well spotted with the combi boiler

Appears to be all working now, all the devices have been created and populated with values, setpoint updates work and pass to the app, no more errors in the log.

Nice job!

Without wanting to sound ungrateful i have a feature request already :D any way to access the 'Away Mode' switch?

Regards

Chris
bluebook
Posts: 17
Joined: Tuesday 15 January 2019 3:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Drayton Wiser heating system with Domoticz

Post by bluebook »

Hi Chris, glad to hear it is is working!

Thanks for the feature request :-). So basically you want to be able to the "away" state, and presumably to change it too? Sounds like a reasonable request. I'll investigate.
chaiwalla
Posts: 9
Joined: Thursday 10 October 2019 22:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: UK
Contact:

Re: Drayton Wiser heating system with Domoticz

Post by chaiwalla »

HI Paul

Yes please that would be great

I have tried using a blockly to update the Wiser setpoints but get an error

2019-11-20 21:19:43.971 Error: (Wiser) Transport is not connected, write directive to 'WiserCmd' ignored.
2019-11-20 21:19:52.939 Error: (Wiser) No transport, write directive to 'WiserCmd' ignored.
2019-11-20 21:19:54.943 Error: CConnection_connect, connect request from 'Wiser' ignored. Transport is connecting.

If i update the setpoints manually from the utilities tab they update fine with no errors in the log

Cheers
Chris
redanman
Posts: 3
Joined: Wednesday 20 November 2019 21:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Drayton Wiser heating system with Domoticz

Post by redanman »

Just installed your plugin and it's working fine...thanks.
For info, and for other potential users of the plugin, to get it working I had to update my Rasp Pi to install python3 and python3-dev as per the Domoticz wiki (https://www.domoticz.com/wiki/Using_Python_plugins). I also had "adding devices" turned off in the settings page, so the devices did not appear until I turned that back on.
Well done for the plugin.
bluebook
Posts: 17
Joined: Tuesday 15 January 2019 3:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Drayton Wiser heating system with Domoticz

Post by bluebook »

Hmm, I think this one is going to be more interesting. Can you set debugging to "connections+Python" and then post the log around the time the script runs please?

Also, just a hunch, but are you trying to update setpoints on multiple rooms at once? If so, could you try what happens if you only update one?

The time stamps on your messages are several seconds apart, which I think has something to do with the problem, but I'm not yet sure what.
bluebook
Posts: 17
Joined: Tuesday 15 January 2019 3:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Drayton Wiser heating system with Domoticz

Post by bluebook »

Actually, if you can post your blockly script then I can test it locally.
bluebook
Posts: 17
Joined: Tuesday 15 January 2019 3:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Drayton Wiser heating system with Domoticz

Post by bluebook »

Just committed an update to add support for Away Mode. Let me know if you have any problems. As usual you will need to restart domoticz after updating the plugin.
chaiwalla
Posts: 9
Joined: Thursday 10 October 2019 22:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: UK
Contact:

Re: Drayton Wiser heating system with Domoticz

Post by chaiwalla »

Hi Paul

Sorry really busy end to the week haven't had time to do much debugging.

In answer to your questions here's a copy of the log with the debug set as requested.
Spoiler: show
2019-11-23 17:29:52.497 (Wiser) Transport set to: 'TCP/IP', 192.168.1.15:80.
2019-11-23 17:29:52.497 (Wiser) Connect directive received, action initiated successfully.
2019-11-23 17:29:52.547 (Wiser) onConnect called
2019-11-23 17:29:52.547 (Wiser) Wiser connected successfully Wiser
2019-11-23 17:29:52.548 (Wiser) Sending 194 bytes of data
2019-11-23 17:29:52.598 (Wiser) Received 1430 bytes of data
2019-11-23 17:29:52.598 (Wiser) Received 730 bytes of data
2019-11-23 17:29:52.598 (Wiser) Received 1031 bytes of data
2019-11-23 17:29:52.598 (Wiser) Received 1031 bytes of data
2019-11-23 17:29:52.598 (Wiser) Received 1031 bytes of data
2019-11-23 17:29:52.599 (Wiser) Received 1430 bytes of data
2019-11-23 17:29:52.599 (Wiser) Received 632 bytes of data
2019-11-23 17:29:52.599 (Wiser) Queued asyncronous read aborted (192.168.1.15:80).
2019-11-23 17:29:52.649 (Wiser) Received 1198 bytes of data
2019-11-23 17:29:52.650 (Wiser) Disconnect event received for '192.168.1.15:80'.
2019-11-23 17:29:52.650 (Wiser) onMessage called
2019-11-23 17:29:52.650 (Wiser) Data length: 8348
2019-11-23 17:29:52.652 (Wiser) onDisconnect called
2019-11-23 17:29:52.652 Error: (Wiser) 'onMessage' failed 'KeyError'.
2019-11-23 17:29:52.652 Error: (Wiser) ----> Line 497 in '/home/pi/domoticz/plugins/Wiser/plugin.py'
2019-11-23 17:29:52.652 Error: (Wiser) ----> Line 432 in '/home/pi/domoticz/plugins/Wiser/plugin.py'
2019-11-23 17:29:52.652 Error: (Wiser) ----> Line 255 in '/home/pi/domoticz/plugins/Wiser/plugin.py'
2019-11-23 17:29:52.652 Error: (Wiser) ----> Line 248 in '/home/pi/domoticz/plugins/Wiser/plugin.py'
2019-11-23 17:30:52.517 (Wiser) Transport set to: 'TCP/IP', 192.168.1.15:80.
2019-11-23 17:30:52.517 (Wiser) Connect directive received, action initiated successfully.
2019-11-23 17:30:52.567 (Wiser) onConnect called
2019-11-23 17:30:52.567 (Wiser) Wiser connected successfully Wiser
2019-11-23 17:30:52.567 (Wiser) Sending 194 bytes of data
2019-11-23 17:30:52.618 (Wiser) Received 1430 bytes of data
2019-11-23 17:30:52.618 (Wiser) Received 1430 bytes of data
2019-11-23 17:30:52.618 (Wiser) Received 1430 bytes of data
2019-11-23 17:30:52.618 (Wiser) Received 963 bytes of data
2019-11-23 17:30:52.618 (Wiser) Received 1430 bytes of data
2019-11-23 17:30:52.621 (Wiser) Queued asyncronous read aborted (192.168.1.15:80).
2019-11-23 17:30:52.669 (Wiser) Received 1430 bytes of data
2019-11-23 17:30:52.669 (Wiser) Received 400 bytes of data
2019-11-23 17:30:52.669 (Wiser) Disconnect event received for '192.168.1.15:80'.
2019-11-23 17:30:52.669 (Wiser) onMessage called
2019-11-23 17:30:52.669 (Wiser) Data length: 8348
2019-11-23 17:30:52.672 (Wiser) onDisconnect called
2019-11-23 17:30:52.671 Error: (Wiser) 'onMessage' failed 'KeyError'.
2019-11-23 17:30:52.671 Error: (Wiser) ----> Line 497 in '/home/pi/domoticz/plugins/Wiser/plugin.py'
2019-11-23 17:30:52.671 Error: (Wiser) ----> Line 432 in '/home/pi/domoticz/plugins/Wiser/plugin.py'
2019-11-23 17:30:52.671 Error: (Wiser) ----> Line 255 in '/home/pi/domoticz/plugins/Wiser/plugin.py'
2019-11-23 17:30:52.671 Error: (Wiser) ----> Line 248 in '/home/pi/domoticz/plugins/Wiser/plugin.py'
2019-11-23 17:31:20.474 (Wiser) onCommand called for Unit 10: Parameter 'On', Level: 0
2019-11-23 17:31:20.474 (Wiser) Action On, params:
2019-11-23 17:31:20.474 (Wiser) Transport set to: 'TCP/IP', 192.168.1.15:80.
2019-11-23 17:31:20.474 (Wiser) Connect directive received, action initiated successfully.
2019-11-23 17:31:20.524 (Wiser) onConnect called
2019-11-23 17:31:20.525 (Wiser) Wiser connected successfully WiserCmd
2019-11-23 17:31:20.525 (Wiser) doCommand: WiserCmd
2019-11-23 17:31:20.525 (Wiser) Command On
2019-11-23 17:31:20.435 Status: User: Admin initiated a switch command (267/Wiser - Channel-1/On)
2019-11-23 17:31:22.528 (Wiser) Transport set to: 'TCP/IP', 192.168.1.15:80.
2019-11-23 17:31:22.529 (Wiser) Connect directive received, action initiated successfully.
2019-11-23 17:31:22.729 (Wiser) onCommand called for Unit 10: Parameter 'On', Level: 0
2019-11-23 17:31:22.729 (Wiser) Action On, params:
2019-11-23 17:31:22.695 Status: User: Admin initiated a switch command (267/Wiser - Channel-1/On)
2019-11-23 17:31:22.729 Error: CConnection_connect, connect request from 'Wiser' ignored. Transport is connected.
2019-11-23 17:31:25.477 (Wiser) Queued asyncronous read aborted (192.168.1.15:80).
2019-11-23 17:31:25.484 (Wiser) Disconnect event received for '192.168.1.15:80'.
2019-11-23 17:31:25.485 (Wiser) onDisconnect called
2019-11-23 17:31:25.535 (Wiser) onConnect called
2019-11-23 17:31:25.535 (Wiser) Wiser connected successfully Wiser
2019-11-23 17:31:25.535 (Wiser) Sending 194 bytes of data
2019-11-23 17:31:25.585 (Wiser) Received 1430 bytes of data
2019-11-23 17:31:25.586 (Wiser) Received 730 bytes of data
2019-11-23 17:31:25.586 (Wiser) Received 1031 bytes of data
2019-11-23 17:31:25.586 (Wiser) Received 1430 bytes of data
2019-11-23 17:31:25.636 (Wiser) Received 1430 bytes of data
2019-11-23 17:31:25.636 (Wiser) Received 1264 bytes of data
2019-11-23 17:31:25.644 (Wiser) Queued asyncronous read aborted (192.168.1.15:80).
2019-11-23 17:31:25.687 (Wiser) Received 1197 bytes of data
2019-11-23 17:31:25.687 (Wiser) Disconnect event received for '192.168.1.15:80'.
2019-11-23 17:31:25.687 (Wiser) onMessage called
2019-11-23 17:31:25.687 (Wiser) Data length: 8347
2019-11-23 17:31:25.689 (Wiser) onDisconnect called
2019-11-23 17:31:25.689 Error: (Wiser) 'onMessage' failed 'KeyError'.
2019-11-23 17:31:25.689 Error: (Wiser) ----> Line 497 in '/home/pi/domoticz/plugins/Wiser/plugin.py'
2019-11-23 17:31:25.689 Error: (Wiser) ----> Line 432 in '/home/pi/domoticz/plugins/Wiser/plugin.py'
2019-11-23 17:31:25.689 Error: (Wiser) ----> Line 255 in '/home/pi/domoticz/plugins/Wiser/plugin.py'
2019-11-23 17:31:25.689 Error: (Wiser) ----> Line 248 in '/home/pi/domoticz/plugins/Wiser/plugin.py'
2019-11-23 17:31:34.039 EventSystem: Event triggered: Wiser Home_2
2019-11-23 17:31:34.606 (Wiser) onCommand called for Unit 6: Parameter 'Set Level', Level: 16.0
2019-11-23 17:31:34.606 (Wiser) Action Set, params: Level
2019-11-23 17:31:34.606 (Wiser) onCommand called for Unit 4: Parameter 'Set Level', Level: 16.0
2019-11-23 17:31:34.606 (Wiser) Action Set, params: Level
2019-11-23 17:31:34.606 (Wiser) Transport set to: 'TCP/IP', 192.168.1.15:80.
2019-11-23 17:31:34.607 (Wiser) Connect directive received, action initiated successfully.
2019-11-23 17:31:34.607 (Wiser) Transport set to: 'TCP/IP', 192.168.1.15:80.
2019-11-23 17:31:34.607 (Wiser) Connect directive received, action initiated successfully.
2019-11-23 17:31:34.657 (Wiser) onConnect called
2019-11-23 17:31:34.657 (Wiser) Wiser connected successfully WiserCmd
2019-11-23 17:31:34.657 (Wiser) doCommand: WiserCmd
2019-11-23 17:31:34.657 (Wiser) Command Set Level
2019-11-23 17:31:34.657 (Wiser) "Set Level" on thermostat ID 2 to 16.0
2019-11-23 17:31:34.657 (Wiser) Payload: {"RequestOverride": {"Type": "Manual", "SetPoint": 160}}
2019-11-23 17:31:34.657 Error: (Wiser) Transport is not connected, write directive to 'WiserCmd' ignored.
2019-11-23 17:31:37.456 EventSystem: Event triggered: Wiser Home_1
2019-11-23 17:31:38.016 (Wiser) onCommand called for Unit 6: Parameter 'Set Level', Level: 18.0
2019-11-23 17:31:38.016 (Wiser) Action Set, params: Level
2019-11-23 17:31:38.016 (Wiser) onCommand called for Unit 4: Parameter 'Set Level', Level: 18.0
2019-11-23 17:31:38.016 (Wiser) Action Set, params: Level
2019-11-23 17:31:38.016 Error: CConnection_connect, connect request from 'Wiser' ignored. Transport is connecting.
2019-11-23 17:31:38.017 Error: CConnection_connect, connect request from 'Wiser' ignored. Transport is connecting.
2019-11-23 17:31:39.609 (Wiser) Queued asyncronous read aborted (192.168.1.15:80).
2019-11-23 17:31:39.620 (Wiser) Disconnect event received for '192.168.1.15:80'.
2019-11-23 17:31:39.620 (Wiser) onDisconnect called
2019-11-23 17:31:39.620 (Wiser) Asyncronous connect aborted (192.168.1.15:80).
2019-11-23 17:31:39.670 (Wiser) onConnect called
2019-11-23 17:31:39.670 (Wiser) Failed to connect (125) to: 192.168.1.15:yo4g4VugAHyQE5RkDbsyEWCGoUd4wp6cF/b9J82HsMsVNJdXNarm2Z5K959uFt8wMLZXNhFVyEcM3vUHMO2PvxYps1ARPKzdLOgkS18CKjOSUuoz6/B5nYxqzSmvYsvO with error: Operation canceled
2019-11-23 17:31:42.526 (Wiser) Transport set to: 'TCP/IP', 192.168.1.15:80.
2019-11-23 17:31:42.526 (Wiser) Connect directive received, action initiated successfully.
2019-11-23 17:31:45.682 (Wiser) onConnect called
2019-11-23 17:31:45.682 (Wiser) Wiser connected successfully Wiser
2019-11-23 17:31:45.682 (Wiser) Sending 194 bytes of data
2019-11-23 17:31:45.732 (Wiser) Received 1430 bytes of data
2019-11-23 17:31:45.733 (Wiser) Received 1430 bytes of data
2019-11-23 17:31:45.733 (Wiser) Received 331 bytes of data
2019-11-23 17:31:45.733 (Wiser) Received 1430 bytes of data
2019-11-23 17:31:45.733 (Wiser) Received 1099 bytes of data
2019-11-23 17:31:45.733 (Wiser) Received 564 bytes of data
2019-11-23 17:31:45.736 (Wiser) Queued asyncronous read aborted (192.168.1.15:80).
2019-11-23 17:31:45.783 (Wiser) Received 1430 bytes of data
2019-11-23 17:31:45.784 (Wiser) Received 798 bytes of data
2019-11-23 17:31:45.784 (Wiser) Disconnect event received for '192.168.1.15:80'.
2019-11-23 17:31:45.784 (Wiser) onMessage called
2019-11-23 17:31:45.784 (Wiser) Data length: 8347
2019-11-23 17:31:45.786 (Wiser) onDisconnect called
2019-11-23 17:31:45.786 Error: (Wiser) 'onMessage' failed 'KeyError'.
2019-11-23 17:31:45.786 Error: (Wiser) ----> Line 497 in '/home/pi/domoticz/plugins/Wiser/plugin.py'
2019-11-23 17:31:45.786 Error: (Wiser) ----> Line 432 in '/home/pi/domoticz/plugins/Wiser/plugin.py'
2019-11-23 17:31:45.786 Error: (Wiser) ----> Line 255 in '/home/pi/domoticz/plugins/Wiser/plugin.py'
2019-11-23 17:31:45.786 Error: (Wiser) ----> Line 248 in '/home/pi/domoticz/plugins/Wiser/plugin.py'
That log is with the latest version of your plugin running i first of all switched the newly created device 'Wiser - Channel-1' on and then off.

I then switched my 'Home' switch off and then on again to trigger the blockly below

WiserBlockly.png
WiserBlockly.png (46.43 KiB) Viewed 3296 times

I hope that this is of some use

Please let me know if you want anything else

Chris
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests