strange behavious of dummy dimmers

Moderator: leecollings

Post Reply
Averell
Posts: 5
Joined: Monday 22 September 2014 13:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

strange behavious of dummy dimmers

Post 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
mcmacpl
Posts: 11
Joined: Friday 15 January 2016 21:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: strange behavious of dummy dimmers

Post 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 :-)
User avatar
nayr
Posts: 354
Joined: Tuesday 11 November 2014 18:42
Target OS: Linux
Domoticz version: github
Location: Denver, CO - USA
Contact:

Re: strange behavious of dummy dimmers

Post 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
Debian Jessie: CuBox-i4 (Primary) w/Static Routed IP and x509 / BeagleBone with OpenSprinkler / BeagleBone Planted Aquarium / 3x Raspbery Pi2b GPIO Slaves
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
Averell
Posts: 5
Joined: Monday 22 September 2014 13:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: strange behavious of dummy dimmers

Post 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.
User avatar
bitjeverkeerd
Posts: 30
Joined: Monday 13 April 2015 20:39
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: strange behavious of dummy dimmers

Post 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??
User avatar
bitjeverkeerd
Posts: 30
Joined: Monday 13 April 2015 20:39
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: strange behavious of dummy dimmers

Post 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.
User avatar
nayr
Posts: 354
Joined: Tuesday 11 November 2014 18:42
Target OS: Linux
Domoticz version: github
Location: Denver, CO - USA
Contact:

Re: strange behavious of dummy dimmers

Post 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..
Debian Jessie: CuBox-i4 (Primary) w/Static Routed IP and x509 / BeagleBone with OpenSprinkler / BeagleBone Planted Aquarium / 3x Raspbery Pi2b GPIO Slaves
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
User avatar
bitjeverkeerd
Posts: 30
Joined: Monday 13 April 2015 20:39
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: strange behavious of dummy dimmers

Post 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 :D
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%).
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: strange behavious of dummy dimmers

Post 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...
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 0 guests