I have an item: Contact ZONE2_STATUS "Mudroom ext. door, Z2" <door> (DSCAlarmZones, FrontFoyer, DSCAlarmDoorWindow) {channel="dscalarm:zone:EnvisalinkBridge:zone2:zone_status"}
Now I am making a sitemap to display its value. So I have line like
Text item=ZONE1_STATUS label=“Z1 status [%s]” icon=“door”
and this displays "Z1 Status OPEN (or CLOSED)
For my next line I have:
Text item=ZONE2_STATUS icon=“door”
This displays Mudroom ext door (Z2)
but has no value.
So I am asking 'How do you display the content of an item name-value pair?
I would like the output to be Mudroom ext door (Z2) OPEN
How do you do that?
How do you display the name-value of a name value pair.
I have 100 or so Things and several hundred items.
It would be unreasonable to expect me to type all this ‘discovered’ information in two times over. The names would never match!
Thank you!
Ideally, I would like to use the nices-names from discovery, but as I understand, that is not possible. I must retype the discovered items.
I know about the overide as that is what most example seem to show. I need to define nice-names as few times as possible as there are so many of them. So reusing the item nice-name definition in sitemaps works well. Then item=ZONE2_STATUS is really used as an id in layout structures and nice-name can be freely changed with out breaking the implementation.
Yes you do.
I recommend against using the names automatically generated by auto discovery
If possible change the things names to something YOU understand, like mudroomdoor_z2 for the thing
and maybe MudRoom_Door_Z2 for the contact items
Having a structured approach to naming you items will allow you to write more efficient rules