Plugin - Homewizard

Python and python framework
Haringstad
Posts: 27
Joined: Tuesday 22 November 2016 10:54
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Plugin - Homewizard

Post by Haringstad » Saturday 29 April 2017 17:35

@Wobbles, thanks for this plugin!

I only keep getting the following error:

Error: (HomeWizard) Error on setting the Wattcher values!

It did detect my gas and electricity meter properly, but.....

Here is output of my /get-sensors:

Code: Select all

        "energylinks": [
            {
                "aggregate": {
                    "dayTotal": 8.29, 
                    "po": 569, 
                    "po+": 2554, 
                    "po+t": "15:58", 
                    "po-": 215, 
                    "po-t": "12:44"
                }, 
                "c1": 0, 
                "c2": 0, 
                "code": "541989", 
                "favorite": "no", 
                "gas": {
                    "dayTotal": 0.73, 
                    "lastHour": 0.0
                },                 "id": 0, 
                "kwhindex": 0.0, 
                "name": "EnergyLink", 
                "s1": null, 
                "s2": null, 
                "t1": "none", 
                "t2": "none", 
                "tariff": 1, 
                "used": {
                    "dayTotal": 8.28, 
                    "po": 569, 
                    "po+": 2554, 
                    "po+t": "15:58", 
                    "po-": 215, 
                    "po-t": "12:44"
                }, 
                "wp": 0
            }            }
        ], 
        "energymeters": [], 
        
And I do not have any "energymeters"......

I can provide you with dumps of my homewizard, as much as you want ;-)

gsmink
Posts: 3
Joined: Saturday 29 July 2017 16:59
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Plugin - Homewizard

Post by gsmink » Saturday 29 July 2017 17:03

Hello,
Thanks for this great plugin, but does anyone has experience of a solution for reading out of the S0 ports on the HomeWizard energy link?

ps. i also get the error: Error: (Home Wizard) Error on setting the Wattcher values!

Code: Select all

{"status": "ok", "version": "3.38", "request": {"route": "/get-status" }, "response": {"preset":0,"time":"2017-07-29 17:16","switches":[{"id":0,"type":"switch","status":"off"},{"id":1,"type":"switch","status":"off"},{"id":2,"type":"switch","status":"off"},{"id":3,"type":"switch","status":"off"},{"id":4,"type":"switch","status":"off"},{"id":5,"type":"led2ch","status":"off","color":{"hue":155,"sat":0,"bri":25}},{"id":7,"type":"switch","status":"off"}],"uvmeters":[],"windmeters":[],"rainmeters":[{"id":1,"mm":10.5,"3h":0.0,"favorite":"no"}],"thermometers":[{"id":0,"te":22.7,"hu":56,"favorite":"no"},{"id":2,"te":23.5,"hu":59,"favorite":"no"},{"id":4,"te":6.4,"hu":82,"favorite":"no"},{"id":5,"te":22.4,"hu":68,"favorite":"no"}],"weatherdisplays":[], "energymeters": [], "energylinks": [{"id":0,"tariff":1,"s1":{"po":699,"dayTotal":10.47,"po+":2735,"po+t":"12:35","po-":0,"po-t":"00:01"},"s2":null,"aggregate":{"po":-270,"dayTotal":-4.34,"po+":1980,"po+t":"13:39","po-":-2490,"po-t":"14:12"},"used":{"po":253,"dayTotal":6.36,"po+":2729,"po+t":"13:46","po-":0,"po-t":"08:41"},"gas":{"lastHour":0.01,"dayTotal":0.31},"kwhindex":4.11}], "heatlinks": [], "kakusensors": [{"id":0,"status":null,"timestamp":"09:32"},{"id":1,"status":null,"timestamp":"13:04"},{"id":2,"status":"yes","timestamp":"15:01"},{"id":3,"status":null,"timestamp":"00:00"},{"id":4,"status":null,"timestamp":"00:00"},{"id":5,"status":"no","timestamp":"12:54"}]}}



User avatar
Sjonnie2017
Posts: 42
Joined: Wednesday 02 August 2017 19:43
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: The Netherlands
Contact:

Re: Plugin - Homewizard

Post by Sjonnie2017 » Thursday 03 August 2017 19:05

Hi All,

I'm a bit stuck getting this plugin to work. Maybe someone is able to help me?

I am trying to get the plugin.py to work on my Synology NAS and I can't seem to get it to work. I need the python script to connect to my HomeWizard. Some facts and figures:
  • NAS: Synology DS115
    Installed application: Python 3 (not Python 2 or the python 2 plugin package (although I tried these as well))
    Domoticz version: 3.8153-7 (package by @Jadahl)
    Plugin located at: /usr/local/domoticz/var/plugins
    Plugin permissions: 777 (rwx for all)
I also tried to place the plugin in /usr/local/domoticz/plugins (even with 777 permissions) to no avail.

If I look in the installation log of Domoticz I don't really see anything that could cause the plugin not to load:

Image

Please note that I have re-installed the software multiple times and rebooted the NAS after each re-install to make sure that there are no residual settings.

Second note is that I have the plugin working on a test machine running Ubuntu server 14.04.2. But I really need it to run on my Syno.

Any help greatly appreciated!

Greetz,

Sjonnie

Edit: Got it! :mrgreen: I had to place the plugin in a subfolder at /usr/local/domoticz/var/plugins. In this case I chose HomeWizard. Stopped the package and restarted it. Et voilá! I could select HomeWizard as my hardware :shock:

HTH

Greetz,

Sjonnie
Domoticz (latest) on RPi3 - HomeWizard as relay - HeatLink - Some 26 switches (KaKu/CoCo) for lights and shutters - HomeWizard Weatherstation with 4 additional thermo-/hygrometers - 4 water sensors - Byron B002e doorbell -
BroadLink Black Bean

User avatar
Sjonnie2017
Posts: 42
Joined: Wednesday 02 August 2017 19:43
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: The Netherlands
Contact:

Re: Plugin - Homewizard

Post by Sjonnie2017 » Sunday 13 August 2017 13:44

I have a hard time figuring out how to edit the python script. I need help editing the script to add the HomeWizard HeatLink and (in the future) the Smartwares Flood sensors (SH8-WD-TR). Goal of adding the HeatLink is to be able to control the central heating using geofencing. I know the HomeWizard has a similar function but it is not as advanced.

I have no coding skills whatsoever so I completely depend on those who have in this community.

I have the results of /get-sensors which show the HeatLink:

Code: Select all

"heatlinks": 
[
{"id": 0, "favorite": "no", "name": "HeatLink", "code": "607047", "pump": "off", "heating": "off", "dhw": "off", "rte": 23.777, "rsp": 20.000, "tte": 20.000, "ttm": null, "wp": 1.500, "wte": 45.000, "ofc": 0, "odc": 0, 
"presets": 
[
{ "id": 0, "te": 20.00},{ "id": 1, "te": 15.00},
{ "id": 2, "te": 21.00},{ "id": 3, "te": 16.500}
]
}
], 
Hope someone is willing to help me.

Greetz,

Sjonnie
Domoticz (latest) on RPi3 - HomeWizard as relay - HeatLink - Some 26 switches (KaKu/CoCo) for lights and shutters - HomeWizard Weatherstation with 4 additional thermo-/hygrometers - 4 water sensors - Byron B002e doorbell -
BroadLink Black Bean

