Hello everyone,
I have a TP6X_RAC_16K Samsung AC that correctly reports energy power consumption via SmartThings App on mobile devices, but when querying the status via: https://api.smartthings.com/v1/devices/DEVICE_ID/status, no power consumption report is available.
What is the correct endpoint to contact in order to get the statistics?
Many thanks!
You can get it from one of two APIs:
Component Status
https://api.smartthings.com/v1/devices/{deviceId}/components/{componentId}/status
Example:
https://api.smartthings.com/v1/devices/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx/components/main/status
Capability Status
https://api.smartthings.com/v1/devices/{deviceId}/components/{componentId}/capabilities/{capabilityId}/status
Example:
https://api.smartthings.com/v1/devices/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx/components/main/capabilities/powerConsumptionReport/status
You can find the names for the component and capabilities in the device attributes of the device in the ST Advanced Web App.
Hello, thanks for your answer, unfortunately my device does not expose the powerConsumptionReport capability, but I can view from Smartthings app on iOS the power consumption of my AC unit. As you can see from the Advanced Web App view, my AC does not expose that capability. Is there a way to access that capability somehow?
Thanks!
Probably the cause is OCF protocol
There are 37 items in the attributes, but you are only looking at the first ten. Check the other pages or increase the number of items displayed.
Thanks for pointing this out, so no chance in having such capability?
Yes, sorry, not all my screenshots were included in my previous post with all the 37 items, but still no power consumption related capabilities.
Hi, @keyluke
Can you please share a screenshot of how you see that power consumption in the app?
I’m curious to see how it is presented there.
Hi @nayelyz,
here are the screenshots from the Smartthings app: I posted all the relative screenshots to reach the stats (sorry, my application is in italian, the power consumption is under “Impostazioni → Controllo Consumi”.
But, for the first time, I found a really strange behavior: if I am not on the samen LAN as the AC, I cannot reach the “Controllo Consumi” view, which is greyed out. I needed to use my personal VPN (I am outside my home currently) to access my home network and properly show the power report.
This is a behavior that recalls me the fact that when I query locally my AC via the 8888 port, I can extract a usage.db, but it is encrypted, I guess (see: NewGen Samsung AC Protocol - Bindings - openHAB Community).
The last screenshot is the graph with the power consumptions that I can filter by day, week or month.
Thanks!
Edit: Just realized I can post only a picture as new member, I wanted to show you all the path to reach that page on the app
Edit 2: I can access the power consumption report also outside my LAN, just needed to wait more to get the voice not grey and “clickable”
ooh so you enter the menu “Settings”, right?
Sorry but if you don’t find a capability that shows this information in the API, it means that the information isn’t exposed there and is only shown through the special UI of the device.
So, the suggestion here is to reach out to the device’s manufacturer and ask them about the support of exposing this information through a capability in SmartThings.

