semanticHomeMenu - Lights
The Lights widget card used by semanticHomeMenu will show all kind of lights equipment in a selected room and show controls based on equipment group members.
Group members have to follow the naming shown in the example Items definition.
Usage and Configuration
All lights need to have their own Group (Group->Equipment), even they just have a Switch Item. For “simple” switchable Light, please use the semantic tag "Lightbulb, for a dimmable light the non semantic Tag “DimmableLight” and for a colorlight “ColorLight”
For Lightstripes, you can use the according semantic tag, setup and controls are identical to a ColorLight.
- Equipment Group
- Type: Group
- Category: light or lightbulb (not used)
- Semantic Class: Lightbulb, Lightstripe or empty for dimmable or color lights
- Non semantic tags : DimmmableLight or ColorLight
- Switch Item
- Type : Switch
- Category: light or lightbulb (not used)
- Semantic Class: Point
- Semantic Property: Switch
Group CeilingLightOffice "Ceiling Light" <lightbulb> (gOffice) ["Lightbulb"] {uiSemantics="uiSemantics"[preposition=" in the", equipment="Ceiling Light", location="Office"]}
Switch CeilingLightOffice_switch "Ceiling Light" <lightbulb> (CeilingLightOffice) ["Light", "Switch"] {uiSemantics="uiSemantics"[preposition=" in the", equipment="Ceiling Light", location="Office"]}
For a Lightstripe, dimmable or color lights, the following Items can be configured.
- Dimmer Item (Brightness)
- Type: Dimmer
- Category: slider
- Semantic Class: Point
- Semantic Property: None
- Color Item (Color control)
- Type: Color
- Category: colorlight
- Semantic Class: Point
- Semantic Property: None
Group ColorLightOffice "Color Light Office" <colorlight> (gOffice) ["ColorLight"] {uiSemantics="uiSemantics"[preposition=" in the", equipment="Color Light", location="Office"]}
Dimmer ColorLightOffice_brightness "Brightness" <slider> (ColorLightOffice) ["Point", "Control"]
Dimmer ColorLightOffice_colorTemperature "Color Temperature" <slider> (ColorLightOffice) ["Control", "ColorTemperature"]
Color ColorLightOffice_color "Color" <colorpicker> (ColorLightOffice) ["Control", "Light"]
Group DimmableLightOffice "Color Light Office" <lightbulb> (gOffice) ["DimmableLight"] {uiSemantics="uiSemantics"[preposition=" in the", equipment="Dimmable Light", location="Office"]}
Dimmer DimmableLightOffice_brightness "Brightness" <slider> (DimmableLightOffice) ["Point", "Control"]
For a „fancy“ naming, the widget makes use of the uiSemantics.
Information on usage/configuration can be found here
Community
Please check openHAB community for discussions and proposals. Do not post on the marketplace topics.
Changelog
Version 1.0.3
- added some missing visibility configs.
Version 1.0.2
- documentation for Lightstripe usage added
Version 1.0.1
- ressource link corrected
Version 1.0
- initial release for openHAB 4
Resources
https://github.com/hmerk/semanticHomeMenu/raw/main/lights/semanticHomeMenu_Lights.yaml