User avatar
Sjonnie2017
Posts: 42
Joined: Wednesday 02 August 2017 19:43
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: The Netherlands
Contact:

Re: Plugin - Homewizard

Post by Sjonnie2017 » Sunday 13 August 2017 14:23

Haringstad wrote:
Saturday 29 April 2017 17:35
And I do not have any "energymeters"......
Had the same error and also do not have an energy meter. I edit the plugin.py and with my none existent coding skills place remarks at the code relating to the Wattcher.

Here is what I have edited:

Code: Select all

##                # Update energymeters (Wattcher)
##                try:
##                    en = Devices[self.en_id].sValue.split(";")
##                    en_0 = self.GetValue(Response["response"]["energymeters"][0], "po", "0")
##                    UpdateDevice(self.en_id, 0, str(en_0)+";"+str(en[1]))
##                except:
##                    Domoticz.Error("Error on setting the Wattcher values!")
##                
##                Domoticz.Debug("Ended handle route /get-status")
Not very pretty but it stopped me from getting errors.

HTH

Greetz,

Sjonnie
Domoticz (latest) on RPi3 - HomeWizard as relay - HeatLink - Some 26 switches (KaKu/CoCo) for lights and shutters - HomeWizard Weatherstation with 4 additional thermo-/hygrometers - 4 water sensors - Byron B002e doorbell -
BroadLink Black Bean

Wobbles
Posts: 29
Joined: Thursday 03 March 2016 20:30
Target OS: Raspberry Pi
Domoticz version: 3.8153
Contact:

Re: Plugin - Homewizard

Post by Wobbles » Monday 14 August 2017 21:01

I have updated the code to not update the device if it doesn't exist...

Code: Select all

		# Update energymeters (Wattcher)
                if ( len(Response["response"]["energymeters"]) != 0 ):
                    try:                    
                        en = Devices[self.en_id].sValue.split(";")
                        en_0 = self.GetValue(Response["response"]["energymeters"][0], "po", "0")
                        UpdateDevice(self.en_id, 0, str(en_0)+";"+str(en[1]))
                    except:
                        Domoticz.Error("Error on setting the Wattcher values!")
                
                Domoticz.Debug("Ended handle route /get-status")
Raspberry PI 1, Raspberry PI 2 & Raspberry PI 3, RFXCom, Z-Wave(Aeotec ZW090 Z-Stick Gen5), Philips HUE and using the premium android app

User avatar
Sjonnie2017
Posts: 42
Joined: Wednesday 02 August 2017 19:43
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: The Netherlands
Contact:

Re: Plugin - Homewizard

Post by Sjonnie2017 » Thursday 17 August 2017 17:56

Well... I tried to modify the code for the Wattcher to read the status of the HeatLink. As you might expect it didn't work. The result of my experiment was that I had to completely re-install and reconfigure Domoticz on my Syno :shock:

Something tells me it should be kinda similar to the Wattcher or the EnergyLink but I haven't got a clue how to adapt the code. :(

If there is anyone out there willing to help it'd be much appreciated :mrgreen:

Greetz,

Sjonnie
Domoticz (latest) on RPi3 - HomeWizard as relay - HeatLink - Some 26 switches (KaKu/CoCo) for lights and shutters - HomeWizard Weatherstation with 4 additional thermo-/hygrometers - 4 water sensors - Byron B002e doorbell -
BroadLink Black Bean

Wobbles
Posts: 29
Joined: Thursday 03 March 2016 20:30
Target OS: Raspberry Pi
Domoticz version: 3.8153
Contact:

Re: Plugin - Homewizard

Post by Wobbles » Thursday 17 August 2017 22:20

I have added the first steps with the Heatlink. Please update your plugin and let me know if this works as expected.

Since I don't own a heatlink I am unable to test it myself.
Raspberry PI 1, Raspberry PI 2 & Raspberry PI 3, RFXCom, Z-Wave(Aeotec ZW090 Z-Stick Gen5), Philips HUE and using the premium android app

User avatar
Sjonnie2017
Posts: 42
Joined: Wednesday 02 August 2017 19:43
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: The Netherlands
Contact:

Re: Plugin - Homewizard

Post by Sjonnie2017 » Friday 18 August 2017 8:29

Hi Wobbles,

Thanks for your support and time!

Tried the new plugin.py and rebooted the NAS. Domoticz started but I lost my devices and switches. The install log in DSM showed the following:

Image

Will be restoring the old version to keep the house working as it should. ;)

edit: I ran through the code and noticed that you have programmed an update sequence for the Energylink. However I can't find such a sequence for the Heatlink.

So I tried this:

Code: Select all

        	# Update the Heatlink
        	elif ( self.hw_route == "/hl" ):
        		self.Heatlinks(Response)
Right beneath the sequence for the Energylink but unfortunately that didn't work.

The log shows this:

Code: Select all

2017-08-18 09:32:33.472  Error: (Homewizard) failed to load 'plugin.py', Python Path used was '/usr/local/domoticz/var/plugins/HomeWizard/:/volume1/@appstore/py3k/usr/local/lib/python35.zip:/volume1/@appstore/py3k/usr/local/lib/python3.5/:/volume1/@appstore/py3k/usr/local/lib/python3.5/plat-linux:/volume1/@appstore/py3k/usr/local/lib/python3.5/lib-dynload'.
2017-08-18 09:32:33.472  Error: (HomeWizard) Module Import failed, exception: 'TabError'
2017-08-18 09:32:33.473  Error: (HomeWizard) Import detail: File: /usr/local/domoticz/var/plugins/HomeWizard/plugin.py, Line: 751454208, offset: 260
2017-08-18 09:32:33.473  Error: (HomeWizard) Error Line '        	elif ( self.hw_route == "/hl" ):
'
2017-08-18 09:32:43.801  (Weer (Online)) Temp + Humidity + Baro (Weer Online Temp+Vocht+Druk)
2017-08-18 09:32:43.807  (Weer (Online)) Wind (Weer Online Windmeter)
2017-08-18 09:32:43.813  (Weer (Online)) UV (Weer Online UV)
2017-08-18 09:32:43.819  (Weer (Online)) Rain (Weer Online Regenmeter)
2017-08-18 09:32:43.829  (Weer (Online)) General/Visibility (Weer Online Zicht)
2017-08-18 09:34:00.081  Error: HomeWizard hardware (2) thread seems to have ended unexpectedly
2017-08-18 09:34:30.677  Error: HomeWizard hardware (2) thread seems to have ended unexpectedly
2017-08-18 09:35:00.504  Error: HomeWizard hardware (2) thread seems to have ended unexpectedly
2017-08-18 09:35:30.152  Error: HomeWizard hardware (2) thread seems to have ended unexpectedly
2017-08-18 09:36:00.768  Error: HomeWizard hardware (2) thread seems to have ended unexpectedly
2017-08-18 09:36:30.355  Error: HomeWizard hardware (2) thread seems to have ended unexpectedly
2017-08-18 09:37:00.981  Error: HomeWizard hardware (2) thread seems to have ended unexpectedly
2017-08-18 09:37:30.577  Error: HomeWizard hardware (2) thread seems to have ended unexpectedly
2017-08-18 09:38:00.174  Error: HomeWizard hardware (2) thread seems to have ended unexpectedly
2017-08-18 09:38:30.790  Error: HomeWizard hardware (2) thread seems to have ended unexpectedly
2017-08-18 09:39:00.376  Error: HomeWizard hardware (2) thread seems to have ended unexpectedly
2017-08-18 09:39:30.992  Error: HomeWizard hardware (2) thread seems to have ended unexpectedly
2017-08-18 09:40:00.627  Error: HomeWizard hardware (2) thread seems to have ended unexpectedly
2017-08-18 09:40:30.225  Error: HomeWizard hardware (2) thread seems to have ended unexpectedly
2017-08-18 09:41:00.851  Error: HomeWizard hardware (2) thread seems to have ended unexpectedly
2017-08-18 09:41:30.438  Error: HomeWizard hardware (2) thread seems to have ended unexpectedly
2017-08-18 09:42:00.055  Error: HomeWizard hardware (2) thread seems to have ended unexpectedly
2017-08-18 09:42:30.651  Error: HomeWizard hardware (2) thread seems to have ended unexpectedly
I investigated some more and found that besides the update sequence for the energylink you have an entry for the energylink on line 369. But I don't know if I have to add something for the heatlink and where :(

