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

Got my AC in HA now (samsung 2878 variant) after much frustration of getting the token.

Anyway, the bad app that comes with the AC shows power consumption, is it possible to get that in HA?

Hi,

can you help me for getting the token with samsung 2878?

Best Regards

yes. For the power consumption you need to add

    used_power:
      type: number
      status_template: '{% for key, value in device_state.items() %}{% if key == "AC_ADD2_USEDPOWER" %}{{value}}{% endif %}{% endfor %}'

at the end of the file samsung_2878.yaml

each unit is 100W consumed.
then add a template sensor in home assistant:

template:
  - sensor:
      - name: "consumo clima sala"
        unit_of_measurement: "kWh"
        state_class: total_increasing
        device_class: energy
        state: "{{ state_attr('YOUR_CLIMATE.ENTITY', 'used_power') * 0.1 }}"
        attributes:         
          last_reset: '1970-01-01T00:00:00+00:00'

Is there somewhere a clear list of which Samsung (and other) air-conditioners are supported? I want to buy 3 or more new air-conditioners for my new apartment and I want to make sure I buy models which are compatible with HA. Currently I think about Samsung WindFree with WiFi. I guess they are part of the “new generation”. But I want to be sure that there is not something like a brand new generation which could be encrypted and maybe does not work with HA anymore. Thanks!

Windfree AC can only be used with the SmartThings integration

1 Like

Thank you, returns a value.
Tho, seems to return total usage in life time.
Anyway to adjust this? Setting yesterdays date as last reset does not seem to help.

the sensor works good with the integrated energy usage.
but if you want a stand-alone sensor, you can use utility_meter

utility_meter:
  energy:
    source: sensor.consumo_clima_sala
    cycle: daily
1 Like

I’ve managed to set it up correctly, having a 2878 version, but even though my unit supports auto_clean and special_mode, these are not available in the HA card

Any idea how can I fix this?

Since 2022.7 it doesn’t work. Maybe Python 3.10 is the problem?

Thanks

I have no real idea how to fix the loop issue with this in climate.py, I know this is causing the script to fail:

    if update_tasks:
        await asyncio.wait(update_tasks, loop=hass.loop)

Which is related to the term ‘loop’ be depreciated in Python 3.10

https://docs.python.org/3.10/library/asyncio-task.html#id9

Pretty sure the code in the climate.py (i don’t know python) is looking at update_tasks array and if it is true it is meant to be kicking off an hass process. hass looks to know that “loop.loop” was going away, but I have no idea what to replace this piece with to make it work. Ill probably just start hacking about and see how we go…

ciao all,
i’ve the problem that after some days, the airconditioner are not connected to the wifi anymore. do you have the same issue? how did you solve it?
ciao

@prates did you managed to turn-off the display?

Not really, sorry. But I don’t have this AC for more than a year, so not the best person to check about updates.

That’s OK appreciate your quick feedback mate!

Hi there.
I got HASSIO installed.
When trying to find the token, I got this error:

[core-ssh ssl]$ python3 server.py
-bash: python3: command not found

I did not found python in usr/bin
Do I have to use HASSIO? Can I use a different PC in the same net?
Is there any way to find this token?

thanks

@Silicon_Avatar appreciate this update works on 2022.12 fixing some issues introduced with 2022.07 GitHub - atxbyea/samsungrac: Home Assistant Climate Device for controlling (not only) Samsung AC

Hi Fam,

I’ve recently bought the mim-h02. Setup using the above notes but isnt working. Anyone got any tips?

Since October ‘22 MIM-H02 is discontinued. Sorry. I’m angry too

Hey, I know this was a long time ago but this worked for me. Replace 159-167 in climate.py with the following…

        update_tasks = []
        for device in devices:
            if not hasattr(device, "async_set_custom_operation"):
                continue
            await getattr(device, "async_set_custom_operation")(**params)
            update_tasks.append(asyncio.create_task(device.async_update_ha_state(True)))

        if update_tasks:
            await asyncio.wait(update_tasks)

Hey everyone! I know it’s been here for a long time but I’m in Brazil and it’s getting really, really hot so I’m planning to buy new Acs. Thinking on the wind free ones from Samsung. Did anyone manage to integrate them using this integration?

Thanks! =D