Hi Team
Need some help with grouping of items.
Goal is to have one entry at a sitemap which shows ‘Home’ if one of the items are ‘on’, and by clicking the line, lists all the items in the group with their status. Simple
Items are network devices – based on the ‘Network Binding’.
They are of the type switch.
Switch Dad “Fars Mobil” { channel=“network:device:192_168_2_203:online” }
But this is only a ‘view’ value, so no need for ‘switch’, so adding a map
Switch Dad “Fars Mobil [MAP(onoff.map):%s]” { cha…
And in Sitemap:
Text item= Dad label=“Fars Mobil”
With onoff map:
OFF=Ude (out)
ON=Hjemme (Home)
So now it says out or home. – works fine.
But would like to get it to work with more than one device, so it shows one line that says ‘home’ if just one of 3 devices are online.
Using a Group in items:
Group:Switch:OR(ON, OFF) DadHome “Dad”
and adding (DadHome) to items
and in sitemap, adding
Group item=DadHome
Works fine for grouping, but I’m now missing ‘maping’ it says On or Off, and it gives a count of the number of devices active.
I would like to just have a line that says ‘Dad Home’ (or out), and when clicking, it shows the devices in the group, and not with a switch setup.
How do I do this ??