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

Very cool - this evening is family evening so I’ll have a look tomorrow if you have posted new stuff :wink:

A post was merged into an existing topic: [OH3] Main UI Examples

Thanks Rich, but managed to do it myself

Hi @Nic0205 @Dimitris @JustinG @rubenfuser and anyone interested

I have edted the first post with some prerequisits, added my latest development version of the main_widget and as a first step the new main_widget_Light_Card. This is designed to work wth simple lights aw well for color lights. Switch/Brightness should work out of the box, but not shure for the color settings.
The also added main_widget_Rollershutter_Card should also work out of the box. Just needs to add a label…

Question now:
@Dimitris Would you please take care of the design chapter in the first post and add your pictures there
Second question to all involved so far, whou would like to write a nice introduction ?

Todo : As the widget show basically an empty screen at start, how could we fill it ?

Hi, i’ve tried new version and menu now looks better also on mobile.
the issue now comes from light card as you can see.

i’ve made also another version of rollershutter card, more complete that reflect almost the idea of @Dimitris. it’s an exapandable card, but i don’t know if it’s too early to use it on the main widget due to issues that can come. if you want i can PM the code to one of you to take a look and adjust it to fit the main widget. but i don’t want to put “more on fire”.

for home screen, i think could be a good idea to make a new widget that summarize the status of the home: average temperature, security status and light/rollershutter status.

i’ve made something like this:

image

just to tell the user if there are lights/rollershutter on/open. eventually could be added the status of the home security. also this is based on @Dimitris idea.

all my yaml need to be corrected for sure, i’m not skilled as you, but we have a starting point. i’m trying to learn from you all as fast as i can, so please forgive me if i do mistakes :sweat_smile:

OK I have the widget in and Floors and Room showing
I think the wording on post 1

" and all rooms need to be tagged with the additionl tag for the floor group item (e.g. gKitchen )"

Perhaps should say gGroundFloor for the example? Im happy to get in and start contributing once I am sure I understand a bit better

The main_widget_Light_Card in post 1 is now a different name to the original card_2 name - has this been updated in the code as thats my next challenge my room has a light in it which has a non semantic tag of light but it is not showing (it is also a dimmer which might be the issue?)

I will korrekt the group example, thanks for finding.
Yes new light widget is uploaded.
Never thought of your use case, so need to make an adoption for a light without a switch item…

No, it comes from your model. You have more than one light in the equipment group. Thane issue had @Nic0205 with hus shutters. I will add a bit more about that in the Prerequisites section.

Yes please, I just took one yesterday to have something ready.

Also, sende me the code please and we can try to get this in….
And don‘t worry about code quality, I am alsi still learning…

I added the light as a switch item and added Lights and Light as a non semantic tag - still not showing I wonder if the model is not set up correctly?

No, model is not right, you light items need to be in a Lightbulb equipment group.

yes in some rooms (many) i have the group “Lights” that contains more than one light. but this issue with previously main_widget was correct, all lights were displayed in separate widgets…

Aha - my bad for consistency - seems overkill to put a single light for a toilet in a group until you are trying to use the model like this which makes perfect sense.

I have a light showing! Are you OK with me changing the first post to help flesh out the instructions for newbies?

Should I see lights for every floor when I have only selected Floors, not an actual floor, or Rooms not an actual room? It seems once I navigate down to a room and show a light, I can go back up the “heirachy” and it shows in Rooms, but not in Floors

I assume this might end up the same for All (I think Ive seen that in the thread)

That’s why the first post is a WIKI, anybody can contribute to it. Only let us know when you edited something, so we can review it afterwards…

This is not implemented yes, as it might need some additional group and work in the widgets.
But it is on the roadmap.

1 Like

Yes, but that old widget could not handle multi item widgets where you have swith, brightness and color. Therefore, this change was needed.

At all: What do you think of having a nice weather widget shown on the “empty start” page ?
Followed whith what @rubenfuser suggested, some overview of lights, shutter states and alarms ?

Good morning guys,

that’s really cool to see what here happens in one day!

Fro my opinion +1 for the overview and weather approach!

@hmerk The temperature widget is for now declared as “stay tuned” in the first post. Should I add the code - even if it’s not perfect? Or are there any other reasons for actual not posting?

And: What’s next - how may we help you?