-
-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SmartThings Air Conditioner - No humidity value #57509
Comments
smartthings documentation |
Hey there @andrewsayre, mind taking a look at this issue as it has been labeled with an integration ( |
Hi, I ran in the same issue. There are two issues in the smartthings Integration. One is that in the climate.py the humidity attribute is not set. The other one is that the humidity and power meter capabilities are assigned to the climate instance, so they do not list as sensors, which in my opinion they should. Easy fix: Comment out the Capability.power_consumption_report, and Capability.relative_humidity_measurement, from climate.py
and/or add:
as the last lines in climate.py you can do this by copying the repo, editing it and adding it as a custom component to Home Assistant I will make a pull request soon, if this does not get fixed. There are some other minor issues that I'm working to fix too. |
@andrewsayre BTW is help needed adding custom.capabilities to pysmartthings? I am working on this for myself. There are so much capabilities missing from samsung air conditioners. |
Thank you so much @veista I have it done via rest command for now because I don't touch source code of HA libs but it would be great to apply your changes in official code. |
Thank you @veista |
You are welcome @metropt simplest form:
If you want to go fancy you can poll the state by sending only:
Then polling the Execute Data and parsing the Light_On or Light_Off from it, then return the result. Easiest way to add the volume is adding it as a switch, copy the core repo from github, extract the smartthings folder. Then edit the files and insert them into a folder named custom_components. Replace this in the switch.py
I get the feeling that @andrewsayre will not accept the custom. capabilities into pysmartthings. If he doesn't then you have to edit the core files (device.py and capability.py) and you have to do this every time the core updates. I'm thinking of making my own integration, but it would take a lot of time. |
@metropt though be warned, this is a bad example for the switch. If you have another device with audio volume capability it will also turn out as a switch. I have made better code with number entity for audio volume, but this is how I do it myself, since the audio volume is not used anywhere else. Also the AC only does something when at 0 or 100. |
@metropt If you want to do it the proper way: Create a number.py file in the smartthings folder and put this in it:
then edit the const.py file and add the number device:
|
@metropt actually I figured out why I wasn't getting the push updates from the Execute Data. But still it is not wise to add it as a switch if you have any other smartthings devices. |
But now I figured out how to add the all of the capabilities without modifying the pysmartthigs library. Will be back with a fullish support of the samsung AC:s. Still a lot of work but it is doable. |
@metropt , @dimmuboy Here is a custom library for you. https://github.com/veista/smartthings |
Unbelievable! Great work @veista it looks very well 👍 |
@veista thank you :) Is it possible to install it without HACS? |
Yes. Just copy the files to custom_components/smartthings and use normally from integrations |
@veista you're crazy man! that works perfectly :) |
@veista after add the custom component do I need to add the devices again? |
Please raise any issues to https://github.com/veista/smartthings/issues. It is recommended to add the devices again. This removes any ghost entities automatically. |
Everything seems to be working and I didn't need to add the devices again :) |
I'm trying to understand the changes you made @veista. I can't understand why
|
Ok. By default (in the default climate card) HA doesn't show these attributes (power and humidity) and that is my reasoning. Current temperature is shown so it would be redundant. You can add it yoursef by extracting the attribute in config yaml, or by editing the custom component. Also I think the default use case of power would be to add it to energy tab, this just makes things more convenient. |
At risk of thread drift, do you think this solution could address the no temperature or setpoint values on my Samsung refrigerator: I do have the smartthings integration, but don't have the smartthings folder in my custom_components folder, so none of the files mentioned above. Any insights? |
You can create an issue here: https://github.com/veista/smartthings |
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. |
The problem
My AC in does not show any humidity value in Home Assistant but when I can get it via pysmartthings manually
What is version of Home Assistant Core has the issue?
2021.10.2
What was the last working version of Home Assistant Core?
No response
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/
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
I use this code to get data from my AC via pysmartthings directly
and I got this without any problems
The text was updated successfully, but these errors were encountered: