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
But upon defining the slider, I got:
and no way to get to the individual values.
Has anyone got an idea how to come to the values level?