talib
(Talib)
March 24, 2018, 6:23pm
1
Hi,
I’m followed this instructions:
https://docs.openhab.org/addons/bindings/samsungac1/readme.html
I installed Samsung AC Binding.
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?
talib
(Talib)
March 24, 2018, 7:14pm
3
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
vzorglub
(Vincent Regaud)
March 24, 2018, 7:18pm
4
correct ip address for your ac unit
Extract the certificate like this, mind entering the correct ip address for your ac unit in the command:
echo -n | openssl s_client -connect 192.168.1.136:2878 | sed -ne ‘/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p’ > samsungcert.crt
talib
(Talib)
March 24, 2018, 7:25pm
5
IP is correct - I have DHCP static reservation for AC.
vzorglub
(Vincent Regaud)
March 24, 2018, 7:29pm
6
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
talib
(Talib)
March 24, 2018, 7:32pm
7
I don’t worry about errors, but CRT file is empty.
vzorglub
(Vincent Regaud)
March 24, 2018, 7:38pm
8
try using port 8888 instead of 2878
talib
(Talib)
March 24, 2018, 7:50pm
9
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
vzorglub
(Vincent Regaud)
March 24, 2018, 8:10pm
10
You need to paste the text in the command itself
for example:
base64 -d sadkjlghlksdjh;sdhvjsdbfkjsbdhbsd cert.pem
Bekomme immer diesen Fehler
Ich möchte den fronius wechselrichter und die klimaanlagen zusammen steuern nach energie Erzeugung der PV Anlage
Jon-G
(Jon)
May 23, 2020, 9:16pm
13
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