[ST Edge] Custom capabilities labels are ignored

and this is going to be the only way to create drivers in 3 weeks.
:clap:

This is interesting. History is retaining my label translations and units, although the spaces between the value and unit is messed up. @ygerlovin @TAustin @Mariano_Colmenarejo @philh30 @veonua

Fyi @nayelyz

1 Like

The issue where {{value}} wasn’t working in location history is resolved:

More interesting to me is that device history is populating with the alternatives I’ve specified in the presentation. I’ve been trying to replicate the way that fanSpeed works with the integer on the slider replaced by text, but haven’t managed to get it to show properly in detail view or device history. Maybe there’s hope.

The “Untitled” issue just went away on its own, but only for the capabilities that I previously added the translation workaround… :confounded:

Yup, I just forced stopped and cleared cache and magically it’s back, except the units are missing from the detail view.

Thank you for sharing this, the team just asked me to check again. I’ll confirm to them this is solved.

About the “untitled” issue happening again. Is there someone that still has this issue after clearing the cache or restarting the app?
I’ll check what could’ve happened with the team but it’s important to know if this was solved automatically or not…
CC @Mariano_Colmenarejo, @philh30, @johnconstantelo, @TAustin

Whatever was done Friday night appears to have been reversed Sunday night. Anything that has translations is back to showing properly (though with duplicate labels). Any capability created somewhat recently without translations is back to showing the capability and attribute names instead of the labels defined in presentations. My older capabilities without translations are still showing as Unknown.

Hi @nayelyz

The untitled tags are the same as before the last incident.

in some the capability name and the name attribute are shown and in others it is shown without a title.

And the units in custom capabilities are not shown in the details view and are shown in the tile and in history

2 Likes

Hi @nayelyz , any custom capabilities recently created with translations is now back as @philh30 mentioned, but the units are still missing from the detailed view:

1 Like

Same for me as others have reported. The ‘Untitled’ label which was on EVERYthing, has now reverted back to the prior state of showing the raw capability/attribute names.

ok, thank you for your confirmation. The team mentioned it was due to an issue in the backend that affected the labels shown but it was fixed, so, your work with translations isn’t lost.
About units in the detail view, there’s a workaround I found that is concatenating this value in the state label:

"detailView": [
    {
        "label": "{{i18n.label}}",
        "displayType": "state",
        "state": {
            "label": "{{waterFlowRate.value}} {{waterFlowRate.unit}}"
        }
    }
]

However, I also reported it.

1 Like

Ok, good to know. Can we assume your workaround isn’t a permanent fix, and the example code below is the correct way to do it?

"detailView": [
    {
        "label": "{{i18n.label}}",
        "displayType": "state",
        "state": {
            "label": "{{highestused.value}}",
            "unit": "highestused.unit"
        }
    }
2 Likes

So far, yes, it would be temporary, it’s just something I noticed and also because it used to be the way of showing units when custom capabilities were released.

1 Like

Android update to 1.7.91.24 has removed the double labels on single-attribute custom capabilities - only the capability label shows, no attribute label. Both continue to show on multi-attribute capabilities.

Multi-attribute meaning more than one attribute, regardless of the presentation. Below are both custom capabilities. The bottom one has a supported modes attribute, and continues to show two labels even though there’s only one attribute displayed.

2 Likes

I did not modify any capability presentation and with this new Android version

In capabilities that appeared without a title in previous versión:

  • they now appear correctly with the label defined in their presentation.

In which the name of the capability and the attribute were shown in previous versión:

  • now it only shows the name of the capability, but not appears the Label.

What I don’t understand is why both before and now, capabilities that have the same presentation are still displayed in different ways in app :astonished:

1 Like

So it looks like with the new update I just received to my iOS app, that many - but not all - of the labels have been restored. I don’t really understand why some are back working, but others not.

@TAustin
I would guess the fix applies only to capabilities with single attribute.
Multy attribute capabilities are not affected, even if only single attribute is used in presentation (for this matter, even supported values attribute breaks the fix)

Not sure about that: I have a number of capabilities with only one attribute that still haven’t reverted back to the correct label, while others have.

What are you seeing @Mariano_Colmenarejo ?

Hi @TAustin

I explained it three posts above.

All my custom capabilities have a single attribute.

What happens to me happens to you, some capabilities show the label of the presentation. (those that in previous app were shown without title )

The ones that in previous app displayed the name and attribute of the capability now show only the name of the capability.

what I don’t understand, neither before nor now, is that capabilities that have identical presentations are displayed differently.

I thought the difference could be that the ones that now show up well, their profiles use a custom vid, but it doesn’t fit 100% and I’m too shy to keep doing tests and tests. :cold_sweat:

@TAustin

My guess is that this is due to another issue, that changes to capability presentations are not always propagated (or propagated very slow).
I changed a name of existing capability and then updated the device profile with the new name, then repaired the device and could see the change immideately. This is for several capabilities