SmartThings Capabilities for Energy Monitoring

Hello,
I’m integrating an IOT Cloud Connect Device in Smart Things.
I would like to output the enrgy consumption measured by my device over time, but i can’t find the right st.schema.

I tried:

  • EnergyMeter, but it only outputs a number and doesn’t have any reference to time
  • PowerMeter , it is ok and has a little bar chart icon i can press to show the power over a range of time ( I would like to do something identical but for energy (Wh) not power (W) !

I found on some older threads this picture:
image

Thi is exactly the widget i would like to have for my device, but i can’t find any documentation about it.
A number with the energy consumption, a colored bar and a bar chart to see the energy consumption over time.

Here is a link to the thread where i found the use of this widget:

Can you please help me to find out how to use this capabilities?

If it is not a standar capabilities, how i can make a custom capabilites whit this attributes? I’ve tried to make a custom capabilities but it doesn’t show anytyhing on the dashboard page.

For reference, the Eve Energy Matter smart plug uses these three capabilities:

  - id: powerMeter
    version: 1
  - id: energyMeter
    version: 1
  - id: powerConsumptionReport
    version: 1

I already tried powerConsumptionReport, but it doesn’t display anything ( any widget at all)

Hi, @emanuele.d1994. Welcome to the SmartThings Community!

The standard capability has a special UI that allows you to see the chart and change of colors, I remember energyMeter used to have it, but I’ll check with the engineering team if this is expected or if it’s a bug.
As a side note, custom capabilities cannot be configured to show something similar.

Thank you, I hope you can find an answer to this problem or an alternative to this capability to display energy consumption in Wh as a number and in a bar chart .

I have one more question , since i’m making a custom device i made different components with different names, is there a way to rename the “main” component to “Home”?

Thank you again

@emanuele.d1994 Does it depend on where you created it, in the Developer Workspace or in the CLI? to see what solution we could give.

Hello, I created the Device Profile on the Developer Workspace .
If there are solutions for my problem it would be great.

Otherwise I could also switch to the CLI if in that way is possible to achieve the result i’m aiming for (a better energyMeter presentation combined with the possibility to change the name of the “main” component to “Home”.

Thank you all for your support , I appreciate it much!

Hello @emanuele.d1994,

Here is what you can do:

  1. Create a translation file (e.g., en.yml) with the desired labels and descriptions:

    tag: en
    components:
      main:
        label: Home
        description: Controls power to all outlets
      outlet1:
        label: Outlet One
        description: Switchable outlet one power
      outlet2:
        label: Outlet Two
        description: Switchable outlet two power
    
  2. Upload the translation file to update the device profile. Use the following command on ST CLI, replacing {profileId} with your device profile ID:

    smartthings deviceprofiles:translations:upsert {profileId} -i en.yml
    

This will allow you to rename the “main” component to “Home” and adjust other component labels as needed.

Hi @Luis_Humberto_Medina , I have a problem with the translation, i can change the translation for every component except for the “main” component, which still appears as “main”. Is there anyway to translate main?

1 Like

Hi @emanuele.d1994,

Could you try running the following command to see what translations are currently associated with your profile?

smartthings deviceprofiles:translations {profileId}

This should list all the translations linked to your profile.

If you see the translations listed, you can check the specific details of the English translation by running:

smartthings deviceprofiles:translations {profileId} en -y

If the label for “main” still shows as “main” in the output, let me know. You can follow the steps to update the translation by modifying the label as needed, according to the app’s configuration.

Let me know how it goes, or if you need any further assistance!



Here the steps you suggested: As you can see the only component where the label is not changed is the Main component.

The things i would like to change too are the inside labels:
“Contatore di energia”
and
“Misuratore alimentazione”

If there is any way to change them since i’m using production smart things capabilites

I can see the issue you’re encountering. You’ve correctly added the tag for English, but your app is set to Italian. The correct tag for Italian is “it,” but I’m not completely sure about the tag, so please try it and let me know the result.

Make sure to add the tag for Italian (it) in the translation configuration to match the language setting of your app. This should resolve the problem with the labels displayed on your device.

Let me know if you need any further assistance!

Thank you for the answer, i modified the tag for the italian transaltion to “it”.

I updated both translations files: en and it .
It seems the app is always reading en.

So i deleted the it translation file throug the cli. Now there is only the en file.

I tried to modify some labels in the “en” translation file and obtained the expected result. The only component that still doesn’t change is the “main” component.

I don’t know why it always displays as “Main”

@emanuele.d1994,

You could try changing the language of the app or the device to English, relaunch the app, and see if it works correctly. This way, we can confirm if there is indeed a bug, and we can proceed to report it if necessary.

Let me know how it goes or if you need further assistance!

I changed the device language to english, and got this result.
Still the only label unchanged is “main”

@emanuele.d1994 could you enable access to your account following these steps:

  1. Confirm the email account registered in the forum is the same one you use for SmartThings. If not, please share it with me over DM.
  2. Enable support access to your account:
  1. Go to the SmartThings Web (my.smartthings.com)
  2. Log in to your Samsung Account
  3. Select Menu (⋮) and choose Settings
  4. Toggle on Account Data Access
  5. Select the time period and confirm - In this step, please select “Until turned off”, once the team finishes, we’ll let you know so you can disable it again.

I will check your profile details so I can replicate the issue.

Yes i’m using the same email, i enabled the data access as requested.

Thank you for your support

Hi @emanuele.d1994 ,

Please ensure that you create a new profile and verify that the app isn’t caching the initial profile configuration with the translations you set earlier.

You could try emptying the app’s cache. If you share your phone model with me, I can provide more specific steps for clearing the cache. In the meantime, try creating a new profile using the file attached below.

I didn’t encounter any issues when attempting this myself. Additionally, could you share the version of the CLI you are using?

Here’s a file that you can try:

tag: en
components:
  main:
    label: Home
    description: Controls power to all outlets
    capabilities:
      refresh:
        label: Refresh
      healthCheck:
        label: Health Check
      energyMeter:
        label: Energy Meter
      powerMeter:
        label: Power Meter

  fotovoltaico:
    label: Photovoltaic
    description: Power monitoring for photovoltaic system
    capabilities:
      powerMeter:
        label: Power Meter

  standby:
    label: Standby
    description: Energy usage in standby mode
    capabilities:
      energyMeter:
        label: Energy Meter

  elettronicaEluci:
    label: Electronics and Lights
    description: Power monitoring for electronics and lights
    capabilities:
      energyMeter:
        label: Energy Meter

  frigorifero:
    label: Refrigerator
    description: Power monitoring for refrigerator
    capabilities:
      energyMeter:
        label: Energy Meter

  forno:
    label: Oven
    description: Power monitoring for oven
    capabilities:
      energyMeter:
        label: Energy Meter

  lavatrice:
    label: Washing Machine
    description: Power monitoring for washing machine
    capabilities:
      energyMeter:
        label: Energy Meter

  lavastoviglie:
    label: Dishwasher
    description: Power monitoring for dishwasher
    capabilities:
      energyMeter:
        label: Energy Meter

  microonde:
    label: Microwave
    description: Power monitoring for microwave
    capabilities:
      energyMeter:
        label: Energy Meter

  condizionatore:
    label: Air Conditioner / Heat Pump
    description: Power monitoring for air conditioner and heat pump
    capabilities:
      energyMeter:
        label: Energy Meter

  asciugatrice:
    label: Dryer
    description: Power monitoring for dryer
    capabilities:
      energyMeter:
        label: Energy Meter

  ferroDaStiro:
    label: Iron
    description: Power monitoring for iron
    capabilities:
      energyMeter:
        label: Energy Meter

Looking forward to your update!

Thank you for this example, i will let you know if still not working

1 Like