Weird Z-Wave Dimmer Values

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post
Post Reply
User avatar
kivster
Posts: 30
Joined: Thursday 08 January 2015 22:59
Target OS: Linux
Domoticz version: beta
Location: United Kingdom
Contact:

Weird Z-Wave Dimmer Values

Post by kivster » Monday 23 February 2015 13:14

Hello,

Recently I've been having some issues with dimmer values and sliders. I think this started with the update which changed the behaviour of Zwave dimmers, but I'm not sure:
- Changed: ZWave lights/dimmers can now be dimmed in percentage from 0..100 (Thanks to Gilles)

I have a table lamp connected to a Popp dimmer which previously would show 0% as off and 100% as fully on. However, it is now showing 255% as fully on and sparodic values (6%, 90% or 93%) as off:

Image

Image

Code: Select all

2015-02-23 10:47:51	Set Level: 90 %, Level: 90 %
2015-02-23 10:47:51	Off
2015-02-23 10:47:13	On
2015-02-23 10:47:13	Set Level: 6 %, Level: 6 %
2015-02-23 10:47:13	On, Level: 255 %
2015-02-23 10:46:05	Off
2015-02-23 10:46:05	Set Level: 93 %, Level: 93 %
2015-02-23 10:46:05	Off
2015-02-23 10:46:03	On
2015-02-23 10:46:03	Set Level: 6 %, Level: 6 %
2015-02-23 10:46:03	On, Level: 255 %
2015-02-23 10:44:33	Off
2015-02-23 10:44:33	Set Level: 93 %, Level: 93 %
2015-02-23 10:44:33	Off

2015-02-23 10:46:03.000 User: admin initiated a switch command
2015-02-23 10:46:03.002 OpenZWave: Domoticz has send a Switch command!, Level: 255, HomeID: 25487475, NodeID: 6 (0x06)
2015-02-23 10:46:03.005 (ZWave) Lighting 2 (Living Room Lamp)
2015-02-23 10:46:03.059 (ZWave) Lighting 2 (Living Room Lamp)
2015-02-23 10:46:03.381 (ZWave) Lighting 2 (Living Room Lamp)
2015-02-23 10:46:05.549 User: admin initiated a switch command

2015-02-23 10:46:05.552 OpenZWave: Domoticz has send a Switch command!, Level: 0, HomeID: 25487475, NodeID: 6 (0x06)
2015-02-23 10:46:05.554 (ZWave) Lighting 2 (Living Room Lamp)
2015-02-23 10:46:05.607 (ZWave) Lighting 2 (Living Room Lamp)
2015-02-23 10:46:05.926 (ZWave) Lighting 2 (Living Room Lamp)
My central heating switch is also showing 255% as on:

Code: Select all

2015-02-23 10:45:01	On, Level: 255 %
2015-02-23 10:35:02	Off
2015-02-23 10:29:20	On, Level: 255 %
Image

I understand that the 255% is the binary value of 255 being confused as the percentage. I'm more confused about the off values.
Raspberry Pi + Domoticz + Aeon Labs Z-Wave USB
1x Aeon multi-sensor, 1x Popp dimmer, 1x Fibaro dimmer, HRT4-ZW thermostat/ASR-ZW receiver, home-made oil tank monitor - http://www.domoticz.com/forum/viewtopic.php?f=38&t=7275

User avatar
kivster
Posts: 30
Joined: Thursday 08 January 2015 22:59
Target OS: Linux
Domoticz version: beta
Location: United Kingdom
Contact:

Re: Weird Z-Wave Dimmer Values

Post by kivster » Tuesday 24 February 2015 23:06

It seems micha_pr is also having a similar problem with dimmer values - http://www.domoticz.com/forum/viewtopic.php?f=6&t=5513
Raspberry Pi + Domoticz + Aeon Labs Z-Wave USB
1x Aeon multi-sensor, 1x Popp dimmer, 1x Fibaro dimmer, HRT4-ZW thermostat/ASR-ZW receiver, home-made oil tank monitor - http://www.domoticz.com/forum/viewtopic.php?f=38&t=7275