Hope you are willing to help me out here...
Domoticz (latest) on RPi3 - HomeWizard as relay - HeatLink - Some 26 switches (KaKu/CoCo) for lights and shutters - HomeWizard Weatherstation with 4 additional thermo-/hygrometers - 4 water sensors - Byron B002e doorbell -
BroadLink Black Bean

Wobbles
Posts: 29
Joined: Thursday 03 March 2016 20:30
Target OS: Raspberry Pi
Domoticz version: 3.8153
Contact:

Re: Plugin - Homewizard

Post by Wobbles » Friday 18 August 2017 18:29

Hi Sjonnie,

I really have no idea why your devices and switches were removed, nice to know you have a backup ;)

I have written this with the information you supplied me a few post ago. The plugin sends /get-sensor every x minutes, at that time it also updates the heatlinks. I didn't add a separate command for it since I don't know it.

Can you please let me know if the devices are created and if, after startup, you see something about the heatlinks at all. For me, after startup, I see a line like: No of heatlinks found: 0

If you start editing the plugin.py, please use a python editor since you have a tab error on the line you edited.
Raspberry PI 1, Raspberry PI 2 & Raspberry PI 3, RFXCom, Z-Wave(Aeotec ZW090 Z-Stick Gen5), Philips HUE and using the premium android app

User avatar
Sjonnie2017
Posts: 42
Joined: Wednesday 02 August 2017 19:43
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: The Netherlands
Contact:

Re: Plugin - Homewizard

Post by Sjonnie2017 » Friday 18 August 2017 19:03

Wobbles wrote:Hi Sjonnie,

I really have no idea why your devices and switches were removed, nice to know you have a backup ;)

I have written this with the information you supplied me a few post ago. The plugin sends /get-sensor every x minutes, at that time it also updates the heatlinks. I didn't add a separate command for it since I don't know it.

Can you please let me know if the devices are created and if, after startup, you see something about the heatlinks at all. For me, after startup, I see a line like: No of heatlinks found: 0

If you start editing the plugin.py, please use a python editor since you have a tab error on the line you edited.
Hi Wobbles,

I will give it a go when I am home again (short holiday as of todayImage). That'll take a week or so. I shall reload the script and see what happens.

I edited the file with a plain text editor (the one supplied by Synology) so I'll install a python editor on my Linux pc and try again.

Thanks for your continued support!

Greetz,

Sjonnie

Verstuurd vanaf mijn YOGA Tablet 2-1050F met Tapatalk

Domoticz (latest) on RPi3 - HomeWizard as relay - HeatLink - Some 26 switches (KaKu/CoCo) for lights and shutters - HomeWizard Weatherstation with 4 additional thermo-/hygrometers - 4 water sensors - Byron B002e doorbell -
BroadLink Black Bean

User avatar
gijsje
Posts: 160
Joined: Saturday 19 August 2017 14:28
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: Berkel Enschot, NL
Contact:

Re: Plugin - Homewizard

Post by gijsje » Saturday 19 August 2017 15:55

i have just done the update but i can not see the heatlink.
I can also not see the water detection sensors http://www.homewizard.nl/smartwares-868 ... elder.html
And also not the thermostat for the radiators http://www.homewizard.nl/smartwares-dra ... kraan.html
And from the Energylink it only shows the Electricity and the gas that are connected to P1 but not the water that is connected to S2 http://www.homewizard.nl/homewizard-energylink-102.html
Synology DS218+ - RFXtrx433 - Aeotec Z-Stick Gen5 - Toon Thermostat - Neo CoolCam plug - Neo CoolCam PIR - FIBARO PIR - Heiman Smart Smoke Senso - Neo CoolCam Leakage Detector - BeNext Tag Reader - P1 and S0 USB - many Mi-Light lights - KAKU switches

User avatar
Sjonnie2017
Posts: 42
Joined: Wednesday 02 August 2017 19:43
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: The Netherlands
Contact:

Re: Plugin - Homewizard

Post by Sjonnie2017 » Saturday 19 August 2017 17:54

gijsje wrote:i have just done the update but i can not see the heatlink.
I can also not see the water detection sensors http://www.homewizard.nl/smartwares-868 ... elder.html
And also not the thermostat for the radiators http://www.homewizard.nl/smartwares-dra ... kraan.html
And from the Energylink it only shows the Electricity and the gas that are connected to P1 but not the water that is connected to S2 http://www.homewizard.nl/homewizard-energylink-102.html
Hi Gijsje,

Wobbles asked me to get some data for him so he can figure out how he has to program the heatlink. Since I am unable to do so this week, maybe you can do the honours?

Please post the output of the following

Http://[ip-of-your-homewizard]/[paswword-of-homewizard]/get-sensors and

Http://[ip-of-your-homewizard]/[paswword-of-homewizard]/get-status and finally

Http://[ip-of-your-homewizard]/[paswword-of-homewizard]/hl

Wobbles indicated that it is ok to anonimise the data but not to alter the structure!

Thanks in advanceImageImageImage

Greetz

Sjonnie

Verstuurd vanaf mijn YOGA Tablet 2-1050F met Tapatalk

Domoticz (latest) on RPi3 - HomeWizard as relay - HeatLink - Some 26 switches (KaKu/CoCo) for lights and shutters - HomeWizard Weatherstation with 4 additional thermo-/hygrometers - 4 water sensors - Byron B002e doorbell -
BroadLink Black Bean

User avatar
gijsje
Posts: 160
Joined: Saturday 19 August 2017 14:28
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: Berkel Enschot, NL
Contact:

Re: Plugin - Homewizard

Post by gijsje » Saturday 19 August 2017 19:56

Http://[ip-of-your-homewizard]/[paswword-of-homewizard]/get-sensors and RESULT

Code: Select all

