Page 3 of 7

Re: Plugin - Homewizard

Posted: Friday 17 March 2017 19:54
by Wobbles
waaren wrote:Hi Wobbles,

I've setup my test environment on a RPI-3 and updated Domoticz to the latest Beta en your HomeWizard plugin to version 2.09
So far no stops but I get an error message from the plugin and my HomeWizard-rain device in domoticz is not updated.

Please feel free to ask if you need more info from me
Hi waaren,

I know about the rain meter, it's only updated after a change and since the weather is very nice it's not updated at the moment. I will look into the error! Thanks for reporting it to me.

Re: Plugin - Homewizard

Posted: Friday 17 March 2017 20:29
by Wobbles
Updated to version 2.0.11

Re: Plugin - Homewizard

Posted: Saturday 18 March 2017 13:06
by brogen67
Wobbles wrote: Hi Brogen,

Can you please sent me the output of: http://HOMEWIZARD_IPADDRESS/HOMEWIZARD_PASSWORD/swlist

For me it seems you have a device that is causing the error...
Hi Wobbles, here is the output :

Code: Select all

{
  "status": "ok",
  "version": "3.372",
  "request": {
    "route": "/swlist"
  },
  "response": [
    {
      "id": 0,
      "name": "Bloc TV",
      "type": "switch",
      "status": "on",
      "favorite": "no"
    },
    {
      "id": 1,
      "name": "Prise 2",
      "type": "switch",
      "status": "on",
      "favorite": "no"
    },
    {
      "id": 2,
      "name": "Prise 3",
      "type": "switch",
      "status": "off",
      "favorite": "no"
    },
    {
      "id": 3,
      "name": "Le bas",
      "type": "somfy",
      "mode": 0,
      "favorite": "no"
    },
    {
      "id": 4,
      "name": "Le haut",
      "type": "somfy",
      "mode": 0,
      "favorite": "no"
    },
    {
      "id": 5,
      "name": "La maison",
      "type": "somfy",
      "mode": 0,
      "favorite": "no"
    },
    {
      "id": 6,
      "name": "Salon",
      "type": "somfy",
      "mode": 0,
      "favorite": "no"
    },
    {
      "id": 7,
      "name": "Salle a manger",
      "type": "somfy",
      "mode": 0,
      "favorite": "no"
    },
    {
      "id": 8,
      "name": "Chambre bebe",
      "type": "somfy",
      "mode": 0,
      "favorite": "no"
    },
    {
      "id": 9,
      "name": "Cuisine",
      "type": "somfy",
      "mode": 0,
      "favorite": "no"
    },
    {
      "id": 10,
      "name": "Terrasse",
      "type": "somfy",
      "mode": 0,
      "favorite": "no"
    },
    {
      "id": 11,
      "name": "Chambre d amis",
      "type": "somfy",
      "mode": 0,
      "favorite": "no"
    },
    {
      "id": 12,
      "name": "Salle de bains",
      "type": "somfy",
      "mode": 0,
      "favorite": "no"
    },
    {
      "id": 13,
      "name": "Chambre",
      "type": "somfy",
      "mode": 0,
      "favorite": "no"
    },
    {
      "id": 14,
      "name": "Bureau",
      "type": "somfy",
      "mode": 0,
      "favorite": "no"
    },
    {
      "id": 15,
      "name": "Porte Garage",
      "type": "asun",
      "mode": 0,
      "favorite": "no"
    },
    {
      "id": 16,
      "name": "Salon Ventilo",
      "type": "dimmer",
      "status": "off",
      "dimlevel": 0,
      "favorite": "no"
    },
    {
      "id": 17,
      "name": "Allumage NAS",
      "type": "virtual",
      "status": "off",
      "favorite": "no"
    },
    {
      "id": 18,
      "name": "Sirene",
      "type": "virtual",
      "status": "off",
      "favorite": "no"
    },
    {
      "id": 19,
      "name": "Filtre Piscine",
      "type": "switch",
      "status": "off",
      "favorite": "no"
    },
    {
      "id": 20,
      "name": "Salon",
      "type": "dimmer",
      "status": "off",
      "dimlevel": 0,
      "favorite": "no"
    },
    {
      "id": 21,
      "name": "Prise Noel 1",
      "type": "switch",
      "status": "off",
      "favorite": "no"
    },
    {
      "id": 22,
      "name": "Prise Noel 2",
      "type": "switch",
      "status": "off",
      "favorite": "no"
    },
    {
      "id": 23,
      "name": "Prise Noel 3",
      "type": "switch",
      "status": "off",
      "favorite": "no"
    },
    {
      "id": 24,
      "name": "Prise buches",
      "type": "switch",
      "status": "off",
      "favorite": "no"
    },
    {
      "id": 25,
      "name": "Inter Esca Ext",
      "type": "switch",
      "status": "off",
      "favorite": "no"
    },
    {
      "id": 26,
      "name": "Chauffe serviet",
      "type": "switch",
      "status": "on",
      "favorite": "no"
    }
  ]
}
I just updated your plugin, but there si still something wrong somewhere ^^

