Sorry I’ve been so terrible at keeping ya’ll up to date, work is hell and isn’t about to get any better. I hope to find some time over the weekends when I’m not working.
Hi Freman,
I would also like to see this addon work. Let me know if I can help testing.
If you are out of time, can you send us/publish what you have and maybe we can finish it off?
Thanks!
+1 would love to have my Samsung AC integrated
I’m also waiting this thread.
I hace a Samsung ducted AC with the MIM-H02 box.
With Homebridge it works with HTTP with this:
#!/bin/bash
if [ “$4” == “true” ]; then
# encender
(sleep 5.0;echo -e “<Request Type=“AuthToken”><User Token=“xxx”/></Request>\r”;sleep 5.0;echo -e "<Request Type=“DeviceControl”><Control CommandID=“xxx” DUID=“xxx”><Attr $
fi
if [ “$4” == “false” ]; then
# apagar
(sleep 5.0;echo -e “<Request Type=“AuthToken”><User Token=“xxx”/></Request>\r”;sleep 5.0;echo -e "<Request Type=“DeviceControl”><Control CommandID=“xxx” DUID=“xxx”><Attr $
fi
if [ “$1” == “Get” ]; then
# leer estado
(sleep 5.0;echo -e “<Request Type=“AuthToken”><User Token=“xxx”/></Request>\r”;sleep 5.0;echo -e “<Request Type=“DeviceState” DUID=“xxx”>\r\n”;sleep 1.0)| openssl s_cl$
fi
I want to work the AC with Homekit (Port 2878)
does it works well with homebridge? no lag?
No more lag than the original Samsung Smart Appliance app.
But It’snt the best way to talk with the MIM-H2; one or two types I’ve had to wait until it responds again; like the MIM-H02 CPU is at 100% getting my orders
the best way is to capture the commands that the wifi adapter sends and receives to/from the ac units, and then ditch the wifi adapter and develop one with something like mysensors! to completely remove samsung cloud and the tokens they use
Hi,
I tried this new script (https://www.npmjs.com/package/homebridge-plugin-samsung-air-conditioner) in homebridge and it works, it authenticates and it is possible to send the commands.
How can I use my Samsung air conditioner in the home assistant?
Hi,
If you have Samsung AC device which is listening on port 8888 (with new protocol) you can try custom component which I made to work with my unit. I hope it will work also for you.
BR,
Sebastian
I have one that is working on port 2878
I managed to integrate my AC by using Homebridge, but can’t get it work in HA or SmartThings
Here is some useful links of someone will make integration for AC with port 2878 :
openhub: https://www.openhab.org/addons/bindings/samsungac1
node.js: https://github.com/CloCkWeRX/node-samsung-airconditioner
homebridge for port 8888: https://github.com/cicciovo/homebridge-samsung-airconditioner
homebridge for port 2878: https://www.npmjs.com/package/homebridge-plugin-samsung-air-conditioner
@Modrica If binding from last link is working with your AC unit then you definitely should try my component. Just make sure that in configuration section as host you put some like 'https://device_ip:2878
It looks like this binding is using the same (or very similar) API.
@SebuZet I am geting this error when I use your component with my port 2878 AC
Error loading custom_components.climate.samsungrac. Make sure all dependencies are installed
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/loader.py”, line 166, in _load_file
module = importlib.import_module(path)
File “/usr/local/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 967, in _find_and_load_unlocked
File “”, line 677, in _load_unlocked
File “”, line 728, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/config/custom_components/climate/samsungrac.py”, line 8, in
from homeassistant.components.climate import (ClimateDevice,
ImportError: cannot import name ‘STATE_AUTO’ from ‘homeassistant.components.climate’ (/usr/local/lib/python3.7/site-packages/homeassistant/components/climate/init.py)
Service homeassistant/reload_core_config called.
@Modrica Which version of Home Assistant are you using? I wrote this component on version used by me - 0.87.1. in my version of HA there is such value
@Modrica As far as I know there were some breaking changes in components in latest version.
I will update my HA to the latest version in weekend and check what’s wrong.
It works like a charm!
Using:
homebridge for port 2878 to control my AC-Unit from Apple Home App.
I have one question if someone can help me?
When i look in the logfile and in Apple Home-App, it shows Farenheit, is it possible to change to Celsius?
I cannot find any settings in Apple Home App.
Thanks everyone!
From Homebridge-log:
State updated: {“AC_FUN_TEMPNOW”:“79”}
Error while setting up platform samsungrac
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 600, in urlopen
chunked=chunked)
File “/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 384, in _make_request
six.raise_from(e, None)
File “”, line 2, in raise_from
File “/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 380, in _make_request
httplib_response = conn.getresponse()
File “/usr/local/lib/python3.7/http/client.py”, line 1321, in getresponse
response.begin()
File “/usr/local/lib/python3.7/http/client.py”, line 296, in begin
version, status, reason = self._read_status()
File “/usr/local/lib/python3.7/http/client.py”, line 278, in _read_status
raise BadStatusLine(line)
http.client.BadStatusLine: DPLUG-1.6During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/requests/adapters.py”, line 449, in send
timeout=timeout
File “/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File “/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py”, line 367, in increment
raise six.reraise(type(error), error, _stacktrace)
File “/usr/local/lib/python3.7/site-packages/urllib3/packages/six.py”, line 685, in reraise
raise value.with_traceback(tb)
File “/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 600, in urlopen
chunked=chunked)
File “/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 384, in _make_request
six.raise_from(e, None)
File “”, line 2, in raise_from
File “/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 380, in _make_request
httplib_response = conn.getresponse()
File “/usr/local/lib/python3.7/http/client.py”, line 1321, in getresponse
response.begin()
File “/usr/local/lib/python3.7/http/client.py”, line 296, in begin
version, status, reason = self._read_status()
File “/usr/local/lib/python3.7/http/client.py”, line 278, in _read_status
raise BadStatusLine(line)
urllib3.exceptions.ProtocolError: (‘Connection aborted.’, BadStatusLine(‘DPLUG-1.6\r\n’))During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py”, line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/local/lib/python3.7/asyncio/tasks.py”, line 416, in wait_for
return fut.result()
File “/config/custom_components/samsungrac/climate.py”, line 346, in async_setup_platform
rac.initialize()
File “/config/custom_components/samsungrac/climate.py”, line 449, in initialize
j = self.get_device_json()
File “/config/custom_components/samsungrac/climate.py”, line 429, in get_device_json
resp = session.request(‘GET’, url=self.host + url, headers=self.extra_headers, verify=False, cert=self.cert, data=json.dumps({ ‘sebu’ : ‘zet’ }))
File “/usr/local/lib/python3.7/site-packages/requests/sessions.py”, line 533, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/lib/python3.7/site-packages/requests/sessions.py”, line 646, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python3.7/site-packages/requests/adapters.py”, line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: (‘Connection aborted.’, BadStatusLine(‘DPLUG-1.6\r\n’))