A node module remote controller for Haier air conditioner
npm install haier-ac-remote> A node module remote controller for Haier air conditioner.
``bash`
$ npm install haier-ac-remote
#### Local example
see example here
1. git clone git@github.com:bstuff/haier-ac-remote.gitcd packages/haier-ac-remote
2. npm install
3. ip
4. Write and mac of your haier conditioner in src/examples/index.ts.npm run example
5. Run w
6. use keyboard keys:
- to power ons
- to power off↑
- to increase temperature↓
- to decrease temperature
#### Example usage in other projects
`typescript
import { HaierAC, Mode } from 'haier-ac-remote';
const ac = new HaierAC({
ip: '192.168.1.23',
mac: '00:12:34:56:78:AC',
});
// turn on
await ac.on();
// set mode to heat
await ac.changeState({ mode: Mode.COOL });
// set temperature to 23*
await ac.changeState({ targetTemperature: 23 });
// turn off
await ac.off();
``