Git Product home page Git Product logo

samsungrac's People

Contributors

atxbyea avatar kirichkov avatar sebuzet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

samsungrac's Issues

Not working since HAS Update

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 PM

Error 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`

**

SSL Error 2878 aircon

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'

samsung_2878.txt

If i disable the cert i get SSLv3 error

climate:

  • platform: climate_ip
    config_file: "samsung_2878.yaml"
    ip_address: "10.10.2.XXX"
    token: "d76b7f82-3d31-4635-89a6-2b0ad192xxxx"
    cert: "/config/custom_components/climate_ip/ac14k_m.pem" #set as '' to skip certificate verification
    mac: "BC:8C:CD:D6:XX:XX"
    friendly_name: "Hallway AC"
    debug: "true"

running HASSIO
python_version | 3.7.3
version | 0.94.4
virtualenv | false

Any help would be great
Thanks

Possible regression? "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."

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?

Hassio Error

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

Detected I / O inside the event loop

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

info

Hello, I use this component with samsung old prodocol 2878. How I can start my clima in heat mode ???

Climate_ip Warning after HA 109 Update

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)

Configuration.yaml multiple devices samsung 2787

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

New Certificate and ssl configuration

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

error after last hassio update 0.102.1

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?

Import Error on upgrade to Python3.8

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.

unique id not assigned

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?

Get token

@SebuZet
Hello Ho I can get token from raspberry?
Can you help me?
My AC Samsung it is with port 2878

Polling rate

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

sorting_bootstrap ubuntu 20.04 python 3.9

(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'

Incompatible with Python 3.10 - TypeError: wait() got an unexpected keyword argument 'loop'

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

Ports 8888 and 2787 closed, random ports open

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?

MIM-H04UN

Do you think it will work with MIM-H04UN too?

Temperature not converted

I'm using an MIM-H02 to control a Samsung airconditioner. My default temperature unit is Celcius.

When reporting the temperature, climate_ip incorrectly returns the temperature in Farenheit (but stating that it is in Celcius).

temp_bug

Issue with IR remote control and Climate_IP

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

HA 0.96

From version 0.96 the custom component no longer works. many parameters have changed, is the component updated?

Thank you

Cannot control the AC

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.

Problem

@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?

'Could not resolve host' issue on MIM-H03

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

Integration 'climate_ip' not found.

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.

api.smartthings.com

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

Support for Wind-Free options

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.