{"status": "ok", "version": "3.38", "request": {"route": "/get-sensors" }, "response": {"preset":0,"time":"2017-08-19 19:48","switches":[{"id":0,"name":"Luifel","type":"asun","mode":0,"favorite":"no"},{"id":1,"name":"test","type":"switch","status":"on","favorite":"no"},{"id":2,"name":"Kleuren lamp","type":"led5ch","status":"off","color":{"hue":0,"sat":0,"bri":10},"version":5.03,"favorite":"no"},{"id":3,"name":"Huisk eettafel","type":"dimmer","status":"off","dimlevel":0,"favorite":"no"},{"id":4,"name":"Keuken","type":"dimmer","status":"off","dimlevel":0,"favorite":"no"},{"id":5,"name":"Slaapkamer bed","type":"switch","status":"off","favorite":"no"},{"id":6,"name":"Huisk Groot","type":"dimmer","status":"off","dimlevel":0,"favorite":"no"},{"id":7,"name":"Huisk tv","type":"dimmer","status":"off","dimlevel":0,"favorite":"no"},{"id":8,"name":"Garage Lamp","type":"switch","status":"off","favorite":"no"},{"id":9,"name":"Kantoor vitrine","type":"switch","status":"off","favorite":"no"},{"id":11,"name":"Tuin voor","type":"dimmer","status":"off","dimlevel":0,"favorite":"no"},{"id":12,"name":"Slaapkamer Lamp","type":"dimmer","status":"off","dimlevel":0,"favorite":"no"},{"id":13,"name":"Gang","type":"switch","status":"off","favorite":"no"},{"id":14,"name":"Tuin achter","type":"switch","status":"off","favorite":"no"},{"id":15,"name":"Kantoor buro","type":"switch","status":"off","favorite":"no"},{"id":16,"name":"Ventilator","type":"switch","status":"off","favorite":"yes"},{"id":17,"name":"Huisk Dressoir","type":"dimmer","status":"off","dimlevel":0,"favorite":"no"},{"id":18,"name":"Toilet","type":"switch","status":"off","favorite":"no"},{"id":19,"name":"Kantoor plafond","type":"dimmer","status":"off","dimlevel":0,"favorite":"no"},{"id":20,"name":"Slaapkamer","type":"radiator","tte":0.0,"favorite":"yes"},{"id":21,"name":"Rachelle","type":"dimmer","status":"off","dimlevel":0,"favorite":"no"},{"id":22,"name":"Stroom draad","type":"switch","status":"on","favorite":"no"}],"uvmeters":[],"windmeters":[{"id":4,"name":"Wind meter","model":0,"unit":0,"ws":0.3,"dir":"WNW 292","gu":2.0,"wc":17.5,"te":17.5,"ws+":4.0,"ws+t":"16:04","ws-":0.0,"ws-t":"00:01","favorite":"no"}],"rainmeters":[{"id":3,"name":"Regen meter","model":0,"mm":0.0,"3h":0.0,"favorite":"no"}],"thermometers":[{"id":0,"name":"Huis kamer","channel":1,"model":0,"te":19.0,"hu":62,"te+":22.9,"te+t":"18:32","te-":12.8,"te-t":"05:26","hu+":75,"hu+t":"05:09","hu-":57,"hu-t":"19:35","outside":"no","favorite":"no"},{"id":1,"name":"Slaapkamer","channel":2,"model":0,"te":22.9,"hu":57,"te+":23.7,"te+t":"03:03","te-":22.6,"te-t":"13:36","hu+":63,"hu+t":"02:44","hu-":56,"hu-t":"18:45","outside":"no","favorite":"no"},{"id":2,"name":"Buiten","channel":3,"model":0,"te":17.6,"hu":66,"te+":19.9,"te+t":"16:46","te-":12.1,"te-t":"05:18","hu+":87,"hu+t":"14:22","hu-":61,"hu-t":"18:44","outside":"yes","favorite":"no"},{"id":5,"name":"Kantoor","code":"16245902","model":1,"lowBattery":"no","version":2.32,"te":20.7,"hu":66,"te+":21.6,"te+t":"00:08","te-":20.2,"te-t":"10:20","hu+":70,"hu+t":"07:50","hu-":66,"hu-t":"18:00","outside":"no","favorite":"no"}],"weatherdisplays":[], "energymeters": [], "energylinks": [{"id":0,"favorite":"no","name":"EnergyLink","code":"972489","t1":"other","c1":1,"t2":"water","c2":1,"tariff":1,"s1":{"po":0,"dayTotal":0.00,"po+":0,"po+t":"00:01","po-":0,"po-t":"00:01"},"s2":{"po":0,"dayTotal":227.00,"po+":14,"po+t":"11:31","po-":0,"po-t":"00:02"},"aggregate":{"po":2570,"dayTotal":8.24,"po+":2640,"po+t":"19:45","po-":170,"po-t":"03:37"},"used":{"po":2570,"dayTotal":8.14,"po+":2640,"po+t":"19:45","po-":170,"po-t":"03:37"},"gas":{"lastHour":0.05,"dayTotal":0.39},"kwhindex":0.00,"wp":0}], "heatlinks": [{"id": 0, "favorite": "no", "name": "HeatLink", "code": "661003", "pump": "off", "heating": "off", "dhw": "off", "rte": 22.148, "rsp": 20.000, "tte": 0.000, "ttm": null, "wp": 0.000, "wte": 51.500, "ofc": 0, "odc": 0, "presets": [{ "id": 0, "te": 20.00},{ "id": 1, "te": 15.00},{ "id": 2, "te": 21.00},{ "id": 3, "te": 15.00}]}], "hues": [], "scenes": [{"id": 0, "name": "TV Kijken", "favorite": "yes"},{"id": 2, "name": "Toilet", "favorite": "no"},{"id": 3, "name": "Tuin", "favorite": "no"},{"id": 4, "name": "Tuin nacht", "favorite": "no"},{"id": 5, "name": "Badkamer fan", "favorite": "no"}], "kakusensors": [{"id":0,"name":"Deurbel voor","status":null,"type":"doorbell","favorite":"no","timestamp":"00:00","cameraid":null},{"id":1,"name":"Licht sensor","status":null,"type":"light","favorite":"no","timestamp":"00:00","cameraid":null},{"id":2,"name":"Tuin","status":"no","type":"motion","favorite":"no","timestamp":"19:27","cameraid":0},{"id":4,"name":"Brand Beneden","status":"no","type":"smoke868","favorite":"no","timestamp":"00:00","cameraid":null,"lowBattery":"no","lastSeen":"2017-08-19 05:49:00"},{"id":5,"name":"Gang","status":"no","type":"motion","favorite":"no","timestamp":"18:30","cameraid":null},{"id":6,"name":"Achter deur","status":"yes","type":"contact","favorite":"no","timestamp":"18:49","cameraid":null},{"id":7,"name":"Toilet","status":"no","type":"motion","favorite":"no","timestamp":"18:21","cameraid":null},{"id":8,"name":"Voor deur","status":null,"type":"contact","favorite":"no","timestamp":"00:00","cameraid":null},{"id":9,"name":"Water Washok","status":"no","type":"leakage","favorite":"no","timestamp":"00:00","cameraid":null,"lowBattery":"no","lastSeen":"2017-08-19 19:35:40"},{"id":10,"name":"Ketel Brand","status":"no","type":"smoke868","favorite":"no","timestamp":"00:00","cameraid":null,"lowBattery":"no","lastSeen":"2017-08-19 06:05:41"},{"id":11,"name":"Ketel Water","status":"no","type":"leakage","favorite":"no","timestamp":"00:00","cameraid":null,"lowBattery":"no","lastSeen":"2017-08-19 19:04:32"},{"id":12,"name":"Deurbel","status":"no","type":"doorbell","favorite":"no","timestamp":"12:42","cameraid":null},{"id":13,"name":"boven","status":"no","type":"smoke868","favorite":"no","timestamp":"00:00","cameraid":null,"lowBattery":"no","lastSeen":"2017-08-19 03:44:44"}], "cameras": [{"id":0,"model":30,"name":"Camera","username":"xxxx","password":"xxxx","ip":"192.168.0.100","port":"80","mode":0,"url":{"path":"image/jpeg.cgi","query":"","auth":"YWRtaW46YWRtaW4="},"presets":[]}]}}
Http://[ip-of-your-homewizard]/[paswword-of-homewizard]/get-status RESULT

