semanticHomeMenu for openHAB 4 - Discussions

Please post a screenshot of what you are seeing and another one showing your installed widgets.



I appreciate you taking the time to help me.

What happens when you press the security icon in the home menu ?

You don‘t have any floors defined, is that correct?

Nothing happens. The icon changes color but nothing is displayed. That is true if I click any of the icons in the Home or Rooms tab.

Indeed no floors defined

EDIT: Actually only energy shows a warning but I have not created any battery items yet.

That’s strange, I need to think about it and setup a test environment with your items.
This might take a couple of days….

1 Like

I’ve got lights on the ‘porch’ (the part in the yard where there are tiles, a table and chairs etc), which has a light.

But since that’s ‘outside’, its switch doesn’t come up in the widget… What would be the best way to achieve that?

Hoe did you tag it?
You can add the „Room“ tag ad non-semantic tag.

Sorry for my late reply.
Simply add “Floor” as a non semantic tag to your indoor group and you will see the Building in the floors menu and the light widget (as default) will appear…

As I was asked for an example how to include custom widgts in the “Appliances” Menu.

I took for an example the List Item Widget for Moon Information from the Marketplace.

First add the widget to a new page in MainUI and configure it according to the widgets documentation.

This will result in something like this :

blocks:
  - component: oh-block
    config: {}
    slots:
      default: []
  - component: oh-block
    config: {}
    slots:
      default:
        - component: oh-grid-row
          config: {}
          slots:
            default:
              - component: oh-grid-col
                config: {}
                slots:
                  default:
                    - component: oh-list-card
                      config:
                        mediaList: true
                        accordionList: true
                      slots:
                        default:
                          - component: widget:frs_Astro_Moon_list_item
                            config:
                              MoonIlluminationItem: Lokale_Monddaten_Beleuchtungsstarke_des_Mondes
                              MoonPhaseNameItem: Lokale_Monddaten_Mondphase
                              FullMoonDateItem: Lokale_Monddaten_Vollmond
                              NewMoonDateItem: Lokale_Monddaten_Neumond
                              TotalEclipseDateItem: Lokale_Monddaten_Eclipse_TotalElevation
                              PartialEclipseDateItem: Lokale_Monddaten_Eclipse_PartialElevation
masonry: []
grid: []
canvas: []

Now create a new custom widget in the developer section witch the following code :

uid: semanticHomeMenu_Appliances
tags:
  - marketplace:152210
props: {}
timestamp: Sep 6, 2024, 4:49:50 PM
component: f7-card
config:
  style:
    --f7-card-header-border-color: transparent
    background: =themeOptions.dark=="light" ? "white"
    border-radius: 10px
    margin-left: 5px
    margin-right: 5px
slots:
  default:
    - component: f7-card-content
      config:
        style:
          height: auto
      slots:
        default:

This will create an empty Appliances Menu in the semanticHomeMenu.

Taking the infomation from our above example and adding to the new widget :

uid: semanticHomeMenu_Appliances
tags:
  - marketplace:152210
props: {}
timestamp: Sep 6, 2024, 4:49:50 PM
component: f7-card
config:
  style:
    --f7-card-header-border-color: transparent
    background: =themeOptions.dark=="light" ? "white"
    border-radius: 10px
    margin-left: 5px
    margin-right: 5px
slots:
  default:
    - component: f7-card-content
      config:
        style:
          height: auto
      slots:
        default:
          - component: f7-list
            config:
              accordionList: true
              mediaList: true
            slots:
              default:
                - component: oh-list-card
                  config:
                    mediaList: true
                    accordionList: true
                  slots:
                    default:
                      - component: widget:frs_Astro_Moon_list_item
                        config:
                          MoonIlluminationItem: Lokale_Monddaten_Beleuchtungsstarke_des_Mondes
                          MoonPhaseNameItem: Lokale_Monddaten_Mondphase
                          FullMoonDateItem: Lokale_Monddaten_Vollmond
                          NewMoonDateItem: Lokale_Monddaten_Neumond
                          TotalEclipseDateItem: Lokale_Monddaten_Eclipse_TotalElevation
                          PartialEclipseDateItem: Lokale_Monddaten_Eclipse_PartialElevation

This will give us the following appliances menu :

I hope this helps :wink:

The porch is called “Terras” and is integrated in the semantic home model as such:

Should I make it part of gIndoor rather than gOutdoor?

Add „Floor“ as non semantic tag to „gOutdoor“ and „Room“ as non semantic tag to „Terrace“.

1 Like

Adding these as Non-Semantic Tags converted them to Semantic Classes. It worked for gOutdoor, but not for Terrace…:


and

But it is a Room now:

Edit: I assume it was a bug. I changed the Semantic Class to something else, and then again to Room, and now it works!

Adding non semantic tags sometimes changes the semantic tag, don’t know why.
Repeating it work.
Glad we could solve your issue :+1:

I tried making gShed also a Room, but that only partly worked…
Here it did:
image

But here it didn’t…? (There’s nothing to the right of Tuin; if I drag the row to the left, it’s blank.)

This is the item:

label: Tuinhuis
type: Group
category: garage_detached
groupNames:
  - gOutdoor
tags:
  - Room
groupType: None
function: None

I tried changing the Semantic Class a few time, to no avail…

Please show the config for gOutdoor.

label: Buiten
type: Group
category: garden
groupNames:
  - gHome
tags:
  - Floor
groupType: Location
function:
  name: EQUALITY

Will try to reproduce later today….

Hello,

are there further widgets planned ? e.g. temperature/humidity… motion sensor… thermostat

thanks

Actually not, but I am open for ideas :wink:
Would be good if you could elaborate a bit, what you want to see and where to add it to the menu structure.
Regarding the motion sensor, this is already implemented into the security part. I don‘t see any benefit from creating a special widget for it. Why? Cause what should it do. It should inform about motion when no motion is expected. This is part of the security widget. Furthermore it motion sensors could trigger actions when motion is detected. This is part of individual rules and does not need any fancy widget.
What do you want for a Thermostat? We already have a radiator control widget, which can be used for different types of thermostats. I use ist for my radiators in the house and my room thermostats in a flat. There is not much needed from my perspective. ambient temperature, target temperature and a mode selection. This is what we already have.
But feel free to post what is missing from your perspective.

I checked, but could not really reproduce your error

label: Buiten (gOutdoor)
type: Group
category: ""
groupNames:
  - gThuis
tags:
  - Floor
groupType: None
function: None

label: Terras (gTerrace)
type: Group
category: terrace
groupNames:
  - gOutdoor
tags:
  - Room
groupType: None
function: None
label: Tuin (gGarden)
type: Group
category: garden
groupNames:
  - gOutdoor
tags:
  - Room
groupType: None
function: None

label: Tuinhuis (gShed)
type: Group
category: garage_detached
groupNames:
  - gOutdoor
tags:
  - Room
groupType: None
function: None

image

image
image