Selector switch limited?

Moderator: leecollings

Post Reply
Marque1968
Posts: 60
Joined: Tuesday 03 April 2018 18:41
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Selector switch limited?

Post 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"
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Selector switch limited?

Post 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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
jbr79
Posts: 20
Joined: Saturday 17 October 2015 22:23
Target OS: Linux
Domoticz version: 4.10659
Contact:

Re: Selector switch limited?

Post 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.
joostvanmeurs
Posts: 2
Joined: Wednesday 30 January 2019 22:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Selector switch limited?

Post by joostvanmeurs »

For me the same problem!
kimot
Posts: 105
Joined: Saturday 25 November 2017 17:18
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Czech Rep.
Contact:

Re: Selector switch limited?

Post 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.
RPi2 Domoticz v 4.10717
10 x Sonoff Basic - ESPeasy
1 x Wemos D1 - ESPeasy
1 x Shelly Plus Plug S
1 x Sonoff S26 - ESPeasy
1 x Shelly 1
1 x MySensors HC-SR04
1 x MySenosrs wifi gateway
1 x RFLink
4x Cam IPC-T240H
darrepac
Posts: 133
Joined: Tuesday 04 February 2014 21:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Isère, France
Contact:

Re: Selector switch limited?

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

Who is online

Users browsing this forum: No registered users and 1 guest