Sorry about asking what looks to me like a stupid question, but I have now searched on my own without success for long enough.
I have a couple of thermostats (one Insteon, one ZWAVE) that can report on the current status of the heating function. Is it currently actively heating or not? This is a simple yes/no business.`:
The relevant Insteon and ZWAVE items are defined as follows:
Number Chauffage_salon_statut "Statut du chauffage, salon" { insteonplm="32.f5.55:F00.00.18#isheating"}
Number Chauffage_bureau_statut “Statut du chauffage, bureau” {channel=“zwave:device:d325bddb:node2:thermostat_state”}
Unless I am mistaken, the only relevant values are 0 (=Inactive) and 1 (=Active).
At the moment the relevant portion of my sitemap reads as follows:
Switch item=Chauffage_salon_statut label="Statut [%d]" icon="radiator" mappings=[0="En Pause",1=Actif]
Switch item=Chauffage_bureau_statut label=“Statut [%d]” icon=“radiator” mappings=[0=“En Pause”,1=Actif]
But this does not yield the result I want because:
-
This creates a switching capability in the UI which is inappropriate: the relevant items are just reporting on the state of the thermostats: they do not constitute user-triggered switching facilities. And
-
Moreover the resulting display is bizarre. It displays two buttons “En pause” and “Actif” with one of them being highlighted according to the current status of the thermostat, which is OK. But it also displays on the left of the first button the numerical value of the item, 0 or 1.
What I would like to get instead, is just one string: “En pause” or “Actif”.
It is not clear to me how to achieve that result.
Thanks in advance for your help.