sebuzet / samsungrac Goto Github PK
View Code? Open in Web Editor NEWHome Assistant Climate Device for controlling (not only) Samsung AC
Home Assistant Climate Device for controlling (not only) Samsung AC
Hi,
I am trying to get this integration working with a new Samsung AC, (AR12TXFYAWKXEU) and it seems impossible to get the token with the suggested method, with a constant connection refused error.
I tried to dig a bit deeper into this and running NMAP from to the AC's IP shows that neithtr 8888 or 2787 are open. There seems to be one random port open which seems to change after a few hours, therefore not very predictable.
Also, tried to use the server.py and actest.py on the open port, however, no luck on that front as well.
Has anyone faced similar issues with quite new AC models?
Hi,
from version 0.109 to current version 0.114 there is still the problem of the warning:
#“Detected I / O inside the event loop. This is causing stability issues. Please report issue to the custom component author for climate_ip doing I / O at custom_components / climate_ip / connection_request.py, line 89: resp = session.request (** self._params)"
When will the Climate_ip component be updated?
Thanks
Hi!
I noticed that in the HA front end is not possible to set the climate entities (e.g. by assigning a room or exposing them to voice assistant), because the climate ip entitis do not have a unique ID set.
I even tried to assign one via yaml in tne configuration as customization of the etntitis, but the result is the same.
What can be done to overcome this?
Today I updated Hassio from 2021.5.5 to 2021.6.6 (no other changes on the configuration). After restarting the integration doesn't work:
Platform error climate.climate_ip - Integration 'climate_ip' not found.
Howdy,
I keep getting these error's
no controls or status are received by HASS
Sending command failed
Creating connecting failed!
and
Traceback (most recent call last):
File "/config/custom_components/climate_ip/samsung_2878.py", line 180, in send_socket_command
sslSocket.sendall(command.encode('utf-8'))
AttributeError: 'NoneType' object has no attribute 'sendall'
If i disable the cert i get SSLv3 error
climate:
running HASSIO
python_version | 3.7.3
version | 0.94.4
virtualenv | false
Any help would be great
Thanks
@SebuZet
Hello Ho I can get token from raspberry?
Can you help me?
My AC Samsung it is with port 2878
after last update we have this error:
Platform error climate.climate_ip - cannot import name 'ATTR_HVAC_ACTIONS' from 'homeassistant.components.climate' (/usr/src/homeassistant/homeassistant/components/climate/__init__.py)
Platform error climate.climate_ip - cannot import name 'ATTR_HVAC_ACTIONS' from 'homeassistant.components.climate' (/usr/src/homeassistant/homeassistant/components/climate/__init__.py)
solutions?
I revive this error:
2019-07-08 12:05:48 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for climate_ip which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-07-08 12:05:49 ERROR (MainThread) [custom_components.climate_ip.climate] Execution failed, unknown error
2019-07-08 12:05:51 ERROR (MainThread) [custom_components.climate_ip.climate] Execution failed, unknown error
Hi, I’ve been update Home Assistant core to version 109, and I have this Warning:
Dettagli registro (WARNING)
Logger: homeassistant.util.async_
Source: util/async_.py:120
First occurred: 18:44:52 (96 occurrences)
Last logged: 19:09:05
Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for climate_ip doing I/O at custom_components/climate_ip/connection_request.py, line 89: resp = session.request(**self._params)
Hello, I use this component with samsung old prodocol 2878. How I can start my clima in heat mode ???
Do you think it will work with MIM-H04UN too?
It seems that the SebuZet is not developing it anymore and the current repository version is not working with latest HA versions.
There is a working fork https://github.com/atxbyea/samsungrac
Do not use the samsungrac you find on HACS since is the one of this repo and does not work with latest HA.
hi
I've managed to integrate all the modern AC conditioners using the official api.smartthings.com API. Do you want me to create a PR? :-)
This allows for integration without exposing the home assistant instance to public Internet as the official integration does.
best
Jarek
Ciao,
i have 3 splits: 2 are working without the certificate, 1 is requiring it.
recently I was able to export a new certificate of Samsung and apply a small patch on the "samsung_2878.py" that is allowing both cases to work properly
Hi, My Climate_IP
Tried to reinstall, rollback versions and nothing is getting it to come back unfortunately
Logs show
**
`Logger: homeassistant.components.climate
Source: components/climate/init.py:245
Integration: Climate (documentation, issues)
First occurred: 6:06:53 PM (2 occurrences)
Last logged: 6:06:53 PMError adding entities for domain climate with platform climate_ip
Error while setting up climate_ip platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 438, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 709, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 804, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 556, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 597, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 562, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 245, in state
return HVACMode(self.hvac_mode).value
File "/usr/local/lib/python3.10/enum.py", line 385, in call
return cls.new(cls, value)
File "/usr/local/lib/python3.10/enum.py", line 710, in new
raise ve_exc
ValueError: '' is not a valid HVACMode`
**
Hy, i added 2 devices in my configuration.yaml, but i only see AC Living Room in my HA, what can i do to control the other one? Thanks alot.
climate:
platform: climate_ip
config_file: ‘/config/custom_components/climate_ip/samsungroom.yaml’
ip_address: …
token: …
mac: …
name: ‘AC BedRoom’
poll: True
debug: true
platform: climate_ip
config_file: ‘/config/custom_components/climate_ip/samsungliving.yaml’
ip_address: …
token: …
mac: …
name: ‘AC Living Room’
poll: True
debug: true
Hello. I would like to know if it would be possible add the Solidmation REST API with this integration as I read in the documentation that it can be integrated to any REST API but I don't fully grasp how to accomplish this. Any ideas? TIA
Hi
After upgrade to 0.102.0 Home Assistant and python upgrade to 3.8 (from 3.6), I got the following error in the logs and the climate_ip component is unavailable.
It cant import 'ATTR_HVAC_ACTIONS'
2019-11-21 15:54:40 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for climate_ip which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-11-21 15:54:40 ERROR (MainThread) [homeassistant.config] Platform error: climate
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/config.py", line 762, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/loader.py", line 231, in get_platform
cache[full_name] = importlib.import_module(
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/homeassistant/.homeassistant/custom_components/climate_ip/climate.py", line 21, in <module>
from homeassistant.components.climate import (ClimateDevice, DOMAIN,
ImportError: cannot import name 'ATTR_HVAC_ACTIONS' from 'homeassistant.components.climate' (/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/climate/__init__.py)
2019-11-21 15:54:40 ERROR (MainThread) [homeassistant.config] Platform error: climate
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/config.py", line 762, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/loader.py", line 231, in get_platform
cache[full_name] = importlib.import_module(
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/homeassistant/.homeassistant/custom_components/climate_ip/climate.py", line 21, in <module>
from homeassistant.components.climate import (ClimateDevice, DOMAIN,
ImportError: cannot import name 'ATTR_HVAC_ACTIONS' from 'homeassistant.components.climate' (/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/climate/__init__.py)
2019-11-21 15:54:45 ERROR (SyncWorker_1) [homeassistant.components.nut.sensor] NUT Sensor has no data, unable to set up
2019-11-21 15:54:46 WARNING (MainThread) [homeassistant.components.sensor] Platform nut not ready yet. Retrying in 30 seconds.
My error is:
2023-09-03 15:14:26.795 ERROR (SyncWorker_9) [custom_components.climate_ip.climate] Creating socket failed!
2023-09-03 15:14:27.402 ERROR (SyncWorker_6) [custom_components.climate_ip.climate] Error: Traceback (most recent call last):
File "/config/custom_components/climate_ip/samsung_2878.py", line 283, in create_connection
sslSocket.connect((cfg.host, cfg.port))
File "/usr/local/lib/python3.11/ssl.py", line 1379, in connect
self._real_connect(addr, False)
File "/usr/local/lib/python3.11/ssl.py", line 1370, in _real_connect
self.do_handshake()
File "/usr/local/lib/python3.11/ssl.py", line 1346, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1002)
I'm sorry if this is obvious lol, my token and MAC addresses are correct.
Hi
Is there a simple way to get off this warning in home assistant logs?
Thank you
Hello, some Samsung air conditioners have a Wind-Free function that is not currently supported. Would it be possible to add this feature in the future? I send attributes of my air conditioning with this function enabled:
hvac_modes: cool,heat,dry,fan_only,heat_cool,off
min_temp: 16
max_temp: 32
target_temp_step: 1
fan_modes: auto,low,medium,high
preset_modes: none,sleep,boost,home,comfort,quiet
swing_modes: off,vertical,horizontal,both
name: yaml
device_state: {"Devices": [{"Alarms": [{"alarmType": "Device", "code": "FilterAlarm_OFF", "id": "0", "triggeredTime": "2020-01-19T20:29:13"}], "ConfigurationLink": {"href": "/devices/0/configuration"}, "Diagnosis": {"diagnosisStart": "Ready"}, "EnergyConsumption": {"saveLocation": "/files/usage.db"}, "InformationLink": {"href": "/devices/0/information"}, "Mode": {"modes": ["Wind"], "options": ["Comode_Nano", "Sleep_0", "Autoclean_Off", "Spi_On", "FilterCleanAlarm_0", "OutdoorTemp_57", "CoolCapa_25", "WarmCapa_32", "UsagesDB_254", "FilterTime_1395", "ExtendOptionCode_1", "OptionCode_56506", "UpdateAllow_NotAllowed", "FilterAlarmTime_500", "Function_15", "Volume_100"], "supportedModes": ["Cool", "Dry", "Wind", "Auto"]}, "Operation": {"power": "On"}, "Temperatures": [{"current": 22.0, "desired": 24.0, "id": "0", "maximum": 30, "minimum": 16, "unit": "Celsius"}], "Wind": {"direction": "Fix", "maxSpeedLevel": 4, "speedLevel": 1}, "connected": true, "description": "TP6X_RAC_17K", "id": "0", "name": "RAC", "resources": ["Alarms", "Configuration", "Diagnosis", "EnergyConsumption", "Information", "Mode", "Operation", "Temperatures", "Wind"], "type": "Air_Conditioner", "uuid": "xxx"}]}
hvac_mode: fan_only
preset_mode: Comode_Nano
power: on
purify: on
auto_clean: off
beep: Function_15
special_mode: Comode_Nano
special_modes: off,sleep,speed,2step,comfort,quiet,smart
fan_mode: low
fan_max_mode: turbo
fan_max_modes: auto,low,medium,high,turbo
swing_mode: off
good_sleep: 0
temperature: 24
current_temperature: 22
friendly_name: climate_ip_yaml
supported_features: 57
My AC model: AR09MSPXBWKN
It looks like this mode is called "nano". Interestingly, this integration allows me to enable the "smart" function which is not available from the SamartThings application and IR remote control. Anyone know what this function does for?
Many thanks for the integration which has more possibilities than the one provided by the manufacturer!
PS: Is it possible to get into the energy consumption of air conditioning?
@atxbyea on my log there is this error::
Traceback (most recent call last): File "/config/custom_components/climate_ip/samsung_2878.py", line 189, in send_socket_command sslSocket = self.socket File "/config/custom_components/climate_ip/samsung_2878.py", line 245, in socket self.create_connection() File "/config/custom_components/climate_ip/samsung_2878.py", line 234, in create_connection sslSocket.connect((cfg.host, cfg.port)) File "/usr/local/lib/python3.8/ssl.py", line 1342, in connect self._real_connect(addr, False) File "/usr/local/lib/python3.8/ssl.py", line 1329, in _real_connect super().connect(addr) OSError: [Errno 113] Host is unreachable
why?
Hi, i have Hisense AC, and unique mode for integration in home assistant is this: https://github.com/deiger/AirCon but im not very pratic with mqtt... I've found this repo, it's possible to add this function? What do you think about it? Thanks!!!!
Hi.
I have a issue, when I turn off the air conditioner (previously activated via climate_ip) from its physical remote control, in Home Assistant I always see the air conditioner on.
Any operation carried out by the Samsung remote IR control is not updated on the Home Assistant in lovelace.
Can you help me? Thanks
From version 0.96 the custom component no longer works. many parameters have changed, is the component updated?
Thank you
Hi, after having installed a new version of ClimateIP HACS integration (4.1), my Samsung splits no longer appear.
In particular I have "these kinds of messages 2022-07-17 20:40:17 ERROR (MainThread) [homeassistant.components.climate] Setup of platform climate_ip is taking longer than 60 seconds. Startup will proceed without waiting any longer."
I tried gathering some info by increasing the log, but without luck.
I tried:
homeassistant.components.climate: debug
custom_components.climate_ip: debug
custom_components.samsungrac: debug
custom_components.climate_ip.samsung_2878: debug
What should I set to be able to provide more logs?
Getting script failure due to
Log in HA:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 447, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 680, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/config/custom_components/climate_ip/climate.py", line 161, in async_service_handler
await asyncio.wait(update_tasks, loop=hass.loop)
TypeError: wait() got an unexpected keyword argument 'loop'
Related 3.10 depreciation of term "loop"
https://docs.python.org/3.10/library/asyncio-task.html#id9
haas seems to have moved away from supporting loop=loop.
home-assistant/architecture#238
(env) root@vmi608411:/home/ubuntu/Target-ERP# python manage.py makemigrations
Traceback (most recent call last):
File "/home/ubuntu/Target-ERP/manage.py", line 30, in
execute_from_command_line(sys.argv)
File "/home/ubuntu/Target-ERP/env/lib/python3.9/site-packages/django/core/management/init.py", line 371, in execute_from_command_line
utility.execute()
File "/home/ubuntu/Target-ERP/env/lib/python3.9/site-packages/django/core/management/init.py", line 347, in execute
django.setup()
File "/home/ubuntu/Target-ERP/env/lib/python3.9/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/ubuntu/Target-ERP/env/lib/python3.9/site-packages/django/apps/registry.py", line 89, in populate
app_config = AppConfig.create(entry)
File "/home/ubuntu/Target-ERP/env/lib/python3.9/site-packages/django/apps/config.py", line 90, in create
module = import_module(entry)
File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'sorting_bootstrap'
Hey fellas,
Ive got a MIM-H03 for my samsung and when i go to run the Device ID command
It always comes up as ' curl: (6) Could not resolve host: CLIMATE_IP_HOST
Ive got it set to the correct IP address.
Previously the 'heatpump' controller has shown up in entities, but always with the error
'This entity is no longer being provided by the climate_ip integration. If the entity is no longer in use, delete it in settings'
Anyone got any ideas what could be going wrong?
Cheers
With an environment with a lot of ACs, how can I decrease polling rate (using rac devices, port 8888)? Now it is some seconds, would prefer 5 min or something like that. Plus: there is a resource /subscriptions but I do not know how to make profit from it
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.