Homebridge plugin for controlling Samsung Air Conditioner working on port 2878. Allows to control AC with HomeKit and Siri. If you have Samsung AC which operates on port 8888, check this plugin instead: https://github.com/cicciovo/homebridge-samsung-airconditioner
npm install -g homebridge-plugin-samsung-air-conditioner
.homebridge-samsung-ac-get-token <your ac's ip address>
in terminal and follow instructions. If you get any SSL/certificate errors. Try homebridge-samsung-ac-get-token <your ac's ip address> --skipCertificate
.config.json
. Check config-sample.json
for reference.
accessory
- always "Samsung Air Conditioner"name
- Name of your deviceip_address
- IP address of air conditionermac
- MAC address of air conditioner in format AA:BB:CC:DD:EE:FF
or AA-BB-CC-DD-EE-FF
token
- token returned by homebridge-samsung-ac-get-token <your ac's ip address>
skip_certificate
- true
/false
(default false
). If true
then skips passing certificate to underlying connection which might mitigate SSL errors on some AC units. Try it if you get any SSL/certificate errors.log_socket_activity
- true
/false
(default false
). If true
then logs additional raw data to consolekeep_alive
- dictionary with keep alive settings:
enabled
- true
/false
(default true
). If true
then enables keep alive on underlying socketinitial_delay
- milliseconds as integer (default 10000
). Time which needs to pass after last write to socket before sending first keep alive packetinterval
- milliseconds as integer (default 10000
). Time between keep alive packetsprobes
- integer (default 10
). Number of keep alive packets to fails before treating connection as closedIf your device's number is not on the list but you have tested it and it works, please make a PR with your device's number.
This project is heavily based on awesome work of CloCkWeRX - https://github.com/CloCkWeRX/node-samsung-airconditioner