Code: Select all

{"status": "ok", "version": "3.38", "request": {"route": "/get-status" }, "response": {"preset":0,"time":"2017-08-19 19:49","switches":[{"id":1,"type":"switch","status":"on"},{"id":2,"type":"led5ch","status":"off","color":{"hue":0,"sat":0,"bri":10}},{"id":3,"type":"dimmer","status":"off","dimlevel":0},{"id":4,"type":"dimmer","status":"off","dimlevel":0},{"id":5,"type":"switch","status":"off"},{"id":6,"type":"dimmer","status":"off","dimlevel":0},{"id":7,"type":"dimmer","status":"off","dimlevel":0},{"id":8,"type":"switch","status":"off"},{"id":9,"type":"switch","status":"off"},{"id":11,"type":"dimmer","status":"off","dimlevel":0},{"id":12,"type":"dimmer","status":"off","dimlevel":0},{"id":13,"type":"switch","status":"off"},{"id":14,"type":"switch","status":"off"},{"id":15,"type":"switch","status":"off"},{"id":16,"type":"switch","status":"off"},{"id":17,"type":"dimmer","status":"off","dimlevel":0},{"id":18,"type":"switch","status":"off"},{"id":19,"type":"dimmer","status":"off","dimlevel":0},{"id":20,"type":"radiator","tte":0.0},{"id":21,"type":"dimmer","status":"off","dimlevel":0},{"id":22,"type":"switch","status":"on"}],"uvmeters":[],"windmeters":[{"id":4,"unit":0,"ws":0.3,"dir":"ENE 67","gu":0.0,"wc":17.5,"te":17.5,"favorite":"no"}],"rainmeters":[{"id":3,"mm":0.0,"3h":0.0,"favorite":"no"}],"thermometers":[{"id":0,"te":22.6,"hu":57,"favorite":"no"},{"id":1,"te":22.9,"hu":57,"favorite":"no"},{"id":2,"te":17.5,"hu":65,"favorite":"no"},{"id":5,"te":20.7,"hu":66,"favorite":"no"}],"weatherdisplays":[], "energymeters": [], "energylinks": [{"id":0,"tariff":1,"s1":{"po":0,"dayTotal":0.00,"po+":0,"po+t":"00:01","po-":0,"po-t":"00:01"},"s2":{"po":0,"dayTotal":227.00,"po+":14,"po+t":"11:31","po-":0,"po-t":"00:02"},"aggregate":{"po":2580,"dayTotal":8.29,"po+":2640,"po+t":"19:45","po-":170,"po-t":"03:37"},"used":{"po":2580,"dayTotal":8.19,"po+":2640,"po+t":"19:45","po-":170,"po-t":"03:37"},"gas":{"lastHour":0.05,"dayTotal":0.39},"kwhindex":0.00}], "heatlinks": [{"id": 0, "pump": "off", "heating": "off", "dhw": "off", "rte": 22.136, "rsp": 20.000, "tte": 0.000, "ttm": null, "wp": 0.000, "wte": 51.296, "ofc": 0, "odc": 0}], "kakusensors": [{"id":0,"status":null,"timestamp":"00:00"},{"id":1,"status":null,"timestamp":"00:00"},{"id":2,"status":"no","timestamp":"19:27"},{"id":4,"status":"no","timestamp":"00:00"},{"id":5,"status":"no","timestamp":"18:30"},{"id":6,"status":"yes","timestamp":"18:49"},{"id":7,"status":"no","timestamp":"18:21"},{"id":8,"status":null,"timestamp":"00:00"},{"id":9,"status":"no","timestamp":"00:00"},{"id":10,"status":"no","timestamp":"00:00"},{"id":11,"status":"no","timestamp":"00:00"},{"id":12,"status":"no","timestamp":"12:42"},{"id":13,"status":"no","timestamp":"00:00"}]}}
Http://[ip-of-your-homewizard]/[paswword-of-homewizard]/hl RESULT

Code: Select all

Not Found
you can set the temp for the heatlink by http://ip/<password>/hl/0/settarget/<te ... >/<minutes>

More info for the links here
http://wiki.td-er.nl/index.php?title=Homewizard
Last edited by gijsje on Monday 21 August 2017 8:57, edited 1 time in total.
Synology DS218+ - RFXtrx433 - Aeotec Z-Stick Gen5 - Toon Thermostat - Neo CoolCam plug - Neo CoolCam PIR - FIBARO PIR - Heiman Smart Smoke Senso - Neo CoolCam Leakage Detector - BeNext Tag Reader - P1 and S0 USB - many Mi-Light lights - KAKU switches

User avatar
gijsje
Posts: 160
Joined: Saturday 19 August 2017 14:28
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: Berkel Enschot, NL
Contact:

Re: Plugin - Homewizard

Post by gijsje » Saturday 19 August 2017 20:16

I have looked over the information from get-sensors
it seams that the water detection sensor is "type":"leakage"
Maybe it helps
Synology DS218+ - RFXtrx433 - Aeotec Z-Stick Gen5 - Toon Thermostat - Neo CoolCam plug - Neo CoolCam PIR - FIBARO PIR - Heiman Smart Smoke Senso - Neo CoolCam Leakage Detector - BeNext Tag Reader - P1 and S0 USB - many Mi-Light lights - KAKU switches

User avatar
gijsje
Posts: 160
Joined: Saturday 19 August 2017 14:28
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: Berkel Enschot, NL
Contact:

Re: Plugin - Homewizard

Post by gijsje » Monday 21 August 2017 15:03

I think there may also be a problem with the electricity and gas readout.
it shows me 0.003kWh used today but in homewizard it shows me 5.31kWh used
For the gas it shows 0.0000 and in homewizard it is 0.23m3

It does read the total values from the meter like 15360kWh and 5235m3 for the gas
Synology DS218+ - RFXtrx433 - Aeotec Z-Stick Gen5 - Toon Thermostat - Neo CoolCam plug - Neo CoolCam PIR - FIBARO PIR - Heiman Smart Smoke Senso - Neo CoolCam Leakage Detector - BeNext Tag Reader - P1 and S0 USB - many Mi-Light lights - KAKU switches

