I have an older samsung AC using port 2878, which I found @peterbuga guide helpful. I too was having old SSL certificate errors and the only way I was able to resolve was as below. NOTE: I tried installing Debian, but was met with a bunch of issues getting NODEJS installed etc…
Here are some additional details on what I did if it helps others @gyiku @Nick398 @andriuskr @gyik
- I did this using Ubuntu v20 (although I think other versions will work too)
- Given the SSL errors and issues I faced I completely removed NODEJS from uBuntu with the following command
sudo apt-get purge nodejs
- I reinstalled NODEJS using 2 commands below
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
- After that I was able to run the below 2 commands and get the token without issues (despite some error warnings for the plugin install).
npm install -g homebridge-plugin-samsung-air-conditioner
homebridge-samsung-ac-get-token <your ac's ip address>
Hopefully this helps someone else. Best of Luck!
FWIW, this guide was helpful to get me going as well: Guide: Samsung A/C to Home Assistant – Creating Smart Home