Page 1 of 1
strange behavious of dummy dimmers
Posted: Monday 09 November 2015 22:39
by Averell
Hi all,
Being new to Domoticz, I'm trying to set up my domoticz system as a control point for many devices "behind" MQTT. In order to do so, I created the dummy hardware, with several virtual sensors.
If I create a switch, then edit it, and turn it into a dimmer, the behaviour is wierd. If put the dimmer at 100%, after a second or 2, it hops back to 93%. In the MQTT message, I see the following:
{
"Battery" : 255,
"RSSI" : 7,
"dtype" : "Lighting 2",
"id" : "0014054",
"idx" : 5,
"name" : "test",
"nvalue" : 2,
"stype" : "AC",
"svalue1" : "14",
"switchType" : "Dimmer",
"unit" : 1
}
somehow the svalue is just 14, and it never gets higher, I can move between 0 and 14. I would expect between 0 and 100, and to see the switch stay at the level I set it.
Am I doing something wrong?
Averell
Re: strange behavious of dummy dimmers
Posted: Tuesday 19 January 2016 16:15
by mcmacpl
I observed exactly the same behaviour. if you set dummy dimmer level to 100% (by manually moving the slider), it is set automatically (after 2 seconds) to 93%. And if you set to 50%, it is set 47% (or something like that). Very weird. I think it is another hidden feature of domoticz.
In one topic I have read gizmocus' answer, that for some dimmers that operates with values 1-16, if you set this value to n, it is actually set to n-1. So maybe this issue is somehow connected. I mean: if you set 50% (which corresponds to 8) it is internally set to 7 (that corresponds to 47%).
Maybe there is some logical explanation, but I doubt
Re: strange behavious of dummy dimmers
Posted: Wednesday 20 January 2016 3:31
by nayr
I was looking into this today, I think I know what happens..
Dimmer svalue used to be 0-16, sometime that changed.. now its 0-100 and the dashboard shows anything through 0-99 just fine. Perhaps the dummy sliders are still 0-15.
However sometimes a dimmer will be set to 100% and its svalue will not be 100, it'll be 255.. I think this is throwing an exception and the dimmer is falling back to previous location.
Its not dummy dimmers, I am seeing the same thing w/Zwave dimmers.. made an the issue for the devs:
https://github.com/domoticz/domoticz/issues/365
Re: strange behavious of dummy dimmers
Posted: Thursday 21 January 2016 14:06
by Averell
To be honest, the entire dimmer implementation is a bit shaky in my opinion. Clearly built for klikaan klikuit, with just 16 values, over time it has been adapted to look different on the outside, but the underlying old implementation is still there. For me it is really a reason not to use Domoticz, I have a lot of dimmers, and I want it to work, not to have a lot of code around it to mimic the behaviour Domoticz should have.
Re: strange behavious of dummy dimmers
Posted: Sunday 14 February 2016 10:45
by bitjeverkeerd
I have the same issue with the slider that hops back to 93%, in the old Domoticz version (V2.2025) it was working fine.
In the old Domoticz version the slider 0-100% corresponds with 0-31 value.
But in the latest Domoticz version the slider 0-100% corresponds with 0-15 value??
Re: strange behavious of dummy dimmers
Posted: Sunday 14 February 2016 10:52
by bitjeverkeerd
Another addition to my last post: I'm using LigtwaveRF sliders with Dummy hardware (for Esp8266). I'm not sure of this issue exists for all sliders.
Re: strange behavious of dummy dimmers
Posted: Tuesday 16 February 2016 8:53
by nayr
update to beta, dummy dimmers now have 100 steps instead of 15.. much more usable.
You might have to re-create your devices for them to work correctly, I made all new ones..
Re: strange behavious of dummy dimmers
Posted: Friday 19 February 2016 17:40
by bitjeverkeerd
nayr wrote:update to beta, dummy dimmers now have 100 steps instead of 15.. much more usable.
You might have to re-create your devices for them to work correctly, I made all new ones..
I did an update to the latest beta version of domoticz. Now i have sliders with 100 steps
The only strange thing is that when i move the slider to maximum in the webbrowser (firefox), then the slider jumps back to 99%. When i move the slider with the domoticz app it works perfect (remains 100%).
Re: strange behavious of dummy dimmers
Posted: Friday 19 February 2016 23:03
by Nautilus
nayr wrote:update to beta, dummy dimmers now have 100 steps instead of 15.. much more usable.
You might have to re-create your devices for them to work correctly, I made all new ones..
Hi, I had couple of dummy dimmers that operated between 0-31 as far as it comes to sValues. Status was always on / off. Now after update the status is either Off or Set Level 0-100%. sValues still go from 0-31 (even after recreating the switches). When setting up a switch there's first of all the "switch type", dimmer in this case, and then the "type". Should I select something specific as the type to have the sValues run from 0-100? I wasn't able to figure how to extract the number from the "Set Level X%" though I guess that would be doable as well...