For tests, only wattcher is added to domoticz for the moment :
2017-03-18 13:11:18.107 (Homewizard) Exiting work loop...
2017-03-18 13:11:18.107 (Homewizard) Stopped.
2017-03-18 13:11:21.866 (Homewizard) Initialized version 2.0.11, author 'Wobbles'
2017-03-18 13:11:21.878 (Homewizard) Update interval set to 20
2017-03-18 13:11:21.878 (Homewizard) Full update after 20 polls
2017-03-18 13:11:23.203 (Homewizard) Update 0:'590;13880.0' (Homewizard - Energymeter)
2017-03-18 13:11:23.203 (Homewizard) No. of switches found: 27
2017-03-18 13:11:23.205 (Homewizard) Update 1:'' (Homewizard - bloc tv)
2017-03-18 13:11:23.208 (Homewizard) Update 1:'' (Homewizard - chauffe serviet)
2017-03-18 13:11:23.208 (Homewizard) No. of thermometers found: 3
2017-03-18 13:11:23.209 (Homewizard) Update 0:'20.1;5;2' (Homewizard - Salon)
2017-03-18 13:11:23.210 (Homewizard) Update 0:'9.9;70;3' (Homewizard - Dehors)
2017-03-18 13:11:23.211 (Homewizard) Update 0:'20.0;50;1' (Homewizard - Etage)
2017-03-18 13:11:23.212 (Homewizard) No. of sensors found: 5
2017-03-18 13:11:23.213 (Homewizard) Update 0:'0.0;2.8' (Homewizard - Regen)
2017-03-18 13:11:31.521 (Homewizard) Update 1:'' (Homewizard - Detecteur Salon)
2017-03-18 13:11:31.524 (Homewizard) Update 1:'' (Homewizard - Garage)
2017-03-18 13:11:31.527 (Homewizard) Update 0:'550;13880.0' (Homewizard - Energymeter)
2017-03-18 13:12:11.518 (Homewizard) Update 0:'20.0;51;1' (Homewizard - Etage)
2017-03-18 13:12:51.568 (Homewizard) Update 0:'20.1;55;1' (Homewizard - Etage)
2017-03-18 13:12:51.572 (Homewizard) Update 0:'890;13880.0' (Homewizard - Energymeter)
2017-03-18 13:13:11.548 (Homewizard) Update 0:'650;13880.0' (Homewizard - Energymeter)
2017-03-18 13:13:31.567 (Homewizard) Update 0:'9.8;70;3' (Homewizard - Dehors)
2017-03-18 13:13:31.569 (Homewizard) Update 0:'20.1;56;1' (Homewizard - Etage)
2017-03-18 13:14:11.557 (Homewizard) Update 0:'20.1;58;1' (Homewizard - Etage)
2017-03-18 13:14:31.587 (Homewizard) Update 0:'640;13880.0' (Homewizard - Energymeter)
2017-03-18 13:14:51.562 (Homewizard) Update 0:'20.2;59;1' (Homewizard - Etage)
2017-03-18 13:15:11.585 (Homewizard) Update 0:'9.9;70;3' (Homewizard - Dehors)
2017-03-18 13:15:51.582 (Homewizard) Update 0:'9.8;70;3' (Homewizard - Dehors)