User avatar
Sjonnie2017
Posts: 42
Joined: Wednesday 02 August 2017 19:43
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: The Netherlands
Contact:

Re: Plugin - Homewizard

Post by Sjonnie2017 » Friday 25 August 2017 19:36

My turn to add the info of for-mentioned commands

Get sensors:

Code: Select all

{"status": "ok", "version": "3.38", "request": {"route": "/get-sensors" }, "response": {"preset":0,"time":"2017-08-25 19:29","switches":[{"id":0,"name":"Simon Levelt","type":"switch","status":"off","favorite":"no"},{"id":1,"name":"Wandbord","type":"switch","status":"off","favorite":"no"},{"id":2,"name":"CD Rek","type":"switch","status":"off","favorite":"no"},{"id":3,"name":"Eettafel","type":"dimmer","status":"off","dimlevel":0,"favorite":"no"},{"id":4,"name":"Luik Keuken","type":"asun","mode":0,"favorite":"no"},{"id":5,"name":"Plafondspot TV","type":"dimmer","status":"off","dimlevel":0,"favorite":"no"},{"id":6,"name":"Secretaire","type":"switch","status":"off","favorite":"no"},{"id":7,"name":"Buffetkast","type":"switch","status":"off","favorite":"no"},{"id":8,"name":"Luik Dressoir","type":"asun","mode":0,"favorite":"no"},{"id":9,"name":"Luik Haard","type":"asun","mode":0,"favorite":"no"},{"id":10,"name":"Luik Kop Tuin","type":"asun","mode":0,"favorite":"no"},{"id":11,"name":"Luik Tuindeur","type":"asun","mode":0,"favorite":"no"},{"id":12,"name":"Luik Tuinraam","type":"asun","mode":0,"favorite":"no"},{"id":13,"name":"Luik Secretaire","type":"asun","mode":0,"favorite":"no"},{"id":14,"name":"Dressoir","type":"switch","status":"off","favorite":"no"},{"id":15,"name":"Verwarming WC","type":"switch","status":"off","favorite":"no"},{"id":16,"name":"Trap licht","type":"switch","status":"off","favorite":"no"},{"id":17,"name":"Plafond haard","type":"dimmer","status":"off","dimlevel":0,"favorite":"no"},{"id":19,"name":"Hobby Hedwig","type":"dimmer","status":"off","dimlevel":0,"favorite":"no"},{"id":20,"name":"Hobby Algemeer","type":"dimmer","status":"off","dimlevel":0,"favorite":"no"},{"id":21,"name":"Luik W Hobby","type":"asun","mode":0,"favorite":"no"},{"id":22,"name":"Luik K Hobby","type":"asun","mode":0,"favorite":"no"},{"id":23,"name":"Slaapkamer bed","type":"switch","status":"off","favorite":"no"},{"id":24,"name":"Slaapkamer plaf","type":"switch","status":"off","favorite":"no"},{"id":25,"name":"Douche kachel","type":"switch","status":"off","favorite":"no"},{"id":26,"name":"Hobby Jan","type":"dimmer","status":"off","dimlevel":0,"favorite":"no"}],"uvmeters":[],"windmeters":[{"id":2,"name":"Windmeter","code":"1934604","model":1,"lowBattery":"no","version":null,"unit":0,"ws":1.4,"dir":"ENE 67","gu":1.7,"wc":23.6,"te":23.6,"ws+":1.6,"ws+t":"17:57","ws-":0.0,"ws-t":"00:13","favorite":"no"}],"rainmeters":[{"id":3,"name":"Regenmeter","code":"16734518","model":1,"lowBattery":"no","version":2.32,"mm":0.0,"3h":0.0,"favorite":"no"}],"thermometers":[{"id":1,"name":"Tuinhuis Buiten","code":"16767261","model":1,"lowBattery":"no","version":2.32,"te":21.6,"hu":60,"te+":22.9,"te+t":"17:31","te-":13.0,"te-t":"04:39","hu+":89,"hu+t":"06:41","hu-":55,"hu-t":"14:16","outside":"no","favorite":"no"},{"id":4,"name":"Schuur","code":"10966696","model":1,"lowBattery":"no","version":2.31,"te":24.7,"hu":55,"te+":24.7,"te+t":"19:04","te-":19.2,"te-t":"08:09","hu+":62,"hu+t":"08:15","hu-":53,"hu-t":"16:55","outside":"yes","favorite":"no"},{"id":5,"name":"Tuinvilla","code":"3020364","model":1,"lowBattery":"no","version":2.32,"te":21.7,"hu":68,"te+":21.7,"te+t":"18:39","te-":17.5,"te-t":"07:26","hu+":72,"hu+t":"00:01","hu-":65,"hu-t":"17:06","outside":"no","favorite":"no"},{"id":6,"name":"Kelder Achter","code":"9181345","model":1,"lowBattery":"no","version":2.32,"te":21.3,"hu":69,"te+":21.3,"te+t":"00:00","te-":21.0,"te-t":"10:30","hu+":69,"hu+t":"00:00","hu-":68,"hu-t":"03:30","outside":"no","favorite":"no"}],"weatherdisplays":[{"id":0,"name":"Weather Station","code":"1952764","model":1,"version":2.32,"favorite":"no"}], "energymeters": [], "energylinks": [], "heatlinks": [{"id": 0, "favorite": "no", "name": "HeatLink", "code": "607047", "pump": "off", "heating": "off", "dhw": "off", "rte": 24.703, "rsp": 20.000, "tte": 0.000, "ttm": null, "wp": 1.500, "wte": 58.000, "ofc": 0, "odc": 0, "presets": [{ "id": 0, "te": 20.00},{ "id": 1, "te": 15.00},{ "id": 2, "te": 21.00},{ "id": 3, "te": 16.500}]}], "hues": [], "scenes": [{"id": 3, "name": "Woonkamer lamp", "favorite": "no"},{"id": 4, "name": "Bezoek", "favorite": "no"},{"id": 5, "name": "Woonkamer set", "favorite": "no"},{"id": 6, "name": "TV kijken", "favorite": "no"}], "kakusensors": [{"id":0,"name":"Woonkamer","status":null,"type":"smoke","favorite":"no","timestamp":"13:23","cameraid":null},{"id":1,"name":"Gang","status":null,"type":"smoke","favorite":"no","timestamp":"13:23","cameraid":null},{"id":2,"name":"Slaapkamer","status":null,"type":"smoke","favorite":"no","timestamp":"13:23","cameraid":null}], "cameras": []}}
Get status:

Code: Select all