Sycorax
Posts: 6
Joined: Tuesday 24 February 2015 20:34
Target OS: OS X
Domoticz version: V3.4834
Location: Eelde, The Netherlands
Contact:

Re: Weird Z-Wave Dimmer Values

Post by Sycorax » Wednesday 25 February 2015 0:11

Here also weird dimmer behavior since last stable update. Normally I have two dimmers on 42% and all is fine. But now with 42% I can barely see the light burn, and when I look in my Z-Wave Expert menu(RazBerry) the dimmer is 5%. If I increase the slider in Domoticz to 100% then in the Z-Wave menu its changed to 24%. So its dark in our living room. Sounds romantic but my wife is not happy :(
-- Apple Mini I5 -- Rapberry PI B+ -- Razberry Z-Wave + via LAN interface (HTTP) -- 25 Z-Wave devices --RFXCOM RFXtrx433E firmware 236 --

User avatar
Dnpwwo
Posts: 588
Joined: Sunday 23 March 2014 10:00
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Weird Z-Wave Dimmer Values

Post by Dnpwwo » Wednesday 25 February 2015 8:07

@kivster, It looks as if the recent changes to the system around dimmers have broken the floorplan code for some devices (which is separate to the other pages for technical reasons). My personal setup was broken in that area until last night so I haven't had time to look at what needs fixing.

From your screenshots it looks like percentage details have been removed from the display for some device types which should be relatively straight forward to do but from a 30 second test I believe the slider is broken on floorplans as well. That may take longer.

What your central heating show before? Was it just 0% or 100% or did it show other vales?

I will look into it further tonight.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw

User avatar
Dnpwwo
Posts: 588
Joined: Sunday 23 March 2014 10:00
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Weird Z-Wave Dimmer Values

Post by Dnpwwo » Wednesday 25 February 2015 12:34

Interesting, code back from Domoticz web server now seemingly has some anomolies. The MaxDimLevel is 100 but the Level is 255. I believe that this is the underlying problem. If the MaxDimLevel was 255 then the Level would scale that to a percentage, or the Level could be up to MaxDimLevel, the current values being returned make a generic implementation hard.

Code: Select all

AddjMulti: 1
AddjMulti2: 1
AddjValue: 0
AddjValue2: 0
BatteryLevel: 255
CustomImage: 0
Data: "Off"
Favorite: 0
HardwareID: 2
HardwareName: "OpenZWave"
HaveDimmer: true
HaveGroupCmd: false
HaveTimeout: false
ID: "0001A01"
Image: "Light"
IsSubDevice: false
LastUpdate: "2015-02-25 21:14:41"
Level: 255
LevelInt: 255
MaxDimLevel: 100
Name: "Hall Lights"
Notifications: "false"
PlanID: "1"
Protected: false
ShowNotifications: true
SignalLevel: 7
Status: "Off"
StrParam1: ""
StrParam2: ""
SubType: "ZWave"
SwitchType: "Dimmer"
SwitchTypeVal: 7
Timers: "false"
Type: "Lighting 2"
TypeImg: "dimmer"
Unit: 1
Used: 1
UsedByCamera: false
XOffset: "627"
YOffset: "284"
idx: "88"
@gizmocuz, what is the expected behavior here?

Aside: This is a mains powered device but the BatteryLevel fluctuates between 100 and 255. Thoughts?
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw

User avatar
kivster
Posts: 30
Joined: Thursday 08 January 2015 22:59
Target OS: Linux
Domoticz version: beta
Location: United Kingdom
Contact:

Re: Weird Z-Wave Dimmer Values

Post by kivster » Monday 23 March 2015 16:12

I recently bought a new Raspberry Pi and decided to start from scratch. I'm still having weird dimmer values in both the stable and beta versions, there are a few different odd behaviours:

Currently my lamp is "off" and the value is 0, but the dimmer slider is on the far right. If I turn the lamp on the slider stays to the right. If I turn the lamp off using the slider (drag slider to the left) it turns the lamp off, but then 5 seconds later the slider pings over to the right again.

Image


If I switch the lamp on, move the slider and then switch it off the slider stays where it was (instead of going to the left):

Image


Sometimes when switching the lamp on it shows 99% instead of 100%:

Image

Any ideas? The lamp is pretty much unusable as it is...

(I removed the "solved" flag as I'm not sure we have solved this yet?)
Raspberry Pi + Domoticz + Aeon Labs Z-Wave USB
1x Aeon multi-sensor, 1x Popp dimmer, 1x Fibaro dimmer, HRT4-ZW thermostat/ASR-ZW receiver, home-made oil tank monitor - http://www.domoticz.com/forum/viewtopic.php?f=38&t=7275

User avatar
kivster
Posts: 30
Joined: Thursday 08 January 2015 22:59
Target OS: Linux
Domoticz version: beta
Location: United Kingdom
Contact:

Screencast of the problem

Post by kivster » Sunday 29 March 2015 18:05

This problem is quite hard to explain with screenshots and text, so I've made a screencast of Domoticz showing the weird dimmer behaviour.

The 30 second video can be seen here - http://youtu.be/r1jYI7iXltg

Here is an explanation of what you are seeing:

0 seconds - The lamp is off but the dimmer slider is set at almost full (93%)

3 seconds - The lamp is switched on to 100%, but the dimmer slider drops to the left (6%)

7 seconds - The lamp is switched off but the dimmer slider jumps to almost full (93%)

9 seconds - the log of the values.

15 seconds - The lamp is off with the slider in the wrong place. I drag the Slider to the correct location (0%)...

23 seconds - The slider jumps back to 93% by itself with no action from the user. The lamp is still off.
Raspberry Pi + Domoticz + Aeon Labs Z-Wave USB
1x Aeon multi-sensor, 1x Popp dimmer, 1x Fibaro dimmer, HRT4-ZW thermostat/ASR-ZW receiver, home-made oil tank monitor - http://www.domoticz.com/forum/viewtopic.php?f=38&t=7275

User avatar
kivster
Posts: 30
Joined: Thursday 08 January 2015 22:59
Target OS: Linux
Domoticz version: beta
Location: United Kingdom
Contact:

Re: Weird Z-Wave Dimmer Values

Post by kivster » Monday 27 April 2015 14:37

This problem is still around and it looks like LightsController.js can't get the correct value 'scrollHeight' for the slider:

Code: Select all

caught TypeError: Cannot read property 'scrollHeight' of undefined
/js/angular.min.js:103 TypeError: Cannot read property 'search' of undefined
    at rgb2hex (domoticz.js:1599)
    at Object.<anonymous> (/app/LightsController.js:1642)
    at Function.m.extend.each (jquery-1.11.2.min.js:2)
    at Object.$.ajax.success (/app/LightsController.js:1360)
    at j (jquery-1.11.2.min.js:2)
    at Object.k.fireWith [as resolveWith] (jquery-1.11.2.min.js:2)
    at x (jquery-1.11.2.min.js:4)
    at b (jquery-1.11.2.min.js:4)
    at Object.send (jquery-1.11.2.min.js:4)
    at Function.m.extend.ajax (jquery-1.11.2.min.js:4)
17(program):52 Uncaught TypeError: Cannot read property 'scrollHeight' of undefined
(index):52 Uncaught TypeError: Cannot read property 'scrollHeight' of undefined
VM265:52 Uncaught TypeError: Cannot read property 'scrollHeight' of undefined
It looks like 'scrollheight' is undefined and hitting this code block.

Code: Select all

                                $.each(data.result, function(i,item){^M
                                        id="#lightcontent #" + item.idx;^M
                                        var obj=$(id);^M
                                        if (typeof obj != 'undefined') {^M
                                                if ($(id + " #name").html()!=item.Name) {^M
                                                        $(id + " #name").html(item.Name);^M
                                                }^M
                                                var isdimmer=false;^M
                                                var img="";^M
                                                var img2="";^M
                                                var img3="";^M

Any ideas?
Raspberry Pi + Domoticz + Aeon Labs Z-Wave USB
1x Aeon multi-sensor, 1x Popp dimmer, 1x Fibaro dimmer, HRT4-ZW thermostat/ASR-ZW receiver, home-made oil tank monitor - http://www.domoticz.com/forum/viewtopic.php?f=38&t=7275

User avatar
kivster
Posts: 30
Joined: Thursday 08 January 2015 22:59
Target OS: Linux
Domoticz version: beta
Location: United Kingdom
Contact:

Re: Weird Z-Wave Dimmer Values

Post by kivster » Saturday 27 June 2015 15:34

This is still a problem for me after a fresh install of domoticz. Anyone else experienced this?
Raspberry Pi + Domoticz + Aeon Labs Z-Wave USB
1x Aeon multi-sensor, 1x Popp dimmer, 1x Fibaro dimmer, HRT4-ZW thermostat/ASR-ZW receiver, home-made oil tank monitor - http://www.domoticz.com/forum/viewtopic.php?f=38&t=7275

User avatar
kivster
Posts: 30
Joined: Thursday 08 January 2015 22:59
Target OS: Linux
Domoticz version: beta
Location: United Kingdom
Contact:

Re: Weird Z-Wave Dimmer Values

Post by kivster » Sunday 12 July 2015 18:32

I've dissociated all devices with the controller, done a fresh install of the latest stable then upgraded to the latest beta. I then associated all devices again. I've also tried every setting combination on the Popp dimmer. I'm still getting this problem.

In fact it is worse than before. When I switch the lamp off the slider jumps to 99% a few seconds later (the physical lamp stays off). When I switch the lamp on to 100%, the slider jumps to 4% a few seconds later (the physical lamp stays at 100%).

This happens in any browser. Using the browser's debugging, I can see the value for the slider position change right in front of my eyes without touching anything.

I noticed in a recent beta that there were "Zwave dimmer fixes". They don't appear to have addressed this issue. Is there any more information I can collect to help figure out what is going on?
Raspberry Pi + Domoticz + Aeon Labs Z-Wave USB
1x Aeon multi-sensor, 1x Popp dimmer, 1x Fibaro dimmer, HRT4-ZW thermostat/ASR-ZW receiver, home-made oil tank monitor - http://www.domoticz.com/forum/viewtopic.php?f=38&t=7275

pluggin
Posts: 66
Joined: Tuesday 26 May 2015 22:49
Target OS: Raspberry Pi
Domoticz version:
Location: Argentina
Contact:

Re: Weird Z-Wave Dimmer Values

Post by pluggin » Thursday 27 August 2015 19:30

Any fix for this issue? I´m experimented the same problem here.
From february up to day the problem persist and there isn't a solution yet:(
Regards
Razberry + 4 Eversrping HSM02 + 2 Aeotec Multi-Sensor + 1 Aeotec Micro Dimmer + 4 Aeotec Micro Smart Energy Switch, 2nd + 1 Remotec ZXT-120 + 1 Aeotec Smart Energy Monitor + 1 Everspring SE812 indoor Siren + 2 fibaro motion sensor + Aeotec water sensor

User avatar
gizmocuz
Posts: 8496
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: Weird Z-Wave Dimmer Values

Post by gizmocuz » Thursday 27 August 2015 19:35

pluggin wrote:Any fix for this issue? I´m experimented the same problem here.
From february up to day the problem persist and there isn't a solution yet:(
Regards
this is an opensource project, please contribute!
Quality outlives Quantity!

pluggin
Posts: 66
Joined: Tuesday 26 May 2015 22:49
Target OS: Raspberry Pi
Domoticz version:
Location: Argentina
Contact:

Re: Weird Z-Wave Dimmer Values

Post by pluggin » Friday 28 August 2015 2:22

gizmocuz wrote:
pluggin wrote:Any fix for this issue? I´m experimented the same problem here.
From february up to day the problem persist and there isn't a solution yet:(
Regards
this is an opensource project, please contribute!
I will like to contribute but I'm not an expert programmer. If I could do any other thing for contribute please let me know. I be glad to help-
Regards
Razberry + 4 Eversrping HSM02 + 2 Aeotec Multi-Sensor + 1 Aeotec Micro Dimmer + 4 Aeotec Micro Smart Energy Switch, 2nd + 1 Remotec ZXT-120 + 1 Aeotec Smart Energy Monitor + 1 Everspring SE812 indoor Siren + 2 fibaro motion sensor + Aeotec water sensor

Replayman
Posts: 3
Joined: Saturday 29 October 2016 21:25
Target OS: Windows
Domoticz version:
Contact:

Re: Weird Z-Wave Dimmer Values

Post by Replayman » Saturday 29 October 2016 21:27

Still have this issue with the first zwave device I am trying to include in Domoticz... not a good way to say hello to a newcommer coming from Vera system ;)

Does anybody found a way to solve this ?

Some are telling this is an opensource project and we can help. How ?

EDIT : just updated to today stable release 3.5834 , bug still present...

User avatar
gizmocuz
Posts: 8496
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: Weird Z-Wave Dimmer Values

Post by gizmocuz » Sunday 30 October 2016 9:30

@Replayman, Not a good way to make your first post perhaps ?

The expected behaviour:
- the widget should always show the last dim level, this way you know then when you turn on the switch at what dim level it will be
- this is also the zwave behaviour, setting it to a dim level of 60%, sending off (0) and sending a on (255) will return to 60%
- dragging the slider to off, should just send and off (0) to the node, we keep the dim level, you could also turn it off by pressing the icon

Indeed in the above movie, after a refresh (each 10 seconds), switching on the dimmer is not working correctly

There have been to many devs making patches on dim levels lately, someone will have to dig into the issue and debug
Quality outlives Quantity!

Replayman
Posts: 3
Joined: Saturday 29 October 2016 21:25
Target OS: Windows
Domoticz version:
Contact:

Re: Weird Z-Wave Dimmer Values

Post by Replayman » Monday 31 October 2016 22:42

Thanks for your reply !
Sorry if my previous post seems inappropriate, that was not the purpose of it.

About the issue, I made some more tests.

What it seems to happen is that command is sent to dimmer, and just after that a "pull" may be done by Domoticz or the ZWave stack to the dimmer.
As this dimmer is slowly going to the set level, the poll gets an intermediate value.
Example :
- Dimmer is at 0 (off)
- Domoticz send a "set 42" value.
- Dimmer start to increase light level from 0 to 42.
- Domoticz ask the level of the dimmer.
- The dimmer answer Domoticz with "I am at level 1" (for example, value differs at each try. And this step is to be confirmed if it is Domoticz that askes this).
- The dimmer continue to increase the light level until it reaches 42.
- Domoticz never know the new level (I should have to setup the poll function, but I prefer helping to solve this).

Second example :
- Dimmer is at 42 (Domoticz still show 1 as there is no poll setup for this dimmer).
- Domoticz send a "set 24" value.
- Dimmer start to decrease light level from 42 to 24.
- Domoticz ask the level of the dimmer.
- The dimmer answer Domoticz with "I am at level 36" (Sure, it is in the way to the set level...)
- The dimmer continue to decease the light level until it reaches 24.
- Domoticz never know the new level and still show 36.

So, a solution should be:
- If the poll is done by Domoticz, adding a "poll delay" config param to tell Domoticz to wait before doing the pull.
- If the poll is donc by ZWave stack, adding a "poll after action" config param to tell Domoticz to do another poll a few ms after the action to get the real value of the dimmer.

The 255 "On" status works well and the dimmer understands well the "go on to last level you got before being turned off". (but the poll following the ON request is doing the same bug as shown above).
The percentage works well with my dimmers (Evolve).
The slider to 0 is working well, it set the dimmer off (I have a led on the dimmer confirming this).

I can spend a little time to dig in the issue to make this working well for everybody if you want, and to make some cleanup of the patches you have from other devs. Do you have an entry point to start this?

User avatar
gizmocuz
Posts: 8496
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: Weird Z-Wave Dimmer Values

Post by gizmocuz » Tuesday 01 November 2016 8:55

I dont think domoticz is doing any polling.
Polling is done by the zwave stack, in this case OZW.
I See your point, but i would have expected your light bulb to send at least the last value it has put itself on
I suspect this slow behaviour is a configuration option ? As all my dimmers directly go to the specified value, and i do not see this problem...
Quality outlives Quantity!

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests