Hey folks, i ran into the same issue, but things might be a bit different and possibly this is a bug:
Steps: went into Setup->Hardware and created a Dummy switch, gave it a name, pressed OK and the notification tells me it has been created.
(nb it says i should be looking for it in the devices, not switches) <-probably legacy code
At that moment the switch shows up in the Devices list (used, for some reason, maybe that's new) and like expected with a "used" switch it shows up at the bottom of the "Switches" page.
I went there, clicked Edit on the new switch and set the following:
Switch Type: Selector
Selector Style: Button set
gave it three level names: Off, Low, High and kept the default level values.
Pressed Save.
After that, whichever browser or device i use it doesn't show up at the bottom of the Switches page any longer.
Curious thing is i can still see it in Setup->Devices and if i exploit the "edit-url" like "
https://mydomain.tld:9191/#/Devices/IDX/LightEdit", i can still edit it. Also the device DOES show up in the app on my phone in the switches section. There, if i set it as a favorite, it DOES show up in the browsers on the Dashboard, but still nothing in the Switches page.
None of the mentioned tricks work;
- restarting domoticz
- clearing browser caches
- trying different browsers
- changed the theme to default
As i was writing these steps down i figured the "trick" of making it a favorite via the app might work around this(and it did partially), so there is no immediate need to resolve this at this moment because i can work with that for now.
Going further, i noticed in the app on my phone it mentioned something (to late now to remember now) like it's state was undefined. Once (via the dashboard) i set the selector switch to "Off" it DOES appear in the switches page!
TLDR: i think the switches page does not show any (newly) created selector switches for which no initial state is defined. This might be a bug in the code that modifies the switch from a normal on/off into a selector switch. I guess that helps the devs
So actually i was able to resolve this myself, but who knows somebody else might run into this issue, the obvious trick is to set it as a fav in the app on your phone, select a state through the dashboard and your switch now appears like expected. I verified that you can remove it as a favorite after that and things behave as expected.