I’d like to visualise some of my entities as non-interactive switches.
I’ve made some scripts, to know if an integration started successfully or if my various devolo PLC are connected.
It is using MQTT to send the results (i.e.: on/off)
I’d like to see them in an entities card as switches. Which I can of course but then it becomes interactive switches which I don’t want : If my script returns that my “living room” devolo is off, it is off, the user can’t switch it on through HA.
Is there a proper way to configure this?
P.S.: What I’ve done so far : add an input boolean in my configuration.yaml. Display that one, instead of the script result. And in Node-RED, as soon as this input boolean is changing, I put it back to the “real” value returned by the script. But the result is a flickering switch, if you switch it through the interface, Node-RED reset it in a fraction of a second but it is visible.