@Jman Can you try this python script if it is working or not? I donât have such unit and cannot test by myself. Please modify parameters at the beginning to meet your device/settings.
wrap socket 1 testâŚ
Traceback (most recent call last):
File âtestac.pyâ, line 45, in
if sslSocket is None:
NameError: name âsslSocketâ is not defined
@Jman Ok, thanks for trying. Iâve put updated version. If you have a minute please try this one. If we get it working I will be able to make component working with old units.
Thanks @Jman, Can you show me an example how can you turn device on/off, set temperature using openssl? I can connect to device but have to figure out what messages should be send.
Traceback (most recent call last):
File âtestac2.pyâ, line 18, in
ssl.PROTOCOL_SSLv3,
AttributeError: âmoduleâ object has no attribute âPROTOCOL_SSLv3â
@Jman I too have the older Samsung AC which appears to use port 2878, Iâve tried following the guides above to get the token, however I cannot seem to get a hold of the token, did you have to do anything different ? I see the actest.py acript uses port 8888 by default etc.
Also thanks to @SebuZet for putting effort into this, I really appreciate the work
Anyone with old unit (working on port 2878) can try dev version of my component.
Can someone confirm if it is working or not?
I cannot help you with token acquisition, you can try openhab to get the token
Instructions:
Create climate_ip folder in your /config/custom_components/ directory
Download all files from GitHub into this directory
Edit file /config/custom_components/climate_ip/samsung_2878.yaml to meet your configuration (host, token, mac or duid)
Edit configuration.yaml file and add section like below:
Didnât give me any more output in the home-assistant.log atleast, tried with both capital and lowercase t in true.
Added debug to the logger and grepped for climate, then I saw it didnât resolve the path for the certificate correctly, if I hardcoded the path in all the files of the custom component it works perfectly
@atxbyea Yes, looks good (debug: true should work). Try latest version from repo. There should be more debugs.
And make sure that path to cert file is correct. My exam ple will worku if you are using HA in docker.
Yeah, I am running in venv, I did change the path in the 2878.yaml file, but that didnât appear to be enough, so I had to change the path in all the files where it was mentioned.
Component appears to be working perfectly so far here since that.