Coder Social home page Coder Social logo

tadirankit's Introduction

TadiranKit

Simple Homekit connector for Tadiran ACs, without Homebridge

Setting up AC WiFi

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

Scanning for devices

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)

Running

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

Dockerizing

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

tadirankit's People

Contributors

0xa10 avatar

Stargazers

Elisha Eshed avatar McNulty avatar  avatar

Watchers

 avatar  avatar

Forkers

lordagam

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.