Page 1 of 1

Selector switch limited?

Posted: Saturday 03 November 2018 14:14
by Marque1968
I have created a virtual switch, made it a selector switch (selector style: select menu) and added the 140 possible values, each with its own json call. However, all values above level 250 are ignored and level 110 is returned instead.

I intent to use this selector to daily enter my weight (my wife want to keep tabs) so I made this one to enter the value and have it affect an other virtual value, that gives me a chart and is displayed in Dashticz.

I assume this has to do with the fact that this is a value that has a maximum of 256 values (0-255), and as Domoticz only goes in steps of 10, in stead of 1, only 26 values are possible in stead of 256.

Is there a way to overcome this (preferably without me having to re-enter all 140 values and 140 json url's)?

Marque.

Code: Select all

example:
level 00 = level name "84.0" and action is "http://94.XX.XX.XX:XXXX/json.htm?type=command&param=udevice&idx=153&nvalue=0&svalue=84.0"
level 10 = level name "84.1" and action is "http://94.XX.XX.XX:XXXX/json.htm?type=command&param=udevice&idx=153&nvalue=0&svalue=84.1"
level 20 = level name "84.2" and action is "http://94.XX.XX.XX:XXXX/json.htm?type=command&param=udevice&idx=153&nvalue=0&svalue=84.2"
.
.
.
level 1370 = level name "97.7" and action is "http://94.XX.XX.XX:XXXX/json.htm?type=command&param=udevice&idx=153&nvalue=0&svalue=97.7"
level 1380 = level name "97.8" and action is "http://94.XX.XX.XX:XXXX/json.htm?type=command&param=udevice&idx=153&nvalue=0&svalue=97.8"
level 1390 = level name "97.9" and action is "http://94.XX.XX.XX:XXXX/json.htm?type=command&param=udevice&idx=153&nvalue=0&svalue=97.9"

Re: Selector switch limited?

Posted: Saturday 03 November 2018 14:43
by waaren
Marque1968 wrote: Saturday 03 November 2018 14:14 I have created a virtual switch, made it a selector switch (selector style: select menu) and added the 140 possible values, each with its own json call. However, all values above level 250 are ignored and level 110 is returned instead.

I intent to use this selector to daily enter my weight (my wife want to keep tabs) so I made this one to enter the value and have it affect an other virtual value, that gives me a chart and is displayed in Dashticz.
Just a tought...
Use a setpoint device to enter the value of your weight and use a dzVents script to copy that value to the device used for the chart.

Re: Selector switch limited?

Posted: Sunday 13 January 2019 12:33
by jbr79
Although this post is old, I just came across the same behavior when setting up a Virtual Selector Switch. Was checking the forum to see if this was a known issue. All level up to 250 seem to work, but above that, the selector fails and defaults to the last level in my case (380).

Looks like a bug which is easy to reproduce.

Re: Selector switch limited?

Posted: Thursday 31 January 2019 13:11
by joostvanmeurs
For me the same problem!

Re: Selector switch limited?

Posted: Sunday 24 February 2019 18:53
by kimot
Can I ask what case do you need so many levels?
Maybe it could be replaced by setpoint or dimmer in combination with scripts.

Re: Selector switch limited?

Posted: Saturday 23 January 2021 21:07
by darrepac
On my side I am interested to know how you chart a selector switch (would be nice to have it by default like in some basic switch)