I have a heating system where I have the status of the boiler, burner and the pump connected to small light bulbs. Boiler ON, Boiler Fault, Burner ON, Burner Fault, Pump ON and Pump Fault. These uses Vac each coming from the heating system.
I am using three two channel zigbee switches with S1 and S2 sensing contact to simulate the status of these signals to hubitat.
for example: the Vac of the boiler ON is connected to S1, the Boiler fault is connected to S2. So when i turn on the boiler the first channel of the switch will turn on. when a fault happens the second channel will be turned on.
On Hubitat I have created these three devices and i am using the switch attribute to show the status of these devices.
I have a challenge:
How can I change the ON/OFF in the switch attribute to a different word like Running or Fault. I am using Attribute because you cannot change the status of the switch when you press it on the dashboard. I want the switch to act like a status indicators only.
Is there a way to do that.
I have tried Tile Master 2 but I cannot use any words I want.
i tried it. it did not work. I also toggles the switch to see if it will change the words when the state changes but it said "on" instead of "Stopped".
here what i put in the css for tile 41 which is the boiler status
I was asking more about whether the CSS @Navat604 provided acted on the elements that would be present on an attribute tile, which I then worked out were correct.
This might not be as easy as I thought originally. Other templates, like a switch, give us a "hook" we can look for that includes the on / off state. That's not the case with the attribute template.