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

back on my issue for rollershutters:



are these settings okay for you?

cool! i think “dark theme” users will appreciate :wink:

Sorry, no, I don’t see the Switch Item in the blinds group, please see below, name and label of Item is just an example.

A Switch item to enable/disable the automatic/time control [mandatory]

Name: modeBlindsChildAuto
Label: Timecontrol blinds childroom
Type: Switch
Category: Switch
Semantic Class: Control
Semantic Property: Level

Why postinng lights ? this has not changed and you had it working before.

sorry a mistaken screen for lights (that are not working due to main widget line to be changed…)
by the way, yes, the switch item is there:

the widget are displayed but not filtered by room. if i chose Bathroom (Bagno) i see all my rollershutter widgets off all rooms. so rollershutters are not divided into rooms…

What do you think needs to be changed in main_widget ? It is working like before

Strange, as it is working here with the latest published code

Did you update main_widget and add “FloorsAndRooms” ?

yes, of course, just 2 days ago :slight_smile:

                - component: oh-repeater
                  config:
                    fetchMetadata: semantics,metadata,listWidget
                    filter: loop.equipmentItem.metadata.semantics.config.hasLocation == vars.objVar.room
                    for: equipmentItem
                    itemTags: Blinds
                    sourceType: itemsWithTags

this solved my issue to display correctly rollershutter widget divided into single room. i don’t know if this is wrong, but it works. can you give a look?

for lights, are not working because the widget light use different props name than the values settings in main widget.

i have time, maybe that’s why i can test deeper these widgets…
also for instructions, there is too much confusion, and users keep asking things. Better to dedicate some time to improve instructions and make them clear…
i’m sorry for all these things i say, but first i want to help everyone to make and understand things easier and clear…

No, this is wrong, correct would be (and is in the published version)

                - component: oh-repeater
                  config:
                    fetchMetadata: semantics,metadata,listWidget
                    filter: loop.equipmentItem.metadata.semantics.config.hasLocation == loop.roomItem.name
                    for: equipmentItem
                    itemTags: Blinds
                    sourceType: itemsWithTags

This is the code I am running, giving the earlier posted result.

HaHa, good catch, I am using an updated version of the LightCard, which I forgot to publish. Will do so later on. Thanks!!

This is definitely on my short list.

i know this is NOT the one published, but what i mean, the published one is making not filtered my roller widgets. changing the line as i posted (taken from previous version of your widget) make filtering correct.
maybe mistake is somewhere else, but this solved the issue. that’s why i asked you to check deeper what’s wrong.

This is difficult to debug, as I cannot reproduce that behaviour.
Can you please post some screenshots

  • after pressing floors top menu
  • after selecting a floor
  • after selecting a room

@All
I have just updated the Lights cards, which I forgot two days ago. Also updated the screenshot to see the new color control.

This should fix the latest reported issues.
Sorry for any inconvenience.



This is also when selecting Shades below.

thanks for the support!

pay attention: widget name is LightCard, but in floor&rooms is Light_Card. Better to rename the published name of the Light widget…
uff i have always to teach you man :wink:

Done, Thanks!

FEATURE REQUEST: for light card, seems to point to group that contains lights.
is it possible to make the widget search into the group and to display single lights?
i ask this, to keep the same structure used for Rollershutters, that point to the group that contains also switch DateTime…

Have to think about it.

This is not like the rollershutters work

i know what you mean, but it’s like if you have 2 rollers into the same room…
ok think about it, i’m sure users will appreciate it, because it will keep a “sense” to the model structure…that items of the same type must be into the same group.

Yes and no, understand what you mean, but…

this can only be achieved for “simple” lights, just having an on/off switch.
If there would be more than one, there would be need for a strict naming of items, like we have for the DateTime items in the rollershutters. They need to contain open/close and Weekend/Weekday in the name.

yes and no…i’ve accomplished that, and maybe have sense…but my coding is “rude” than yours :slight_smile:
a demo in PM.

Ähm, don’t understand what ist “rude” with my coding ?

no no, MY coding is less elegant than yours. i meant this :slight_smile:
mine is done by tries, you instead, know what to do and how :slight_smile:

1 Like

OMG! the radiator control widget…i’m just rebuilding the model on test environment, so no items added to groups, and radiator is replicated 5 times for each room! so i have 5 widget x 4 rooms = 20 widgets displayed in one room page!