Climate_IP - ClimateDevice for IP based units (not only Samsung AC)

It works perfect for me.
Samsung2878 on HA 96
Thank you for your work

Hi to all,
In HA 0.97.2
I tried to paste the new repo data,
i make a /config/climate.yaml
witch include :


- platform: climate_ip
  config_file: ‘samsung_2878.yaml’
  ip_address: ‘192.168.1.32’
  token: ‘xxxxxx-xx-xx-xxxxxx-xxxxxx‘
  cert: ‘ac14k_m.pem’
  mac: ‘xx:xx:xx:xx:xx:xx‘
  friendly_name: ‘Bedroom AC‘
  debug: true

also i have already on configuration file the:
climate: !include config/climate.yaml
and finally the only change on samsung_2878.yaml is the token and host params

I dont know what im doing wrong and im getting error.
Configuration invalidCHECK CONFIG

Invalid config for [climate.climate_ip]: [friendly_name] is an invalid option for [climate.climate_ip]. Check: climate.climate_ip->friendly_name. (See ?, line ?). Please check the docs at https://home-assistant.io/components/climate.climate_ip/

Sorry I should clarify I can switch it on in the services page (I get a quick double beep from the AC and it fires up) it wont turn on through the operation drop down menu in the addon

Please try the latest version and let me know.

Nice one! The AC fired straight up. Everything seems to work as advertised :smiley:

Hi again i forgot to paste the Error can you see why im getting this error on file check please?

@SebuZet I have the same error on" friendly_name" in configuration.yaml (with old device 2878).
It works only without friendly_name.

Thanks a lot for your great work!

EDIT: resolved replacing “friendly_name” with “name”.

Yes, Resolved my problem too!
Now i dont have any problem on confiqurator, But im trying to make it work im to call service climate.turn_off to see if it works but i cant find anything on entities to call the specific aircondition,
Can see my git files if im doing something wrong please?

Hi, please can you post a screen of your device state page.
Whit this I can make a list of all possible service call that you can do

Of course,here is my states:

Also i look at log files and im geting the same error with the user above @joelFORCE:

Error while setting up platform climate_ip
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 149, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File “/usr/local/lib/python3.7/asyncio/tasks.py”, line 442, in wait_for
return fut.result()
File “/config/custom_components/climate_ip/climate.py”, line 97, in async_setup_platform
device_controller = create_controller(config.get(CONF_CONTROLLER), config, _LOGGER)
File “/config/custom_components/climate_ip/controller.py”, line 68, in create_controller
if c.initialize():
File “/config/custom_components/climate_ip/controller_yaml.py”, line 109, in initialize
with open(file, ‘r’) as stream:
FileNotFoundError: [Errno 2] No such file or directory: '/config/custom_components/climate_ip/‘samsung_2878.yaml’

And second error:

climate_ip: error while creating controller!

Hi Chris, on your state screen don’t appear any climate device and as per your error log the climate_ip platform isn’t working.
Proceed like this, go in your config / custom_component folder and erase folder climate_ip than download again climate_ip platform from this link https://github.com/SebuZet/samsungrac and paste climate_ip folder in your custom_component folder.
Than when you have done reset two times your HA platform, it’s important than you reset two times.
Let me know if climate_ip platform start working after that.

I pasted new climate_ip without edit something inside,i rebooted 2 times the PI and still get the same error,
also i paste my platform on configuration file:

climate:  
    - platform: climate_ip
      config_file: ‘samsung_2878.yaml’
      ip_address: ‘192.168.1.32’
      token: ‘xxx-xx-xx-xx-xxxx‘
      cert: ‘ac14k_m.pem’
      mac: ‘xx:xx:xx:xx:xx:xx'
      name: ‘salon ac‘
      debug: true

I dont know what im doing wrong,i think i followed step by step the instructions…

Chriss sorry for the stupid question, but you avoid to post the token section or you don’t have fill?
Climate_ip platform in order to properly work need token section filled with your AC token

After the new pasted data i didnt enter the token and ip on the samsung_2878.yaml

Νow you can see my updated git that i have entered the token and the host on samsung_2878.yaml
also the host and token is on configuration file:

climate:
- platform: climate_ip
config_file: ‘samsung_2878.yaml’
ip_address: ‘192.168.1.32’
token: ‘xxxxxxxx-xxxx-xxxxx-xxxxxx‘
cert: ‘ac14k_m.pem’
mac: ‘xx:xx:xx:xx:xx:xx‘
name: ‘salon ac‘
debug: true

My samsung AC is compatible with old method so i guess must enter token and host only on samsung_2878.yaml right?
does it needs somewhere else to paste data?

No Chriss, you need to enter the token only on your core config.yaml.
This is my config:

climate:
 - platform: 'climate_ip'
   config_file: 'samsung_2878.yaml'
   ip_address: '192.168.0.101'
   token: 'token'
   cert: 'ac14k_m.pem'
   mac: 'mac'
   name: 'CONDIZIONATORE GIORNO'

# funzioni condizionatore giorno

input_boolean:

  condizionatore_giorno:
    name: ON/OFF cond. giorno
    initial: off
    icon: mdi:snowflake
    
  condizionatore_giorno_purify:
    name: ON/OFF cond. giorno purify
    initial: off
    icon: mdi:snowflake
    
  condizionatore_giorno_autoclean:
    name: ON/OFF cond. giorno autoclean
    initial: off
    icon: mdi:snowflake

  condizionatore_giorno_sleep:
    name: ON/OFF cond. giorno sleep
    initial: off
    icon: mdi:snowflake
    
  condizionatore_giorno_eco:
    name: ON/OFF cond. giorno eco
    initial: off
    icon: mdi:snowflake
    
  condizionatore_giorno_smart:
    name: ON/OFF cond. giorno smart
    initial: off
    icon: mdi:snowflake
    
  condizionatore_giorno_sleep_progress:
    name: ON/OFF cond. giorno sleep progress
    initial: off
    icon: mdi:snowflake
    
  condizionatore_giorno_eco_progress:
    name: ON/OFF cond. giorno eco progress
    initial: off
    icon: mdi:snowflake
    
  condizionatore_giorno_smart_progress:
    name: ON/OFF cond. giorno smart progress
    initial: off
    icon: mdi:snowflake

Like this I have another AC that work on the same platform, I don’t have made any change in the climate_ip folder.
Both my AC work on 2878

@Chris1989, file path looks strange. There is single before file name - inside the path. Make sure that filename in config section is given with correct format. Sometimes, when you copy and past some text editor can change quotes to differents.

I cant believe this was the problem!!! i the edit of and the entity appears!!!

climate:
- platform: climate_ip
config_file: ‘samsung_2878.yaml’
ip_address: ‘192.168.1.32’
token: ‘xxx-xxx-xxxxx’
cert: ‘ac14k_m.pem’
mac: ‘xx:xx:xx:xx:xx:xx’
name: ‘Bedroom ac’
debug: true

Now i have entity climate.bedroom_ac that is fully working thank you very much for your help @SebuZet , @skky88
Look my setup:
Aircon

It worked also for me
Many thanks!

HI Chriss, I am happy that you find a solution for your problem.
If you need some help with the varius service call possible with this platform let me know.

P.s. Just for your info, is better avoid to direct post on public forum the MAC address of your appliance and also Token, I suggest you to remove all this info from web (also from your HA folder on github)

Thanks again,
I’ll send you private to make some improvements on my automation about climate service calls.