home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.04k stars 31.07k forks source link

No power or energy values for Samsung aircon #95094

Open thedude911 opened 1 year ago

thedude911 commented 1 year ago

The problem

I successfully used the Smartthings integration with my Samsung windfree aircon, it also went quite smoothly with the Smartthings token and webhook. Nevertheless, there were 13 entities created, which do not really fit to the Samsung aircon (e.g. the entitiy fanmode is missing, which is quite crucial). What I do get is the basic info if the device is turned off or on, and some basic values like temp, humidity and volume. Besides the volume being always 100% even if I use the noise reduction mode, most painfully all the other valies keep being empty, especially the power and energy readings are always "unknown".

What version of Home Assistant Core has the issue?

2023.6.2

What was the last working version of Home Assistant Core?

none

What type of installation are you running?

Home Assistant OS

Integration causing the issue

smartthings

Link to integration documentation on our website

https://www.home-assistant.io/integrations/smartthings

Diagnostics information

home-assistant_2023-06-23T04-58-47.376Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2023-06-23 06:44:27.006 DEBUG (MainThread) [pysmartapp.smartapp] 1654fa43-f7e6-f133-5eae-bc9ed326f811: EVENT received for installed app fe6856b6-c3a6-45c7-96d7-44958b4c1471.
2023-06-23 06:44:27.007 DEBUG (MainThread) [homeassistant.components.smartthings] Push update received: {'location_id': 'b3d1478f-a323-43c0-87dd-f934f2848d96', 'device_id': '4afd7c21-cebb-306a-0d8a-4e1cbcbb3503', 'component_id': 'main', 'capability': 'switch', 'attribute': 'switch', 'value': 'off', 'data': {}}
2023-06-23 06:44:27.008 DEBUG (MainThread) [homeassistant.components.smartthings.climate] Device Raumklimaanlage (4afd7c21-cebb-306a-0d8a-4e1cbcbb3503) returned an invalid supported AC mode: wind
2023-06-23 06:44:54.045 DEBUG (MainThread) [pysmartapp.smartapp] 98ceecbc-5950-2690-ddd9-44f34e3ed835: EVENT received for installed app fe6856b6-c3a6-45c7-96d7-44958b4c1471.
2023-06-23 06:44:54.047 DEBUG (MainThread) [homeassistant.components.smartthings] Push update received: {'location_id': 'b3d1478f-a323-43c0-87dd-f934f2848d96', 'device_id': '4afd7c21-cebb-306a-0d8a-4e1cbcbb3503', 'component_id': 'main', 'capability': 'switch', 'attribute': 'switch', 'value': 'on', 'data': {}}
2023-06-23 06:44:54.048 DEBUG (MainThread) [homeassistant.components.smartthings.climate] Device Raumklimaanlage (4afd7c21-cebb-306a-0d8a-4e1cbcbb3503) returned an invalid supported AC mode: wind
2023-06-23 06:45:30.960 DEBUG (MainThread) [pysmartapp.smartapp] d7dcc6ab-2309-7a71-b136-42642eac4901: EVENT received for installed app fe6856b6-c3a6-45c7-96d7-44958b4c1471.
2023-06-23 06:45:30.962 DEBUG (MainThread) [homeassistant.components.smartthings] Push update received: {'location_id': 'b3d1478f-a323-43c0-87dd-f934f2848d96', 'device_id': '4afd7c21-cebb-306a-0d8a-4e1cbcbb3503', 'component_id': 'main', 'capability': 'airConditionerFanMode', 'attribute': 'fanMode', 'value': 'low', 'data': {}}
2023-06-23 06:45:30.963 DEBUG (MainThread) [homeassistant.components.smartthings.climate] Device Raumklimaanlage (4afd7c21-cebb-306a-0d8a-4e1cbcbb3503) returned an invalid supported AC mode: wind
2023-06-23 06:55:00.786 DEBUG (MainThread) [pysmartapp.smartapp] b4a32703-11f7-71ae-a637-916da282dc65: EVENT received for installed app fe6856b6-c3a6-45c7-96d7-44958b4c1471.
2023-06-23 06:55:00.787 DEBUG (MainThread) [homeassistant.components.smartthings] Push update received: {'location_id': 'b3d1478f-a323-43c0-87dd-f934f2848d96', 'device_id': '4afd7c21-cebb-306a-0d8a-4e1cbcbb3503', 'component_id': 'main', 'capability': 'temperatureMeasurement', 'attribute': 'temperature', 'value': 26, 'data': {}}
2023-06-23 06:55:00.787 DEBUG (MainThread) [homeassistant.components.smartthings.climate] Device Raumklimaanlage (4afd7c21-cebb-306a-0d8a-4e1cbcbb3503) returned an invalid supported AC mode: wind
2023-06-23 06:55:25.210 DEBUG (MainThread) [pysmartapp.smartapp] 49ef1dc7-005c-a3ec-534f-5e76ac65a4b9: EVENT received for installed app fe6856b6-c3a6-45c7-96d7-44958b4c1471.
2023-06-23 06:55:25.211 DEBUG (MainThread) [homeassistant.components.smartthings] Push update received: {'location_id': 'b3d1478f-a323-43c0-87dd-f934f2848d96', 'device_id': '4afd7c21-cebb-306a-0d8a-4e1cbcbb3503', 'component_id': 'main', 'capability': 'airConditionerFanMode', 'attribute': 'fanMode', 'value': 'auto', 'data': {}}
2023-06-23 06:55:25.212 DEBUG (MainThread) [homeassistant.components.smartthings.climate] Device Raumklimaanlage (4afd7c21-cebb-306a-0d8a-4e1cbcbb3503) returned an invalid supported AC mode: wind
2023-06-23 06:55:47.941 DEBUG (MainThread) [pysmartapp.smartapp] 053f9262-05c6-a17d-0a42-1ec18125e469: EVENT received for installed app fe6856b6-c3a6-45c7-96d7-44958b4c1471.
2023-06-23 06:55:47.943 DEBUG (MainThread) [homeassistant.components.smartthings] Push update received: {'location_id': 'b3d1478f-a323-43c0-87dd-f934f2848d96', 'device_id': '4afd7c21-cebb-306a-0d8a-4e1cbcbb3503', 'component_id': 'main', 'capability': 'temperatureMeasurement', 'attribute': 'temperature', 'value': 27, 'data': {}}
2023-06-23 06:55:47.943 DEBUG (MainThread) [homeassistant.components.smartthings.climate] Device Raumklimaanlage (4afd7c21-cebb-306a-0d8a-4e1cbcbb3503) returned an invalid supported AC mode: wind
2023-06-23 06:56:23.544 DEBUG (MainThread) [pysmartapp.smartapp] 68225ebc-d932-2c30-5234-b8b57b971b9b: EVENT received for installed app fe6856b6-c3a6-45c7-96d7-44958b4c1471.
2023-06-23 06:56:23.546 DEBUG (MainThread) [homeassistant.components.smartthings] Push update received: {'location_id': 'b3d1478f-a323-43c0-87dd-f934f2848d96', 'device_id': '4afd7c21-cebb-306a-0d8a-4e1cbcbb3503', 'component_id': 'main', 'capability': 'temperatureMeasurement', 'attribute': 'temperature', 'value': 26, 'data': {}}
2023-06-23 06:56:23.546 DEBUG (MainThread) [homeassistant.components.smartthings.climate] Device Raumklimaanlage (4afd7c21-cebb-306a-0d8a-4e1cbcbb3503) returned an invalid supported AC mode: wind

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @andrewsayre, mind taking a look at this issue as it has been labeled with an integration (smartthings) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `smartthings` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign smartthings` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


smartthings documentation smartthings source (message by IssueLinks)

andrewsayre commented 1 year ago

Samsung appliances don't always properly update the standard capabilities in SmartThings. Please provide the output of the following command and I'll see if there's anything that can be done:

curl -H "Authorization: Bearer YOUR_PERSONAL_ACCESS_TOKEN" https://api.smartthings.com/v1/devices/YOUR_DEVICE_ID/status
thedude911 commented 1 year ago

Thank you Andrew for your support!

{"deviceId":"4afd7c21-cebb-306a-0d8a-4e1cbcbb3503","name":"Samsung Room A/C","label":"Raumklimaanlage","manufacturerName":"Samsung Electronics","presentationId":"DA-AC-RAC-000003","deviceManufacturerCode":"Samsung Electronics","locationId":"b3d1478f-a323-43c0-87dd-f934f2848d96","ownerId":"2330a0ac-bb16-1e2d-8e65-3259ff8899fd","roomId":"a2d12ea9-a267-4df8-807f-75f93dbee3e9","deviceTypeName":"Samsung OCF Air Conditioner","components":[{"id":"main","label":"main","capabilities":[{"id":"ocf","version":1},{"id":"switch","version":1},{"id":"airConditionerMode","version":1},{"id":"airConditionerFanMode","version":1},{"id":"fanOscillationMode","version":1},{"id":"temperatureMeasurement","version":1},{"id":"thermostatCoolingSetpoint","version":1},{"id":"relativeHumidityMeasurement","version":1},{"id":"airQualitySensor","version":1},{"id":"odorSensor","version":1},{"id":"dustSensor","version":1},{"id":"veryFineDustSensor","version":1},{"id":"audioVolume","version":1},{"id":"remoteControlStatus","version":1},{"id":"powerConsumptionReport","version":1},{"id":"demandResponseLoadControl","version":1},{"id":"refresh","version":1},{"id":"execute","version":1},{"id":"custom.spiMode","version":1},{"id":"custom.thermostatSetpointControl","version":1},{"id":"custom.airConditionerOptionalMode","version":1},{"id":"custom.airConditionerTropicalNightMode","version":1},{"id":"custom.autoCleaningMode","version":1},{"id":"custom.deviceReportStateConfiguration","version":1},{"id":"custom.energyType","version":1},{"id":"custom.dustFilter","version":1},{"id":"custom.veryFineDustFilter","version":1},{"id":"custom.deodorFilter","version":1},{"id":"custom.electricHepaFilter","version":1},{"id":"custom.doNotDisturbMode","version":1},{"id":"custom.periodicSensing","version":1},{"id":"custom.airConditionerOdorController","version":1},{"id":"custom.ocfResourceVersion","version":1},{"id":"custom.disabledCapabilities","version":1},{"id":"samsungce.deviceIdentification","version":1},{"id":"samsungce.dustFilterAlarm","version":1},{"id":"samsungce.driverVersion","version":1},{"id":"samsungce.softwareUpdate","version":1},{"id":"samsungce.selfCheck","version":1},{"id":"samsungce.individualControlLock","version":1}],"categories":[{"name":"AirConditioner","categoryType":"manufacturer"}]}],"createTime":"2023-06-19T20:11:29.162Z","profile":{"id":"cedae6e3-1ec9-37e3-9aba-f717518156b8"},"ocf":{"ocfDeviceType":"oic.d.airconditioner","name":"Samsung Room A/C","specVersion":"core.1.1.0","verticalDomainSpecVersion":"1.2.1","manufacturerName":"Samsung Electronics","modelNumber":"ARTIK051_PRAC_20K|10217841|60010523001411010200001000000000","platformVersion":"DAWIT 2.0","platformOS":"TizenRT 1.0 + IPv6","hwVersion":"ARTIK051","firmwareVersion":"ARTIK051_PRAC_20K_11230313","vendorId":"DA-AC-RAC-000003","vendorResourceClientServerVersion":"ARTIK051 Release 2.211222.1","lastSignupTime":"2023-06-19T20:11:21.748009Z"},"type":"OCF","restrictionTier":0,"allowed":null}#

thedude911 commented 1 year ago

any news on this?

thedude911 commented 1 year ago

@andrewsayre do you have an update on this?

issue-triage-workflows[bot] commented 10 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

thedude911 commented 10 months ago

Unortunately I never heard back from Andrew about the issue and it is also not resolved so far.

biopixen commented 10 months ago

Hi! I have the same issue @thedude911 were you able to figure it out anyway? In my case the "POWER" that is not updated (might be others as well but this is the only sensor that i use). It seems to have stopped working at around the 11th of December. Adding a screenshot of the power Graf. The fluxuations that happens after the 11th is probably due to restarting the service/server that sometimes seem to update the value.

aircon_power

biopixen commented 10 months ago

Found my issue. It was due to the fact that my reverse proxy certificate was wrong and the samsung smartthings integration was unable to connect back to my HA installation.

issue-triage-workflows[bot] commented 7 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

thedude911 commented 7 months ago

I dont know, the author obviously is not interested in fixing the issue, so what can I do dear robot.

tommymann1982 commented 5 months ago

I am facing the same issue. No energy stats from smartthings

lantuin commented 5 months ago

Same issue for me, I've three samsung A/C windfree, all of them have "Relative Humidity Measurement" but only one of them has also Energy and Power. I've tried with the official integration (this one) and also with the HACS integration (https://github.com/veista/smartthings)

tommymann1982 commented 5 months ago

Unfortunately I wasnt able to add this repository.

ThierryO commented 5 months ago

I am facing this issue too.

bedar89 commented 3 months ago

I have the same issue. Is there any update on this?

tommymann1982 commented 3 months ago

apparently no update available

alexskynet commented 2 months ago

I too have powerenergy set to zero on all my 4 aircons.

pvodoz commented 2 months ago

Same issue. No power and Energy stats for my washing machine...

alexskynet commented 2 months ago

Same here for all of my 5 windfree aircons. power sensors are not updated

1zun4 commented 1 month ago

I have the same problem with my Samsung washing machine.

All the power sensors are not updating or filled up with in-accurate data, only the non-power sensors marked in green are working: image

mballoni commented 1 month ago

Same issues with Aircon here.

Now even the temperature, humidity and overall state is not syncing back to HA

thedude911 commented 1 month ago

@andrewsayre is this still maintained by you?

Tux92 commented 1 month ago

Same for me with a washing machine as @1zun4 reported. To be precise also Enerdy and DeltaEnergy entity works, but no power.

tommymann1982 commented 3 weeks ago

Today I have got an update of the app (Android). There is new menu "energy" Screenshot_20241106-220817

thedude911 commented 3 weeks ago

No change for me as of today and with HA version 2024.11.0:

image
thedude911 commented 3 weeks ago

I would deprecate this sh***t from HA, anyone knows how to do that?

ward0 commented 1 week ago

I can't even add the smartthings integration, webhook error.

Any other solution for Samung Smartthings integration?

tommymann1982 commented 1 week ago

Use this link for the webhook

https://account.smartthings.com/tokens

ward0 commented 1 week ago

Use this link for the webhook

https://account.smartthings.com/tokens

This was solved by creating a separate application in Cloudfare for HA. With no JS challenge behind it.

ward0 commented 1 week ago

@tommymann1982 Where do i update this webhook? I used the HACS integration (https://github.com/veista/smartthings) it seems. With the official integration, it still doesn't work. Error 403... that is why you are proposing to use https://account.smartthings.com/tokens I think. But where do I change this? In the smartthings integration folder?