{"status": "ok", "version": "3.38", "request": {"route": "/get-status" }, "response": {"preset":0,"time":"2017-08-25 19:30","switches":[{"id":0,"type":"switch","status":"off"},{"id":1,"type":"switch","status":"off"},{"id":2,"type":"switch","status":"off"},{"id":3,"type":"dimmer","status":"off","dimlevel":0},{"id":5,"type":"dimmer","status":"off","dimlevel":0},{"id":6,"type":"switch","status":"off"},{"id":7,"type":"switch","status":"off"},{"id":14,"type":"switch","status":"off"},{"id":15,"type":"switch","status":"off"},{"id":16,"type":"switch","status":"off"},{"id":17,"type":"dimmer","status":"off","dimlevel":0},{"id":19,"type":"dimmer","status":"off","dimlevel":0},{"id":20,"type":"dimmer","status":"off","dimlevel":0},{"id":23,"type":"switch","status":"off"},{"id":24,"type":"switch","status":"off"},{"id":25,"type":"switch","status":"off"},{"id":26,"type":"dimmer","status":"off","dimlevel":0}],"uvmeters":[],"windmeters":[{"id":2,"unit":0,"ws":1.4,"dir":"NE 45","gu":2.5,"wc":23.5,"te":23.5,"favorite":"no"}],"rainmeters":[{"id":3,"mm":0.0,"3h":0.0,"favorite":"no"}],"thermometers":[{"id":1,"te":21.6,"hu":61,"favorite":"no"},{"id":4,"te":24.7,"hu":55,"favorite":"no"},{"id":5,"te":21.7,"hu":68,"favorite":"no"},{"id":6,"te":21.3,"hu":69,"favorite":"no"}],"weatherdisplays":[{"id":0,"favorite":"no"}], "energymeters": [], "energylinks": [], "heatlinks": [{"id": 0, "pump": "off", "heating": "off", "dhw": "off", "rte": 24.703, "rsp": 20.000, "tte": 0.000, "ttm": null, "wp": 1.500, "wte": 58.000, "ofc": 0, "odc": 0}], "kakusensors": [{"id":0,"status":null,"timestamp":"13:23"},{"id":1,"status":null,"timestamp":"13:23"},{"id":2,"status":null,"timestamp":"13:23"}]}}
/hl

Code: Select all

not found
@Wobbles: I hope you can get some useful info from my readings. Like @gijsje I would like to incorporate some water sensors ("type":"leakage") into Domoticz :). If you need any other data please let me know.

Looking forward to your reply!

PS. I still have to adjust/adapt/change the script using the correct editor. Will keep you posted on that!

Greetz,

Sjonnie
Domoticz (latest) on RPi3 - HomeWizard as relay - HeatLink - Some 26 switches (KaKu/CoCo) for lights and shutters - HomeWizard Weatherstation with 4 additional thermo-/hygrometers - 4 water sensors - Byron B002e doorbell -
BroadLink Black Bean

User avatar
Sjonnie2017
Posts: 42
Joined: Wednesday 02 August 2017 19:43
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: The Netherlands
Contact:

Re: Plugin - Homewizard

Post by Sjonnie2017 » Wednesday 30 August 2017 17:47

Small update due to the fact that I received my water sensors today :mrgreen:

Get sensors:

Code: Select all

{"status": "ok", "version": "3.38", "request": {"route": "/get-sensors" }, "response": {"preset":0,"time":"2017-08-30 17:44","switches":[{"id":0,"name":"Simon Levelt","type":"switch","status":"off","favorite":"no"},{"id":1,"name":"Wandbord","type":"switch","status":"off","favorite":"no"},{"id":2,"name":"CD Rek","type":"switch","status":"off","favorite":"no"},{"id":3,"name":"Eettafel","type":"dimmer","status":"off","dimlevel":0,"favorite":"no"},{"id":4,"name":"Luik Keuken","type":"asun","mode":0,"favorite":"no"},{"id":5,"name":"Plafondspot TV","type":"dimmer","status":"off","dimlevel":0,"favorite":"no"},{"id":6,"name":"Secretaire","type":"switch","status":"off","favorite":"no"},{"id":7,"name":"Buffetkast","type":"switch","status":"off","favorite":"no"},{"id":8,"name":"Luik Dressoir","type":"asun","mode":0,"favorite":"no"},{"id":9,"name":"Luik Haard","type":"asun","mode":0,"favorite":"no"},{"id":10,"name":"Luik Kop Tuin","type":"asun","mode":0,"favorite":"no"},{"id":11,"name":"Luik Tuindeur","type":"asun","mode":0,"favorite":"no"},{"id":12,"name":"Luik Tuinraam","type":"asun","mode":0,"favorite":"no"},{"id":13,"name":"Luik Secretaire","type":"asun","mode":0,"favorite":"no"},{"id":14,"name":"Dressoir","type":"switch","status":"off","favorite":"no"},{"id":15,"name":"Verwarming WC","type":"switch","status":"off","favorite":"no"},{"id":16,"name":"Trap licht","type":"switch","status":"off","favorite":"no"},{"id":17,"name":"Plafond haard","type":"dimmer","status":"off","dimlevel":0,"favorite":"no"},{"id":19,"name":"Hobby Hedwig","type":"dimmer","status":"off","dimlevel":0,"favorite":"no"},{"id":20,"name":"Hobby Algemeer","type":"dimmer","status":"off","dimlevel":0,"favorite":"no"},{"id":21,"name":"Luik W Hobby","type":"asun","mode":0,"favorite":"no"},{"id":22,"name":"Luik K Hobby","type":"asun","mode":0,"favorite":"no"},{"id":23,"name":"Slaapkamer bed","type":"switch","status":"off","favorite":"no"},{"id":24,"name":"Slaapkamer plaf","type":"switch","status":"off","favorite":"no"},{"id":25,"name":"Douche kachel","type":"switch","status":"off","favorite":"no"},{"id":26,"name":"Hobby Jan","type":"dimmer","status":"off","dimlevel":0,"favorite":"no"}],"uvmeters":[],"windmeters":[{"id":2,"name":"Windmeter","code":"1934604","model":1,"lowBattery":"no","version":null,"unit":0,"ws":1.4,"dir":"WSW 247","gu":2.0,"wc":17.4,"te":17.4,"ws+":8.3,"ws+t":"04:05","ws-":0.0,"ws-t":"00:54","favorite":"no"}],"rainmeters":[{"id":3,"name":"Regenmeter","code":"16734518","model":1,"lowBattery":"no","version":2.32,"mm":14.7,"3h":0.0,"favorite":"no"}],"thermometers":[{"id":1,"name":"Tuinhuis Buiten","code":"16767261","model":1,"lowBattery":"no","version":2.32,"te":17.2,"hu":91,"te+":19.7,"te+t":"00:00","te-":17.2,"te-t":"16:27","hu+":91,"hu+t":"08:44","hu-":82,"hu-t":"01:37","outside":"no","favorite":"no"},{"id":4,"name":"Schuur","code":"10966696","model":1,"lowBattery":"no","version":2.31,"te":22.1,"hu":68,"te+":25.3,"te+t":"00:00","te-":22.1,"te-t":"11:08","hu+":75,"hu+t":"11:56","hu-":59,"hu-t":"00:00","outside":"yes","favorite":"no"},{"id":5,"name":"Tuinvilla","code":"3020364","model":1,"lowBattery":"no","version":2.32,"te":20.6,"hu":73,"te+":23.4,"te+t":"00:00","te-":20.6,"te-t":"17:17","hu+":75,"hu+t":"11:01","hu-":72,"hu-t":"00:00","outside":"no","favorite":"no"},{"id":6,"name":"Kelder Achter","code":"9181345","model":1,"lowBattery":"no","version":2.32,"te":26.3,"hu":53,"te+":26.6,"te+t":"05:45","te-":26.3,"te-t":"00:01","hu+":54,"hu+t":"14:11","hu-":53,"hu-t":"00:01","outside":"no","favorite":"no"}],"weatherdisplays":[{"id":0,"name":"Weather Station","code":"1952764","model":1,"version":2.32,"favorite":"no"}], "energymeters": [], "energylinks": [], "heatlinks": [{"id": 0, "favorite": "no", "name": "HeatLink", "code": "607047", "pump": "off", "heating": "off", "dhw": "off", "rte": 24.921, "rsp": 20.000, "tte": 0.000, "ttm": null, "wp": 1.500, "wte": 39.000, "ofc": 0, "odc": 0, "presets": [{ "id": 0, "te": 20.00},{ "id": 1, "te": 15.00},{ "id": 2, "te": 21.00},{ "id": 3, "te": 16.500}]}], "hues": [], "scenes": [{"id": 3, "name": "Woonkamer lamp", "favorite": "no"},{"id": 4, "name": "Bezoek", "favorite": "no"},{"id": 5, "name": "Woonkamer set", "favorite": "no"},{"id": 6, "name": "TV kijken", "favorite": "no"}], "kakusensors": [{"id":0,"name":"Woonkamer","status":null,"type":"smoke","favorite":"no","timestamp":"13:23","cameraid":null},{"id":1,"name":"Gang","status":null,"type":"smoke","favorite":"no","timestamp":"13:23","cameraid":null},{"id":2,"name":"Slaapkamer","status":null,"type":"smoke","favorite":"no","timestamp":"13:23","cameraid":null},{"id":3,"name":"Ontvochtiger","status":"yes","type":"leakage","favorite":"no","timestamp":"17:08","cameraid":null,"lowBattery":"no","lastSeen":"2017-08-30 17:08:46"},{"id":4,"name":"CV ketel","status":"yes","type":"leakage","favorite":"no","timestamp":"17:18","cameraid":null,"lowBattery":"no","lastSeen":"2017-08-30 17:18:44"},{"id":5,"name":"Wasmachine","status":"yes","type":"leakage","favorite":"no","timestamp":"17:23","cameraid":null,"lowBattery":"no","lastSeen":"2017-08-30 17:24:01"},{"id":6,"name":"Ontharder","status":"yes","type":"leakage","favorite":"no","timestamp":"17:33","cameraid":null,"lowBattery":"no","lastSeen":"2017-08-30 17:33:58"}], "cameras": []}}
Get status:

