OH3- Text alignment and reorder items in auto-generated cards

Hi all,

I’m working with the semantic model and the auto generated cards of the Home Page and there are few things I haven’t figured out how to do:

  1. The first thing- can I change the text alignment of the card’s title?
    I tried adding several properties like text-align: right to the YAML but there was no effect.
    I understand from this thread and this one that I can edit the standard components of the auto generated cards to a custom, more primitive component, and than I can have more options to play with. But I couldn’t make it work with the examples and I’m far from being able to code it from scratch.
    Is there a simple way to change the alignment of the text to the right?

  2. My second question is about the order of the items inside the auto cards.
    For example I have this cards for the items I tagged as Switch:


    Is there anyway to reorder the items inside it?
    Looks like its alphabetical order but it’s not always the case and it’s not always what I want.

Thank you very much.

On your second point, yes you can, you can reorder single points inside an equipment or the order of an equipment inside a card.
You will need to set meta data and the item order in it which is called Default Widget Order Index.

2 Likes

Found it. Pretty obvious actually… Don’t know why I didn’t think ti look there.

Thank you very much! :grinning:

How about this question?
Anybody might know how it can be achieved?

Thanks.