dZvents broken with 3.9165

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

dZvents broken with 3.9165

Post by poudenes »

Hi All,

After latest update the dZvent system is broken. Lots of set... commands are not working anymore for example:
I already reported.

setRGB

Code: Select all

Method setRGB is not available for device "Dressoir" (deviceType=Color Switch, deviceSubType=RGBWW). If you believe this is not correct, please report.
setDisco

Code: Select all

Method setDiscoMode is not available for device "Dressoir" (deviceType=Color Switch, deviceSubType=RGBWW). If you believe this is not correct, please report.
setKelvin

Code: Select all

Method setKelvin is not available for device "Dressoir" (deviceType=Color Switch, deviceSubType=RGBWW). If you believe this is not correct, please report.
dimTo

Code: Select all

Method dimTo is not available for device "Dressoir" (deviceType=Color Switch, deviceSubType=RGBWW). If you believe this is not correct, please report.
switchOff

Code: Select all

Method switchOff is not available for device "Dressoir" (deviceType=Color Switch, deviceSubType=RGBWW). If you believe this is not correct, please report.
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
devros
Posts: 183
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: dZvents broken with 3.9165

Post by devros »

Yes its afaik related to latest RGB bulbs code changes...
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: dZvents broken with 3.9165

Post by dannybloe »

Guess someone changed de devicetypes/hwtypes. Bah!
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: dZvents broken with 3.9165

Post by poudenes »

Here all the changes made. i added you so you knew there come some changes ;)

https://github.com/domoticz/domoticz/is ... -375955772
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: dZvents broken with 3.9165

Post by dannybloe »

Yeah.. I'm working on a fix right now.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: dZvents broken with 3.9165

Post by poudenes »

Let me know if i can do something to help and test.
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: dZvents broken with 3.9165

Post by dannybloe »

dzVents 2.4.2 is about to be merged after the checks are OK.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: dZvents broken with 3.9165

Post by dannybloe »

dzVents 2.4.2 is about to be merged after the checks are OK.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: dZvents broken with 3.9165

Post by dannybloe »

Ok, 2.4.2 is merged with development. Check it out.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
User avatar
McMelloW
Posts: 434
Joined: Monday 20 November 2017 17:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.1
Location: Harderwijk, NL
Contact:

Re: dZvents broken with 3.9165

Post by McMelloW »

dannybloe wrote: Monday 02 April 2018 15:58 Ok, 2.4.2 is merged with development. Check it out.
Anything new or just fixes?
Is this in an update or do you have to compile domoticz yourself?
Greetings McMelloW
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: dZvents broken with 3.9165

Post by dannybloe »

[2.4.2]
- Fixed RGBW device adapter
- Fixed EvoHome device adapter
- Changed param ordering opentherm gateway command (viewtopic.php?f=59&t=21620&p=170469#p170469)
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
devros
Posts: 183
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: dZvents broken with 3.9165

Post by devros »

hello,
on/off now works ok but setRGB seems broken

Code: Select all

domoticz.devices('Xiaomi_RGB').setRGB(118, 118, 118)
and in log...

Code: Select all

Error: Error opening url: http://127.0.0.1:8050/json.htm?type=command¶m=setcolbrightnessvalue&idx=385&hue=300&brightness=46.274509803922&iswhite=true
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: dZvents broken with 3.9165

Post by dannybloe »

That looks like an encoding issue. The code creates this url:

Code: Select all

/json.htm?type=command&param=setcolbrightnessvalue&idx=...
So as you can see the &param part got wrongly encoded. That looks like a Domoticz/OS/Whatever issue that is not dzVents related. I just checked the code in github and there the encoding is correct.
What OS are you using?
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
devros
Posts: 183
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: dZvents broken with 3.9165

Post by devros »

oh thanks, so its something else wrong :)
im on Ubuntu 16.04.4 LTS
banana pi M2 berry


anything what should i check ?
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: dZvents broken with 3.9165

Post by dannybloe »

I think I have fixed this in the upcoming 2.4.3. Well, not fixed it but worked around it. Looks like on some systems &param in a url is encoded to ¶m. Will be merged later today.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
devros
Posts: 183
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: dZvents broken with 3.9165

Post by devros »

great it works now :) (on, off commands)
but when tried setNightMode(), decreaseBrightness(), increaseBrightness()
i get

Code: Select all

EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2018-04-04 23:05:32.730 Error: Error opening url: http://127.0.0.1:8050/json.htm?param=nightlight&type=command&idx=514
url link looks ok when i use it manually with changed IP adress it works
in domoticz preferences is set 192.168.3.*,127.0.0.1

any idea whats wrong ?
thanks :)
yfands
Posts: 67
Joined: Monday 04 July 2016 10:16
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: dZvents broken with 3.9165

Post by yfands »

Version: 3.9174 beta
Build Hash: ac7daa5b
Compile Date: 2018-04-03 12:59:46
dzVents Version: 2.4.2


Hi,

Also my scene's with milights, all my lights turn red and I can't change them back, what's with the colored circles and txtbox ????

See picture. The orange box shows that all my lights are red after the latest update, tried to change them via the colored circles but all I ended
up was a black square and 0% luminosity. How do I reverse this with this o so not-friendly totally not understandable (sorry) circles interface.
It's not responding to my mouse clicks or value that I put in the txtBox, is there a manual how to operate this????
scene.jpg
scene.jpg (122.01 KiB) Viewed 1562 times


Regards
Frank
devros
Posts: 183
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: dZvents broken with 3.9165

Post by devros »

yfands wrote: Wednesday 04 April 2018 23:43 Version: 3.9174 beta
Build Hash: ac7daa5b
Compile Date: 2018-04-03 12:59:46
dzVents Version: 2.4.2


Hi,

Also my scene's with milights, all my lights turn red and I can't change them back, what's with the colored circles and txtbox ????

See picture. The orange box shows that all my lights are red after the latest update, tried to change them via the colored circles but all I ended
up was a black square and 0% luminosity. How do I reverse this with this o so not-friendly totally not understandable (sorry) circles interface.
It's not responding to my mouse clicks or value that I put in the txtBox, is there a manual how to operate this????

scene.jpg



Regards
Frank
But thats not dZvents problem, i saw some patches on github so maybe fix is allready prepared.. :)
yfands
Posts: 67
Joined: Monday 04 July 2016 10:16
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: dZvents broken with 3.9165

Post by yfands »

Hai devros,

Yup, you are right no dZvents. I was referring to the RGB issues maybe a common 'module' error.

Thanks, I will give github a try..
devros
Posts: 183
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: dZvents broken with 3.9165

Post by devros »

any idea what could be this problem?

when tried setNightMode(), decreaseBrightness(), increaseBrightness()
i get

Code: Select all

EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2018-04-04 23:05:32.730 Error: Error opening url: http://127.0.0.1:8050/json.htm?param=nightlight&type=command&idx=514
url link looks ok when i use it manually with changed IP adress it works
in domoticz preferences is set 192.168.3.*,127.0.0.1

any idea whats wrong ?
its dzVents bug, domoticz problem, or something on my side :D
thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest