[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