Samsung AC binding configuration

Hi,

I’m followed this instructions:
https://docs.openhab.org/addons/bindings/samsungac1/readme.html

  1. I installed Samsung AC Binding.
  2. I created: /etc/openhab2/services/samsungac.cfg

Livingroom.host=192.168.1.31
Livingroom.mac=F8042EF0FD06
Livingroom.token=
Livingroom.password=
Livingroom.certificate=/tmp/cert/cacert.pem

Now in logs I see:

2018-03-24 18:21:52.379 [DEBUG] [.samsungac.internal.SamsungAcBinding] - There is no existing Samsung AC binding configuration => refresh cycle aborted!

In the manual is nothing about certficate?

What I should do to get working Samsung AC binding?

When i try to create samsungcert.crt file I get empty file and error:

root@raspberrypi:/var/log/openhab2# echo -n | openssl s_client -connect 192.168.1.31:2878 | sed -ne ‘/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p’ > samsungcert.crt
1996182944:error:0200206F:system library:connect:Connection refused:…/crypto/bio/b_sock2.c:108:
1996182944:error:2008A067:BIO routines:BIO_connect:connect error:…/crypto/bio/b_sock2.c:109:
connect:errno=111

correct ip address for your ac unit

IP is correct - I have DHCP static reservation for AC.

The next step on the link is:

Don’t mind the error message, it is part of the deal. Now we need to find the location of your Java cacerts:

Ignore the errors and carry on

I don’t worry about errors, but CRT file is empty.

try using port 8888 instead of 2878

It works with 8888 port!.

Now I’m stuck on step 2:

root@raspberrypi:/var# base64 -d < pasted.txt > cert.pem
base64: invalid input

PS
file pasted.txt exists in var directory

You need to paste the text in the command itself
for example:

base64 -d sadkjlghlksdjh;sdhvjsdbfkjsbdhbsd cert.pem

Look there!
This is new

Bekomme immer diesen Fehler


Ich möchte den fronius wechselrichter und die klimaanlagen zusammen steuern nach energie Erzeugung der PV Anlage

Hi Guys,
Can someone whos successfully implemented this give me some guidance. I dont get the warning at the feedback when trying to capture the token. My unit is running on port 2878 (verified with port sniffer). Here is what my samsungac.cfg file looks like:

#Host and port of the first AC to control
MBed.host=192.168.1.20
MBed.mac=XXXXXXXXXXXX (hidden)
MBed.token=
MBed.password=something
MBed.certificate=/tmp/cert/cacert.pem

Here are my logs following a restart with debug turned on:

https://pastebin.com/jLZ7HWct