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:
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.
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”?
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!
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
Upload the translation file to update the device profile. Use the following command on ST CLI, replacing {profileId} with your device profile ID:
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?
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!
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.
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.
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!
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.
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