Code: Select all

{"status": "ok", "version": "3.38", "request": {"route": "/get-status" }, "response": {"preset":0,"time":"2017-08-30 17:46","switches":[{"id":0,"type":"switch","status":"off"},{"id":1,"type":"switch","status":"off"},{"id":2,"type":"switch","status":"off"},{"id":3,"type":"dimmer","status":"off","dimlevel":0},{"id":5,"type":"dimmer","status":"off","dimlevel":0},{"id":6,"type":"switch","status":"off"},{"id":7,"type":"switch","status":"off"},{"id":14,"type":"switch","status":"off"},{"id":15,"type":"switch","status":"off"},{"id":16,"type":"switch","status":"off"},{"id":17,"type":"dimmer","status":"off","dimlevel":0},{"id":19,"type":"dimmer","status":"off","dimlevel":0},{"id":20,"type":"dimmer","status":"off","dimlevel":0},{"id":23,"type":"switch","status":"off"},{"id":24,"type":"switch","status":"off"},{"id":25,"type":"switch","status":"off"},{"id":26,"type":"dimmer","status":"off","dimlevel":0}],"uvmeters":[],"windmeters":[{"id":2,"unit":0,"ws":1.6,"dir":"NW 315","gu":2.8,"wc":17.4,"te":17.4,"favorite":"no"}],"rainmeters":[{"id":3,"mm":14.7,"3h":0.0,"favorite":"no"}],"thermometers":[{"id":1,"te":17.2,"hu":91,"favorite":"no"},{"id":4,"te":22.1,"hu":68,"favorite":"no"},{"id":5,"te":20.6,"hu":73,"favorite":"no"},{"id":6,"te":26.3,"hu":53,"favorite":"no"}],"weatherdisplays":[{"id":0,"favorite":"no"}], "energymeters": [], "energylinks": [], "heatlinks": [{"id": 0, "pump": "off", "heating": "off", "dhw": "off", "rte": 24.921, "rsp": 20.000, "tte": 0.000, "ttm": null, "wp": 1.500, "wte": 39.000, "ofc": 0, "odc": 0}], "kakusensors": [{"id":0,"status":null,"timestamp":"13:23"},{"id":1,"status":null,"timestamp":"13:23"},{"id":2,"status":null,"timestamp":"13:23"},{"id":3,"status":"yes","timestamp":"17:08"},{"id":4,"status":"yes","timestamp":"17:18"},{"id":5,"status":"yes","timestamp":"17:23"},{"id":6,"status":"yes","timestamp":"17:33"}]}}
The output of /hl is still the same ;)

Hope this helps!

Greetz,

Sjonnie
Domoticz (latest) on RPi3 - HomeWizard as relay - HeatLink - Some 26 switches (KaKu/CoCo) for lights and shutters - HomeWizard Weatherstation with 4 additional thermo-/hygrometers - 4 water sensors - Byron B002e doorbell -
BroadLink Black Bean

User avatar
Sjonnie2017
Posts: 42
Joined: Wednesday 02 August 2017 19:43
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: The Netherlands
Contact:

Re: Plugin - Homewizard

Post by Sjonnie2017 » Tuesday 12 September 2017 17:58

Turned on e-mail notification on Pi for other purposes and apart from other errors I get this error about every 2 or 3 minutes:

Code: Select all

2017-09-12 17:42:12.558 Error: (HomeWizard) Error at setting the heatlink values!
HTH

Greetz,

Sjonnie
Domoticz (latest) on RPi3 - HomeWizard as relay - HeatLink - Some 26 switches (KaKu/CoCo) for lights and shutters - HomeWizard Weatherstation with 4 additional thermo-/hygrometers - 4 water sensors - Byron B002e doorbell -
BroadLink Black Bean

User avatar
gijsje
Posts: 160
Joined: Saturday 19 August 2017 14:28
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: Berkel Enschot, NL
Contact:

Re: Plugin - Homewizard

Post by gijsje » Wednesday 04 October 2017 18:25

I was able to add the leakage sensor that are connected to the homewizard.
I added this code to the plugin.py at the def Sensors part located at \domoticz\plugins\domoticz-homewizard

Code: Select all

elif ( sens_type == "leakage" ):
Domoticz.Device(Name=sens_name,  Unit=sens_id, Type=32, Switchtype=8).Create()
i wanted to see if i could change the type and the switchtype of the sensor but i could not find a list of the different option.
I have now set it up as a smoke detector as this is a security device
Synology DS218+ - RFXtrx433 - Aeotec Z-Stick Gen5 - Toon Thermostat - Neo CoolCam plug - Neo CoolCam PIR - FIBARO PIR - Heiman Smart Smoke Senso - Neo CoolCam Leakage Detector - BeNext Tag Reader - P1 and S0 USB - many Mi-Light lights - KAKU switches

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests