Hello,
I’m using and need a general group that contains objects of the same type from multiple locations (for display or controls). It has been working for a long time without errors with previous OH3/4, but now I upgraded to OH5 and encountered some semantic errors.
Note: I use Equipment to hide the “Properties” sections in the location card/tab.
I tried everything, but I couldn’t find a solution.
Here’s a simple representation in a new environment.
- Office1 → Windows1
- Office2 → Windows2
- General → Windows (Windows1+Windows2)
Model:
Model (one “Windows” item):
User interface:
General
Office1 and Office2
Page code:
config:
label: Home Page
locations:
- component: oh-locations-tab
config: {}
slots:
General:
- component: oh-location-card
config:
backgroundColor: blue
Office1:
- component: oh-location-card
config:
backgroundColor: yellow
Office2:
- component: oh-location-card
config:
backgroundColor: red
equipment:
- component: oh-equipment-tab
config: {}
slots: {}
properties:
- component: oh-properties-tab
config: {}
slots: {}
Item definition:
version: 1
items:
General:
type: Group
label: General
tags:
- Location
gWindows:
type: Group
group:
type: Switch
function: Or
parameters:
- "ON"
- "OFF"
label: Windows
icon: window
groups:
- General
tags:
- Equipment
Office1:
type: Group
label: Office1
icon: office
tags:
- Location
Office2:
type: Group
label: Office2
icon: office
tags:
- Location
Window1:
type: Contact
label: Window 1
icon: window
groups:
- Office1
- gWindows
tags:
- Window
Window2:
type: Contact
label: Window 2
icon: window
groups:
- Office2
- gWindows
tags:
- Window
All is working correctly but now I have this errors:
Thanks





