semanticHomeMenu for openHAB 4 - Discussions

Thanks for this nice UI.

In one of the previous posts ErikDB mentioned that the wrong room was shown.
I had the same problem with the lights, but it was OK when the uiSemantic were filled.
I changed the lines in semanticHomeMenu.yaml with

groupItemLocation: "=loop.equipmentItem.metadata.uiSemantics ? loop.equipmentItem.metadata.uiSemantics.config.location : loop.rooms.label"

to

groupItemLocation: "=loop.equipmentItem.metadata.uiSemantics ? loop.equipmentItem.metadata.uiSemantics.config.location : loop.roomsSrc.label"

and that worked.

In the weather menu the temperature bars did not appear, I created the group items (with Min/Max) minTempForecastDays and maxTempForecastDays and that worked.

Thanks for reporting, will check your findings later.

Thanks again for reporting. I have fixed it on github and will update the marketplace post next.

And again thanks for reporting the incomplete documentation for the weather widget. I will add the missing part about the groups later this evening.

Documentation and examples updated in the marketplace post.

The documentation of the weather widget misses one item:

Number:Temperature          OneCallAPIweatherandforecast_ForecastHours05_Temperature        "Forecast Temperature Hours 05"       <Temperature>         (owmWeather)                                          ["Point"]                          {channel="openweathermap:onecall:account:local:forecastHours05#temperature"}

(Furthermore, I believe the first line is erroneous?)

```csv

My Shelly RGBW 2 doesnā€™t support channels colorTemperature and color, since itā€™s on mode LED Strip Control (White). This (obviously) results in the following WARN logs:

20:19:47.892 [WARN ] [se.internal.SseItemStatesEventBuilder] - Attempting to send a state update of an item which doesn't exist: Ledlampjes_keuken_colorTemperature
20:19:47.893 [WARN ] [se.internal.SseItemStatesEventBuilder] - Attempting to send a state update of an item which doesn't exist: Ledlampjes_keuken_color

What should/could I do to avoid these WARN logs?

Thanks again for reporting, I corrected both typos.

This makes it even more complicated. Donā€™t have a solution right now, but let me think about it.
Created an issue for to not forget about it:
RGBW lightstripes do not always have color/colorTemperature channels and create WARN entries in the log Ā· Issue #1 Ā· hmerk/semanticHomeMenu (github.com)

1 Like

I found another typo in the documents.

The main widget documentation instructs us to create an item gBatteryLow, but the widget itself searches for item gBatteryLowTotal (lines 1100 and 1105).

(Or is this also something better reported on github?)

When my Shelly RGBW 2 is ON, the slider is filled up to the correct percentage of brightness (in the below case, 49 %), but the slider ā€œballā€ is still at 0 %.

Also, if I try to adjust the brightness on the slider, it triggers an error: Communication failure.

Thirdly (but for me less importantly), since the equipmentType is not ColorLight, I donā€™t understand why the Ambiance slider is visible.

And finally (also not a real ā€˜problemā€™), I suppose the label RGB colors is visible because thereā€™s no parameter visible in the Label component (only in the oh-slider component)?

Image:

Settings of my _brightness item:

label: Ledlampjes keuken - helderheid
type: Dimmer
category: slider
groupNames:
  - Ledlampjes_keuken
  - Shelly_verlichtingen
tags:
  - Control

Did I do something wrong in the configuration, or is this a bug?

No, please check the Energy Widget post, first item in the examples is

gBatteryLowTotal

Where did you find the wrong Item in the docs?

Both seem to be issues with the oh-slider component.
@florian-h05 could you have a look please.

To be honest, I have no clue, as the visibility has the same logic as brightness or color.

Fixed.

Fixed the wrong example for batteryLow.

I removed the light widget and re-installed it. I checked the code, and indeed, lines 258 and 266 read:

visible: "=props.equipmentType === 'ColorLight' ? 'true' : 'false'"

But still:
image

Strange! :slight_smile:

Can you please poste the config code for the equipment Ledlampjes keuken.
BTW, you need to completely reload the app after changes, otherwise it will be rendered from cache.

What exactly do you mean with ā€œthe appā€?

label: Ledlampjes keuken
type: Group
category: lightbulb
groupNames:
  - Keuken
tags:
  - LightStripe
groupType: None
function: None

(I still need to add the meta-data, but havenā€™t got around to it yetā€¦)

MainUI

About&Help ā†’ Scroll down to reload and press reload.
Did not find anything wrong with your config.

Done. No changeā€¦

I will do some tests later onā€¦