hello do you put the code in esp?
I have also managed to get a token from this unit (2787).
Make sure you have Ubuntu 22.04. 3 LTS (no updates) installed
Then open a terminal and run the following commands:
sudo apt-get install node.js
and
sudo apt-get install npm
If you run node --tls-min-v1.0
and you don’t get an error saying that’s an invalid flag, your node version is probably ok.
Install this plugin by running npm install -g homebridge-plugin-samsung-air-conditioner
So I cd``
d into the directory that contains homebridge-samsung-ac-get-token
(which i found out using which homebridge-samsung-ac-get-token
)
In my case the path was: /usr/local/bin/homebridge-samsung-ac-get-token
Use now: cd /usr/local/bin/
Then use the following command to get the token. Note that AC must be off. In the terminal it will tell you when to turn it on to make the token visible.homebridge-samsung-ac-get-token AC IP ADDRESS --skipCertificate
Then it gives information about port, host, etc. and also indicates the following:
“Power on the device within the next 30 seconds”
So turn on your AC and you will receive your token
Source and credits to:
https://www.reddit.com/r/Hassio/comments/k0jta9/how_i_set_up_two_old_samsung_ac_units_using/