[OH3] Main UI - New „main_widget“ - development and testing [deprecated]

What do you mean. This has not changed if I rember correct.

you’re right, that’s why i keep thinking the issue comes from floor&rooms widget, that is changed recently…if you want to see, i can give you access to my teamviewer test environment

If the semantic model did not change, there should be no difference between Floors&Room and the old Floors and Rooms.
It was just combined into one for code simplification and to remove the need to press the room button to see the rooms.

To test, if you switch back to old main_widget using seperat floors and rooms, you should exactly see the same behaviour.

If you want, we can do a teamviewer session.

@All
Unfortunately, last published versions did contain a bug, thanks to @rubenfuser for testing and verifying.

I have updated the widgets, so please use the latest ones from the first post.

Hi Main UI developer team,

just a short notice, I tried to install the current version of all widgets, worked well so far except for the Light Card:

Best regards
Stefan

2022-11-08 20:29:52.970 [ERROR] [munity.CommunityUIWidgetAddonHandler] - Unable to parse YAML: Unrecognized field "default" (class org.openhab.core.config.core.dto.ConfigDescriptionParameterDTO), not marked as ignorable (22 known properties: "readOnly", "max", "limitToOptions", "groupName", "name", "stepsize", "context", "defaultValue", "min", "label", "filterCriteria", "verify", "type", "description", "options", "required", "advanced", "unit", "multipleLimit", "pattern", "multiple", "unitLabel"])

at [Source: (StringReader); line: 6, column: 26] (through reference chain: org.openhab.core.ui.components.RootUIComponent["props"]->org.openhab.core.config.core.dto.ConfigDescriptionDTO["parameters"]->java.util.ArrayList[0]->org.openhab.core.config.core.dto.ConfigDescriptionParameterDTO["default"])

2022-11-08 20:29:52.972 [ERROR] [munity.CommunityUIWidgetAddonHandler] - Widget from marketplace is invalid: Unable to parse YAML

EDIT

and the main_widget part 1 throws also an error

2022-11-08 20:29:52.970 [ERROR] [munity.CommunityUIWidgetAddonHandler] - Unable to parse YAML: Unrecognized field "default" (class org.openhab.core.config.core.dto.ConfigDescriptionParameterDTO), not marked as ignorable (22 known properties: "readOnly", "max", "limitToOptions", "groupName", "name", "stepsize", "context", "defaultValue", "min", "label", "filterCriteria", "verify", "type", "description", "options", "required", "advanced", "unit", "multipleLimit", "pattern", "multiple", "unitLabel"])

at [Source: (StringReader); line: 6, column: 26] (through reference chain: org.openhab.core.ui.components.RootUIComponent["props"]->org.openhab.core.config.core.dto.ConfigDescriptionDTO["parameters"]->java.util.ArrayList[0]->org.openhab.core.config.core.dto.ConfigDescriptionParameterDTO["default"])

2022-11-08 20:29:52.972 [ERROR] [munity.CommunityUIWidgetAddonHandler] - Widget from marketplace is invalid: Unable to parse YAML

Thanks for reporting, please try again, should be fixed.

Perfect, now installation is working! Thanks a lot

Hi together,

is there already some documentation out there for the main ui cards? I’m struggeling a little bit in setting up the model correctly. I have no appearance of any of my items in the widget. Although the model seems to be set correct due to the fact that all the Location/Equipment/Properties tabs show the correct cards.

So i would like to start in reading the documentation for the main ui widget to get an idea on how to set the model.

Best regards
Stefan

Sorry, but documentation is still on my short list. I hope I can add something until the weekend.

For the rollershutters, doocumentation should be complete including the new time control feature.If something is missing or unclear for that particular widget, please let me know.

@All
I have added Item config desciption to the Lights and RadiatorControl card widgets.

@All

I have just pushe another widget to the marketplace, which was already existing in the FloorsAndRooms card:

The HVAC Widget

Hi @hmerk ,

may I suggest to extend the logic for the [OH3] Main UI - main_widget - part 1 - The main_widget to find “Rooms” from

  • (loop.menuArrayRoom.metadata.semantics.value).includes(“Room”)

to

  • ( (loop.menuArrayRoom.metadata.semantics.value).includes(“Room”) || loop.menuArrayRoom.metadata.semantics.value).includes(“Corridor”) )

the problem is that “Corridor” as location is only mapped to Location_Indoor_Corridor and not as expected to Location_Indoor_Room_Corridor as it is done e.g. for Location_Indoor_Room_Office.
So all my Corridors are not found,

Thanks for your suggestion, let me check if it might have side effects.

Edit: First test seems to be ok. Will test a bit more and report back.

I need to ask for guidance again…
I installed all new widgets, set up my semantic model like:
Group . Location > House
Group . Location > Floor
Group . Location > Room
Group . Equipment > Lightbulb
and following the documentation for the lights widget, i set up the channels switch and dimmer.
I did not tag any floors or rooms with neither widgetorder nor floor/room/“the floor group”

I created a new page, pasted the yaml from the “main_widget”.
I dont have the channels for the weather card - but that should not break it?

If i test the openPage, i can click the menu, but i dont see the floors nor the rooms. But if i click, i open real rooms and i see the equipment of the room. But i cant see the name of the rooms/floors in the navigation. The red square is my mouse position.

floors

When i edit the openpage, the menu looks like this.

Last but not least, every light is shown three times in the widget, but only one of these lights can controll the real light.

I hope you can understand my writings. And i hope to hear from you.

Cheers
Chris

You need to create floors and rooms in the model, not just an entity “FLOOR” and an entity ROOM.
Please see this screenshot:

So You will have

  • Group->Location->GroundFloor
    • Group->Location->LivingRoom
    • Group->Location->Kitchen
  • Group->Location->FirstFloor
    • Group->Location->Bedroom (child)
    • Group->Location->Bath
    • Group->Location–>Bedroom (parents)

and so on…

Thats my model, how is it empty?

Ok, better than youposted earlier.
We need to see the details for one floor, room and an equipment.

Thank you for your response, I made some screenshots. I hope they help you.





Could it be, that you did not set a single floor or room label in your modell.
I only see empty placeholders „Label“.

Yes, it’s still in progress, do I need the labels set? For floor, room and equipment? Or only floor, room? I will try it!

/edit rooms are showing. I go on testing, thank you @hmerk!