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

Hi, Samsung ar12rxwsaurneu has a port open 15430, noting else on 8888 and 2878,
doing a curl I get the following,

curl -k -H “Content-Type: application/json” -H “Authorization: Bearer xxxxxxxxxxxx” --cert ./cert.pem --insecure -X GET https://MYIP:15430/capatibility
curl: (52) Empty reply from server
Any ideas?
Thanks.

Hi, Installed this one as the older one stopped working for me too

Odd think it my current temp reading, seems to be in Farenheit where as everything else is in degrees celcius
ac

Actual current reading on AC is 22 deg C
anyone know how to fix? Sebz integration i had not not this issue

1 Like

Any Chance to Support the MIM-H04EN controller?

i would really appreciate it to skip all the smart-things online crap and controll the devices directly.

Hi how can i get the token ? i have port 8888
thanks

@Diogo_Do_O I had a 2878 port A/C, so don’t really know, but have a look at the following https://github.com/cicciovo/homebridge-samsung-airconditioner

For older units it’s a matter of connecting with
o

penssl s_client -connect 192.168.1.207:2878 -cipher 'HIGH:!DH:!aNULL' -cert ac14k_m.pem

the unit must be off
when you get

DRC-1.00
<?xml version="1.0" encoding="utf-8" ?><Update Type="InvalidateAccount"/>
<?xml version="1.0" encoding="utf-8" ?><Response Type="GetToken" Status="Ready"/>

write
<Request Type="GetToken"></Request>
and turn on the AC, and you get the token

Maybe for newer units it’s the same

If you get SSL errors you must lower security settings for openssl to allow older TLS versions, configure /etc/ssl/openssl.cnf (on raspbian) as this:

[system_default_sect]
MinProtocol = TLSv1.0
#MinProtocol = TLSv1.2
#CipherString = DEFAULT@SECLEVEL=2
CipherString = DEFAULT@SECLEVEL=1
1 Like

I tried the component, from the https://github.com/atxbyea/samsungrac fork
It seems to start but then I get

Dec 26 21:24:50 raspberrypi hass[16136]: 2020-12-26 21:24:50 ERROR (MainThread) [homeassistant.components.climate] climate_ip: Error on device update!
Dec 26 21:24:50 raspberrypi hass[16136]: Traceback (most recent call last):
Dec 26 21:24:50 raspberrypi hass[16136]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 359, in _async_add_entity
Dec 26 21:24:50 raspberrypi hass[16136]:     await entity.async_device_update(warning=False)
Dec 26 21:24:50 raspberrypi hass[16136]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 459, in async_device_update
Dec 26 21:24:50 raspberrypi hass[16136]:     task = self.hass.async_create_task(self.async_update())  # type: ignore
Dec 26 21:24:50 raspberrypi hass[16136]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py", line 394, in async_create_task
Dec 26 21:24:50 raspberrypi hass[16136]:     task: asyncio.tasks.Task = self.loop.create_task(target)
Dec 26 21:24:50 raspberrypi hass[16136]:   File "/usr/lib/python3.7/asyncio/base_events.py", line 405, in create_task
Dec 26 21:24:50 raspberrypi hass[16136]:     task = tasks.Task(coro, loop=self)
Dec 26 21:24:50 raspberrypi hass[16136]: TypeError: a coroutine was expected, got None

Any idea?

Blockquote
I was trying to use sebuzet’s custom integration for Samsung AC, and had a hard time with it: my HA slowed to a crawl, with updates taking 5-10 seconds.
Would take me too long to learn enough HA infrastructure to debug it, and with it unsupported at the moment, I wrote my own, this time it’s a small Go bridge that runs in a separate process and connects to HA through MQTT. Seems to work.
Find it here: GitHub - gsasha/hvac_ip_mqtt_bridge: A bridge to connect between ip-enabled HVAC units and mqtt (to be connected to HomeAssistant etc)
There is also a docker image: Docker
Let me know what you think,
– Sasha

Cool

sadly I haven’t been able to use the climate_ip component, but your bridge works fine :slight_smile: I used it without the docker image, just compiled it and configured it’s yaml file and the climate part in hass.
Now it just need a systemd unit and finally I could access my samsung units from home assistant

The only error I have in hass logs is:

[homeassistant.components.mqtt.climate] Invalid fan_modes mode: High

but the AC works

@lucac81 how I can Install this without docker?

have a look at the dockerfile in the repo, there are the commands to build and start the program:
download the repo, you need golang > 0.12
do:

go mod download
go build -o bridge

Then copy where you like the binary and the config file (see doc for that)
then you can start it with:
./bridge -config_file=config.yaml

I wrote a little systemd unit in case you want to start it at boot:
it is taylored to my setup (no dockerized hass, everything launched by a dedicated user, configs are in its home) so change what necessary

/etc/systemd/system/[email protected]

[Unit]
Description=HVAC to MQTT Bridge
After=network-online.target
[Service]
Type=simple
User=%i
WorkingDirectory=/home/%i/data/hvac_ip_mqtt_bridge
ExecStart=/srv/hvac_ip_mqtt_bridge/bridge -config_file "/home/%i/data/hvac_ip_mqtt_bridge/config.yaml"

[Install]
WantedBy=multi-user.target

to enable it save it in the path above and do a systemctl daemon-reload

hope it helps

Hi lucac81 can you explane command step by step ubuntu installation?

thank you for the link.

I have try but unsuccessfully and get this error:

2021-01-14 17:49:36 WARNING (MainThread) [homeassistant.components.climate] Updating climate_ip climate took longer than the scheduled update interval 0:00:15

Anyone with the same problem?

Thank you for your post, i have created a lxc on proxmox and change code for accept credentials on mqtt.
Works fine :slight_smile:

Hi everyone!

I’m having problems obtaining the token…
Tried on both port without success, I nmapped the AC IPs and the only open port is 34730

any suggestion?

Thanks!

First of all thanks for the great HA integration!

I had some issue obtaining the token also and after numerous of different approaches I finally found a solution that worked for me. Also decided write guide to help other people struggling with the token as well: Guide: Samsung A/C to Home Assistant – Creating Smart Home

Ps. Guide is targeted for Samsung A/C with port 8888 and Home Assistant supervised

Hi All,

Anyone else still experience the issue where the current temp is not reading right?

Current temp on the AC unit is 19degrees (Celcius) however HA always reports 86, it never changes

The changing of the slider for the set temp works correctly tho
image

Thank you , it works!

Hi,
I have issues to obtaing device token from Samsung AC (Samsung Nordic Home Premium 35, AR12TXFYBWKXEE). It new model and thus should work att port 8888 (new generation, REST API) but seems that 8888 and 2878 ports are closed.
ac


AC is currently at my IOT wifi with ip-address which is pingable. AC is also attached to SmarThings. Has anybody else had same problem / know how to open port from Samsung AC? Next step is to contact Samsung customer service…

EDIT:
seems that there is only one port open in AC
image
but can’t get token out of that (ConnectionError: (‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’)))

hi everyone can someone advise how to get mim-h03 token?

Have a read of the whole post from the following link. I was stuck getting a MIM-H03 for a really, really long time until I followed some of the newly discovered steps.

https://github.com/atxbyea/samsungrac/issues/4