[SOLVED] Show item values (temperature) via badges in location card tile does not work

Hi all,

I am running OH 5.1.0 M2 in a docker container on my NAS. I am trying to setup pages based on the model definition using the location cards

I have created for testing a page with 3 columns and each column contains a location card. I added to all of them equipment but only the one in the middle shows the temperature

When I understand the documentation right, the temperature is displayed when checking it in the “Enabled badges” of the widget setting (screenshot of the Warmwasser location card). It takes all temperatures and creates the average …

Funnywise I did not set anything for the middle location card Gästezimmer and it is not set when looking into the badges settings but it works :thinking:
In the other case I explicitely set it for the right location card Warmwasser as you can see in the screenshot above but nothing is shown in the location card tile!

Find below the screenshots for the equipment of the two cards. they both contain current and set temperatures …

Do I miss something? I would first simply to get it work and secondly I would like to choose which value is shown in the tile. Is this possible?

For example: the heating has two important tempartures:

  • flow temperature (Vorlauf)
  • return temperature (Rücklauf)

They are the most important indicators for the health of the heating. And considering that the heating is a location it ould make sense to show these two values upfront in the tile …

Thanks for any hints or advise

Cheers
Justus

By default, all badges are shown. You really only need to set the badge properties when there is one or more badge you do not want ot appear.

How are the temperature Items semantically tagged? Only those with the “temperature” semantic tag will be recognized as representing a temperature.

Do these temperature Items show up under the Properties tab under the Temperature card? If not, OH does not recognize them as a temperature indicating they are misstagged.

You can choose to show one temparature as the badge instead of the average of all temperatures in the location on the card by making it a member of both the equipment it belongs to and a member of the location Group. This is the one exception to the rule that no Point can be a member of more than one semantically tagged Group. But you cannot show more than one temperature as a badge on the location card.

1 Like

Thank you @rlkoshak. I found that and already added the “Semantic Property” and it already shows up in the Overview page in the Properties Tab :+1:

I don’t see it yet on the location card but maybe it just take some time. I do some more intensive testing tomorrow as it is family evening now :slight_smile:

I have again another question:

My heatpump serves the heating as well as the warm water = boiler. I have created two locations. One for the heating and one for the boiler. Both have items in the same thing “ems-esp”.
But I can only add the thing to one of the locations either heating or boiler. You said that the item must be tagged with the location AND the equipment group but when I need to add the thing as equiment then I can only server one location and not both?

Can the items also only be members of the location and not of the equipment? Then I could add the items directly into the location group without the equipment? Or do the badges not work in that case anymore?

You have to add the Point Item to the Location manually after you create the Equipment and all it’s Point Items. You can do so from the Item’s page itself or from the Model. However, OI don’t think you can drag-and-drop to do this. You’ll have to click on “Parent Groups” and add the Location to the list.

Yes, if this is how you want to model it. But the Item cannot be a member of two Equipment nor a member of two Locations.

Sure, the badge is calculated based on all the Point Items that are direct members or descendents of the Lcoation Group.

Thank you :folded_hands:

I have misunderstood you before and thought that the items must be in equipment group as well as in the location group. I already found out how to add items to the locations groups. I will try that on Sunday and test to get them into the cards.

Hi @rlkoshak,

I did everything you said. Taking Reservoir temp as an example. As you can see it belongs to the location Warmwasser (Boilerroom) and it has the Semantic Tag Temperature as it can be seen by the (Temperature) in brackets behind the Point

see also the item details:

  • Semantic Property: Temperature
  • Parent Groups: emsespbud (Thing) and Warmwasser (Location)

it also appears on the Overview page under the Properties tab on the Temperature card:

But it does NOT appear as badge on a test page where have put a location card of a room where the badges work Gästezimmer (guest room) besides the location card of Warmwasser where it obviously not works:

but as you can see it is listed on the location card when you click on it:

Any idea what I have missed or what is going wrong here? Should I not use OH 5.1.0 M2
as I learned this is a development version and may cause trouble? But I would expect that such fundamental function should work also on a development channel version :thinking:

Thank you Rich!

Cheers
Justus

I would expect the Point tag to “Measurement” or “Setpoint” or something else more detailed than just “Point”. That might be relevant. “Point” is to be used pretty much only when nothing else works. You should almost never use “Point”.

I don’t know if it’s relevant for the badges, but it might be as it may not what to do with it.

Milestone versions of OH are definitely testing versions. They are not guaranteed to be without error.

One think to watch for is I doubt that it will show anything until the Item changes state at least once after you change the Item’s configuration.

1 Like

Thank you @rlkoshak!

I will try that out tomorrow. Regarding the Point I just followed what the item definition suggested when created the item from a thing channel via the UI.

YOU ARE MY HERO :clap: :clap: :clap: :clap: :clap:

But there is one more thing left

in the location card “Heizung” = heating I have two temperatures:

  • the current flow temperature
  • and the return temperature:

Here is the representation in the Model view:

And even though I did not enable Average Temperature (+ Setpoint)

it shows the average temperature of flow and return temperature - which makes no sense.

I thought that it only “presents the average” when I activate this under Enable badges and otherwise it shows all the temperatures separately :thinking:

Could I maybe only choose one temperature to be shown without creating the average even thought there is more than one temperature configured in the room (in that case I would choose the flow temperature)?

I promise that this will be my last question in this topic :smiley:

No, it’s average or nothing. There is and only will be one temperature badge on a card.

I think by having nothing selected it reverts to the default “everything is selected” meaning it’s showing the average temperature. You need to select at least one option from that list to have it not show any temperature on the card at all. Or choose “Disable badges” on the previous screen if want no temperature.

For Location cards you can choose one Item to use for the badge by making that one Item both a member of whatever Equipment it is a member of and a direct member of the Location. Then the badge will only show that one temperature. Otherwise it will always show the average of all the temperature Items in that location.

Got it.

I am learning as I am creating my pages and maybe I should better use the equipment card for heating and hot water instead of locatin card. I will try that out.

Thank you for your patience and advice :folded_hands:

If you don’t have a room called “Heating” then yes, you are definitely not setting up the semantic model properly.

The semantic model should be the physical organization of your home. Furthermore, it should be how your home is physically laid out to the users of the home. For example, when users of your home want to turn on the lights in the kitchen, even if you are using a technology like KNX where all the relays that controls the lights are in a closet somewhere, you model the kitchen lights in a location called “Kitchen”. That’s where the light sources are and that’s where your users want there to be light.

You should never have a Location that doesn’t match some space with a name. House, Basement, Bedroom, Utility Room, etc are all good Locations. Heating, Lighting, Energy Tracking, etc are horrible names for Locations. These are functions, not locations.

You can for sure build an organization of Items that is functionality focused. But you’ll have to do that outside the semantic model. And you’ll have to build the UI for that yourself.

1 Like

Thank you!

You are right but it was appealing to have one key characteristic shown as “preview” on the card before clicking and seeing all of the items belonging to that card. And this is only possible with the location card and hence I was mislead to try to bend it to my purpose :slight_smile: