@ysc
Wouldn’t it make sense to show the real state of the actor.
ON
OFF
NULL (never connected)
UNDEF (connection lost)
I always change in “switch.widget.js -> updateValue” the following line:
if (item.state != 'ON' && item.state != 'OFF') {
to
if (item.state != 'ON' && item.state != 'OFF' && item.state != 'NULL' && item.state != 'UNDEF') {