Slider Widget: not the expected behaviour on Input PSON

Hi I have defined an input resource like that:

  thing["tristates"] << [](pson& in) {
    Tasmo1.Relay1Out = in["Relay1.1Out"];
    Tasmo1.Relay2Out = in["Relay1.2Out"];  
    Tasmo1.Relay3Out = in["Relay1.3Out"];
    Tasmo1.Relay4Out = in["Relay1.4Out"];
    Tasmo2.Relay1Out = in["Relay2.1Out"];
    Tasmo2.Relay2Out = in["Relay2.2Out"];  
    Tasmo2.Relay3Out = in["Relay2.3Out"];
    Tasmo2.Relay4Out = in["Relay2.4Out"];
    Tasmo2.Relay1Out = in["Relay3.1Out"];
    Tasmo3.Relay2Out = in["Relay3.2Out"];  
    Tasmo3.Relay3Out = in["Relay3.3Out"];
    Tasmo3.Relay4Out = in["Relay3.4Out"];
    Tasmo4.Relay1Out = in["Relay4.1Out"];
    Tasmo4.Relay2Out = in["Relay4.2Out"]; 
    Tasmo4.Relay3Out = in["Relay4.3Out"];
    Tasmo4.Relay4Out = in["Relay4.4Out"];
  };

(All values are bytes)
I wanted to define sliders to chose between 0 = off, 1 = auto, 2 =on.
Lacking radio buttons in thinger.io :frowning_face:
But upon defining the slider, I got:
image
and no way to get to the individual values.
:frowning_face:
Has anyone got an idea how to come to the values level?

Finally I got a working, but it is quite an awful solution:
Inputs do not seem to be definable as multiple resources.
You must define one resource per switch. :frowning_face:
…and be tricky if you need to define a tri-state switch.
Create a slider from 0 to 2 in steps by one.
Define a description OFF___________Auto___________ON
that is as large as your field.
image

The code behind **each** switch is:
      thing["tris1.1"]  = [](pson & in, pson & out)
    {
      if (in.is_empty())
      {
        in = Tasmo1.Relay1Out;
      } else {
        Tasmo1.Relay1Out = in;
      }
      out = Tasmo1.Relay1Out;
    };

changing the values for the resource and the byte variable.
And -of course- write the logic to override the automatic value, if the tri-state switch is on 0 or 2.
Quite a lot of work for a simple switch…