I don’t think you can do that. The Group is a rollup of the Items in the group and there is no way I know of to specify a specific Item’s value as the value of the Group.
You can fake it by using Frames on the sitemap instead of the Group:
Text item=power label="Electric [%.1f W]" {
Frame {
Text item=voltage
Text item=current
Text item=power
}
}
In your rules, just use power instead of the Group if you need its value.
This would be a great addition to the capabilities. I often find myself wanting to display the status of one of the items within a group on the screen
Example
I have a Pioneer AVR and it would be great to be able to easily display the current status of the source item without having to build out a manual frame each time in the sitemap as required today.
Especially as i want to show the receive to appear in multiple places.
Group gAVReciever “Family Room AV Reciever” (gMultimedia,gFamilyRooom)
Switch AV_Pwr “Power” (gAVReciever) { pioneeravr="INIT:living…}
Switch AV_Mute “Mute” (gAVReciever) { pioneeravr="INIT:living…}
Number AV_Source “Source [%.1f]” (gAVReciever)
Hi, I also would need exactly this group option very often to avoid building large static sitemaps instead of dynamically created through the item definition.
Something like Group:Number:Val(item) would be great