Re: Plugin - Homewizard

Posted: Monday 20 March 2017 8:29
by brogen67
Hi,

I let the script run for a complete day. Sadely, I don't have all infos from the homewizard.

The wattcher doesn't have the same daily consumption in domoticz and homewizard :(
And, thermometers doesn't refresh every poll.
2017-03-20 08_25_28-Domoticz.png
2017-03-20 08_25_28-Domoticz.png (10.27 KiB) Viewed 4014 times
2017-03-20 08_25_39-Domoticz.png
2017-03-20 08_25_39-Domoticz.png (21.69 KiB) Viewed 4014 times

Re: Plugin - Homewizard

Posted: Wednesday 22 March 2017 20:58
by Wobbles
Hi Brogen67,

I never checked the results from Homewizard and Domoticz but will start to do so ;)

The temp sensors are only updated when a value (temp or hum) changes, this is standard behavior and I think it should stay that way. I only changed it for the rainmeter since it doesn't often rain enough so it show red most of the time.

Updated to version 2.0.13

Re: Plugin - Homewizard

Posted: Thursday 23 March 2017 11:32
by brogen67
Hi Wobbles,

So, I had problem (with 2.0.12) > Domoticz goes Offline.

I just updated to the 2.0.13. I'll see

Thanks to trying to help us with your plugin :).

Re: Plugin - Homewizard

Posted: Saturday 25 March 2017 13:30
by Wobbles
Just updated the plugin to version 2.0.16

Re: Plugin - Homewizard

Posted: Saturday 25 March 2017 23:23
by waaren
Hi Wobbles,

just updated Domoticz to: 3.7153 and HomeWizard plugin to 2.0.16. Previous plugin version was also stable.
Thanks for your continuous efforts to improve this plugin.
Much appreciated.

Re: Plugin - Homewizard

Posted: Sunday 26 March 2017 21:10
by patricknooijen
Plug-in works for all my switches and my doorbell.
Any idea when energylink support will be added?

Re: Plugin - Homewizard

Posted: Monday 27 March 2017 15:41
by brogen67
Hi all,

Since the V2.0.12 this plugin looks stable for me.

I just have a little problem... For my wattcher, datas are not similars between homewizard and domoticz... this is a little difference (arround 0.2-0.5kw/day) but this little difference x 365 days...
2017-03-27 15_36_10-Domoticz.png
2017-03-27 15_36_10-Domoticz.png (31.95 KiB) Viewed 3938 times


Do you think it's possible to improve that ?

Re: Plugin - Homewizard

Posted: Tuesday 28 March 2017 20:10
by Wobbles
Updated to version 2.0.17

The energylink should be implemented but since I don't own one I didn't fully test it so please let me know if and how it works.

@brogen: I noticed the same. I think this is because of the switch I choose to use. I use the "usage (electric)" type which has log reports. Maybe the problem is solved when using the "Electric (instant + counter)" but this one lacks a nice log report. I am not sure if this is the cause but will test it on my test pi.

Re: Plugin - Homewizard

Posted: Wednesday 29 March 2017 8:00
by brogen67
Ok Wobbles, i'll wait your tests ^^.

[Edit]

Since this new version, I have an error message in my logs when I start Domoticz.

Code: Select all

 2017-03-29 10:00:16.658 Error: Expected: myVar = Domoticz.Device(Name="myDevice", Unit=0, TypeName="", Type=0, Subtype=0, Switchtype=0, Image=0, Options="", Used=1)
2017-03-29 10:00:16.659 Error: (HomeWizard) 'CDevice_init' failed 'TypeError':'argument 8 must be str, not dict'.
2017-03-29 10:00:16.659 Error: Device creation failed, Device object is not associated with a plugin. 

