Simple Homekit connector for Tadiran ACs, without Homebridge
With the AC unit off, press MODE+WIFI until it beeps to reset the WiFi settings.
Connect to the newly broadcast WiFi network ("GR-AC-something-or-other") and send it your WiFi credentials (2.4GHz only):
echo -n "{\"psw\": \"PASSWORD\",\"ssid\": \"SSID\",\"t\": \"wlan\"}" | nc -u 192.168.1.1 7000
The AC units are listening on port 7000, either find their IP in your router or scan for them using https://github.com/cmroche/greeclimate
git clone https://github.com/cmroche/greeclimate
cd greeclimate
python3 gree.py --discovery
greeclimate.discovery - INFO - Found gree device Device: xxxxxxxxxxxx @ 192.168.1.100:7000 (mac: xxxxxxxxxxxx)
You can run the server directly, the only thing you have to explictly set is the target ip:
TARGET_IP=192.168.1.100 node src/main.js
For convenience, a Dockerfile is provided. Build by running:
sudo docker build -t tadirankit .
And then run:
sudo docker run -d -t --restart always --net=host -e TARGET_IP=192.168.1.100 -e tadirankit
sudo docker logs [container id] # To get QR code