bakernigel / smartthings

A Home Assistant custom integration for SmartThings
Apache License 2.0
2 stars 0 forks source link

Some sensor values are not working (unknown) #2

Open Mathea90 opened 1 week ago

Mathea90 commented 1 week ago

I have a side-by-side Samsung fridge with a USB wifi dongle connected with Smartthings and some sensor values only show "unknown" in HASS. Fridge model: Samsung RS8000 (RS6GN8222S9/EG) Wifi dongle: HD2018GH

Working sensor values:

Values that are not working (Sensors are created but only show "unknown"):

is it possible to fix this behavior so that all sensor data is shown in Home Assistant? Thank you very much for the integration!

Edit: I added the data export file of the device attributes. The fridge indeed does not send those values. Is there an explanation of what the problem could be? Device Attributes.csv

Bildschirmfoto 2024-09-03 um 18 04 21
bakernigel commented 1 week ago

I suspect that the device is not reporting any values for these sensors but to confirm please could you: Go to https://my.smartthings.com/advanced and go to Control and View Your Devices. Select the device that is having the issue. Use the "Export Data" button for the Attributes and save as a CSV. Attach the CSV file to the issue.

Mathea90 commented 1 week ago

I added the data export file of the device attributes to my original post. The fridge indeed does not send those values. Is there an explanation of what the problem could be? I am able to see energy consumption data in the Smartthings app. I find it under "Energy-Monitor".

bakernigel commented 1 week ago

Sorry, missed seeing the CSV. Yes, it seems the device does not provide any energy readings to the API. My fridge has a whole bunch of data under powerConsumptionReport which the API reports to HA. I don't know how the Samsung App is getting the data. Maybe via a Samsung installed app. If you go to the https://my.smartthings.com/advanced website and select Installed Apps on the left, what do you see ?

Mathea90 commented 1 week ago

Previously, it was just my Home Assistant app but now I installed the "Energy" app, which now shows up in the advanced view. Unfortunately, I am not able to add my fridge to this app. It even says that the device is not supported :( This seems to explain the problem with the unknown sensor values, so I'm afraid it will not be possible to sync the energy data with HA. Nevertheless, I'm curious why energy data can be shown in the app (screenshot) and if it's possible to integrate it to HA. Bildschirmfoto 2024-09-03 um 21 00 30 jpeg

bakernigel commented 1 week ago

It's as I suspected. The energy measurements you see in the Smartthings app are coming from a separate Samsung app provided by Samsung.

If you look at https://my.smartthings.com/advanced website -> Installed Apps you should see an app called Smartthings Energy which I think uses some sort of AI to calculate energy usage. I'll do some more digging but I'm pretty sure HA does not have access to the same data as this app. Samsung_Installed_Apps