The device does not seem to have access to the powermeter capability. My best guess is, that either, the data shown in the energy monitor tab is assembled from the power-consumption-report locally (if this is the case, how does one have to interpret this data?), or it is done via some kind of subscription. However, I was unable to find specific information about this.
so the lowest charted interval is a day (yep it sucks). If you watch one washer operation and note the starting time and ending time, you can get the “average power” which is pretty dull but better than what you have now.
If the day “energy” says it consumed 1KWH, and it ran for 30 minutes (0.5 hour), then the “average power”= 1000/0.5 = 2000watts.
I dislike smart appliances for this kind of reason and others. You only get what get, unless you want to develop the wheel again, and maybe you can’t or don’t want to. Manufacturer wants to lock you in and hopefully rent your data back to you. Quite a racket.
You can workaround by picking a “smart metering plug” with better supported stream data, OR use an inline dumb meter like “Kill-a-watt” around $25
If you got that result by making a query to https://api.smartthings.com/v1/devices/deviceID/status, then, that data is not available in the API.
This is something common for OCF devices, as they work on a plugin level and not an API level. Here are more details about how it works:
I can open a report about this for further investigation, to do this, I would need you to help me with the following info:
Select the time period and confirm - In this step, please select “Until turned off”, once I get the corresponding info, I’ll let you know.
In case we need to enable it again, I’ll contact you directly.
I don’t see why an investigation would be helpful in this case, as this information is definitely not in the device-status. Still, the device model is SAMSUNG WW81T854ABT/S2.
The APIs do not work via OCF, but the profile is the manifest of what values are available to be accessed from there.
Does this mean one has to create a profile for a given device via the api with the correct components in order to access data usually shared only via CoAP? Is there (generally) a possibility of accessing the data via the api or not?
I don’t think access to my personal data is necessary in order to answer these questions, as they are, to my understanding, unrelated to me or the washer model, but instead are about access to values usually only shared via CoAP. If this is incorrect, please let me know.
No, only the manufacturer, who creates the device handler defines the capabilities of its metadata (device profile). Sorry for the confusion.
For other device types, yes. For example, Edge devices (Hub-Connected), ST Schema, Direct-Connected.
However, only the device manufacturer (that certifies their devices with SmartThings) defines which type of handler is used.
If, they give you the option to use an API to see the device info (measurements), you could create a workaround to see that info in the ST API.
That access is to get the device’s info registered in ST (device ID, Hub ID, presentation, capabilities available), with the device Ids, the team could find event logs and gather more info.
But we understand if you don’t want to proceed with a further investigation.
Sure! For example, there are some manufacturers that allow you to get info, or send commands to the device using its IP address, which means they have those endpoints configured to return the corresponding info.
If you can get data like that, you could create a “virtual device” that would interact with the device.
LAN driver (Only if the requests to the device are local and not through a Cloud because so far, drivers don’t support access to the public Internet to make requests)
This option requires a SmartThings Hub compatible.
ST Schema. This is the easiest in case the requests that you can make to the device are something like “https://cloud.com/…”
You need to host this integration on your own (your local system or a cloud like AWS) because it’s not saved in the Hub.
Part of the development is to create a device profile with the capabilities you need, and you can update their status in the ST API.
This way, when you make a request to https://api.smartthings.com/v1/devices/deviceId/status, you would get the value of each capability.
But, this depends on the functions provided by the manufacturer (Samsung).
@anker, do not expect miracles. SmartThings is a Samsung company only since 2014, and Samsung has a tendency of implementing things in many different ways and then cancelling them and leaving them without any documentation and support.
You will probably see OCF or Artik naming in things…
It could be worse. My washing machine has been connected a zillion times to SmartThings. It works when it gets connected. Access to the device works in the app, power consumption shows up, sends notification when the washing finished.
But after a day or so the device shows up as disconnected and cannot be accessed anymore. The status updates on the tile in the app, and it send notifications when the load finished, but the power consumption and any other details are not accessible, because the device is “disconnected”.
@anker, just out of curiosity, does your washer works with SmartThings Energy?
Otherwise, probably cheaper and takes less effort just to buy a measuring plug to get what you want out of the device.
Consider that, someone in SmartThings has to spend time to try to figure out how they coded the app and the device handler for that product, which is actually manufactured by the SAME company, and probably has the “Works with SmartThings” logo on it.
And it is not a 5 years old product like when they first imagined the current API…
Thank you for the explanation. According to the manual, one can get the source of the software that runs on the machine. I have started an inquiry with samsung regarding this, could be interesting regardless of results. I can’t imagine they will just send me the sourcecode for a washer though ^^.
I have noticed this aswell. I got the feeling that the api was more reliable than the app, but since at first I was under the illusion, that the app was talking to the same api, I thought getting the energy data has to be possible somehow. If I knew how difficult it was, I would have just moved on immediately.
Yes, I’m using those already for different things, it would just have been neat to use the already existing data.
I’ve owned a few samsung devices over the years and I’ve always had the opinion that they make better hardware than they do software. Still, getting a notification when the machine is finished, is probably the most important feature and a pretty cool qol upgrade that not many manufacturers offer, while remotely adding rinse cycles and starting the machine is basically just a gimmick that I can’t imagine anyone regularly uses.
And not just Samsung devices, although you’d think they would be more compatible with ST. LG has limited data accessibility as well. So, when I bought a new dishwasher (Bosch), I just used the smart plug approach, cheaper, real-time data with the ability to turn it off, which is much better than my other “smart” appliances…
Actually my dishwasher, also Bosch, I wouldn’t put on a smart plug, because it has a flood prevention system and it shouldn’t be powered off.
If the machine detects a leak, it shuts of automatically the water, but for that it must be plugged in.
I primarily added it to see the energy use, so don’t plan to turn it off much. As I understand it, the flood prevention is only active when running, but even if that’s not the case, I have a separate flood sensor for the dishwasher and under the sink, as that seems to be the most leak prone area.