Page 1 of 2

dZvents broken with 3.9165

Posted: Monday 02 April 2018 11:25
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.

Re: dZvents broken with 3.9165

Posted: Monday 02 April 2018 12:13
by devros
Yes its afaik related to latest RGB bulbs code changes...

Re: dZvents broken with 3.9165

Posted: Monday 02 April 2018 12:26
by dannybloe
Guess someone changed de devicetypes/hwtypes. Bah!

Re: dZvents broken with 3.9165

Posted: Monday 02 April 2018 13:33
by poudenes
Here all the changes made. i added you so you knew there come some changes ;)

https://github.com/domoticz/domoticz/is ... -375955772

Re: dZvents broken with 3.9165

Posted: Monday 02 April 2018 13:36
by dannybloe
Yeah.. I'm working on a fix right now.

Re: dZvents broken with 3.9165

Posted: Monday 02 April 2018 14:57
by poudenes
Let me know if i can do something to help and test.

Re: dZvents broken with 3.9165

Posted: Monday 02 April 2018 15:30
by dannybloe
dzVents 2.4.2 is about to be merged after the checks are OK.

Re: dZvents broken with 3.9165

Posted: Monday 02 April 2018 15:30
by dannybloe
dzVents 2.4.2 is about to be merged after the checks are OK.

Re: dZvents broken with 3.9165

Posted: Monday 02 April 2018 15:58
by dannybloe
Ok, 2.4.2 is merged with development. Check it out.

Re: dZvents broken with 3.9165

Posted: Monday 02 April 2018 16:26
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?

Re: dZvents broken with 3.9165

Posted: Monday 02 April 2018 17:08
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)

Re: dZvents broken with 3.9165

Posted: Monday 02 April 2018 21:44
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

Re: dZvents broken with 3.9165

Posted: Tuesday 03 April 2018 8:20
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?

Re: dZvents broken with 3.9165

Posted: Tuesday 03 April 2018 8:57
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 ?

Re: dZvents broken with 3.9165

Posted: Tuesday 03 April 2018 21:49
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.

Re: dZvents broken with 3.9165

Posted: Wednesday 04 April 2018 23:16
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 :)

Re: dZvents broken with 3.9165

Posted: Wednesday 04 April 2018 23:43
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 1584 times


Regards
Frank

Re: dZvents broken with 3.9165

Posted: Wednesday 04 April 2018 23:48
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.. :)

Re: dZvents broken with 3.9165

Posted: Wednesday 04 April 2018 23:52
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..

Re: dZvents broken with 3.9165

Posted: Friday 06 April 2018 11:21
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