Re: Plugin - Homewizard

Posted: Wednesday 29 March 2017 20:23
by Wobbles
brogen67 wrote:Since this new version, I have an error message in my logs when I start Domoticz.

Code: Select all

 2017-03-29 10:00:16.658 Error: Expected: myVar = Domoticz.Device(Name="myDevice", Unit=0, TypeName="", Type=0, Subtype=0, Switchtype=0, Image=0, Options="", Used=1)
2017-03-29 10:00:16.659 Error: (HomeWizard) 'CDevice_init' failed 'TypeError':'argument 8 must be str, not dict'.
2017-03-29 10:00:16.659 Error: Device creation failed, Device object is not associated with a plugin. 
I think you are not on the latest Domoticz beta? Please try to update Domoticz to the latest beta and see if the error is gone.

Re: Plugin - Homewizard

Posted: Thursday 30 March 2017 10:42
by brogen67
Domoticz doesn't find any update, and I think I have the lastest version ^^
2017-03-30 10_40_57-Domoticz.png
2017-03-30 10_40_57-Domoticz.png (12.61 KiB) Viewed 3901 times

Re: Plugin - Homewizard

Posted: Monday 03 April 2017 16:25
by brogen67
Hi Wobbles,

Just a little improvement you can do it's with the somfy blinds. It's better if there are "Venitian blinds EU" because you can stop them.

Re: Plugin - Homewizard

Posted: Thursday 06 April 2017 21:58
by Wobbles
brogen67 wrote:Hi Wobbles,

Just a little improvement you can do it's with the somfy blinds. It's better if there are "Venitian blinds EU" because you can stop them.
I can change it but since I do not know the command to send to the Homewizard (if supported) it doesn't change anything. If you know the stop command please let me know and i'll change the switch.

Re: Plugin - Homewizard

Posted: Friday 07 April 2017 9:09
by brogen67
For me, I just changed the type of my homewizard device, and it worked.

But, for the command it's :

/sf/0/down
/sf/0/up
/sf/0/stop
2017-04-07 09_04_07-Domoticz.png
2017-04-07 09_04_07-Domoticz.png (13.94 KiB) Viewed 3849 times
2017-04-07 09_04_13-Domoticz.png
2017-04-07 09_04_13-Domoticz.png (26.27 KiB) Viewed 3849 times

Re: Plugin - Homewizard

Posted: Friday 07 April 2017 20:40
by Wobbles
I have updated the somfy switch. Please let me know if it works as expected.

Re: Plugin - Homewizard

Posted: Tuesday 25 April 2017 21:36
by treshed
Hi,

I just installed the plugin and everything works fine, only the energy and gas meter do not work, they do get some input, but only 10W on the electricity meter at any time during the day, and the gas meter does nothing.

Do I need to set something extra for these meters?

When I changed the settings for the P1 meter (Electricity/Gas) from without decimals to with decimals I got the following in the log:

2017-04-25 21:34:40.983 (HomeControl - Electricity) Updating device from 0:'8850.086;11169.32;0.002;0.001;0;0' to have values 0:'8850.086;11169.34;0.002;0.001;0;0'.
2017-04-25 21:34:40.983 (HomeControl) Update 0:'8850.086;11169.34;0.002;0.001;0;0' (HomeControl - Electricity)

Re: Plugin - Homewizard

Posted: Wednesday 26 April 2017 16:37
by treshed
It looks like the plugin gets the settings via http://<ip-adress of homewizard>/<password>/el/get/0/readings

This gives the following information:

status "ok"
version "3.38"
request
route "/el"
response
0
type "electricity"
tariff 1
consumed 8852.452
produced 0.002
1
type "electricity"
tariff 2
consumed 11173.841
produced 0.001
2
type "gas"
consumed 13821.025
timestamp 1493244000

There is no info for current consumption, so the domoticz shows produced, and because I do not have solar panels, this value will stay low. is there another way to get the current consumption value?