https://github.com/bkbilly/mqtt-aircon
Control ESP8266 IR from Home-Assistant
https://github.com/bkbilly/mqtt-aircon
Last synced: over 1 year ago
JSON representation
Control ESP8266 IR from Home-Assistant
- Host: GitHub
- URL: https://github.com/bkbilly/mqtt-aircon
- Owner: bkbilly
- Created: 2017-06-07T16:43:58.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-30T09:41:39.000Z (about 9 years ago)
- Last Synced: 2025-02-06T05:24:28.188Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MQTT Airconditioner
Control the Airconditioner from HomeAssistant with an ESP8266 using an IR Led.
These commands work on my Carrefour Airconditioner.
## Dependencies Arduino
* [IRremoteESP8266](https://github.com/markszabo/IRremoteESP8266)
* [PubSubClient](http://pubsubclient.knolleary.net/)
* [DHT sensor library](https://github.com/adafruit/DHT-sensor-library)
* [Adafruit Unified Sensor libraries](https://github.com/adafruit/Adafruit_Sensor)
## Install Home Assistant Component
* copy mqtt.py file to this location: ~/.homeassistant/custom_components/climate/
* Edit your configuration located ~/.homeassistant/configuration.yaml
```yaml
climate:
- platform: mqtt
name: "mqtt-aircon"
min_temp: 16
max_temp: 30
command_topic: "/aircond/myroom/getall"
measured_temp_topic: "/aircond/myroom/temp/measured"
command_temp_topic: "/aircond/myroom/temp/set"
command_mode_topic: "/aircond/myroom/mode/set"
command_speed_topic: "/aircond/myroom/speed/set"
command_swing_topic: "/aircond/myroom/swing/set"
command_sleep_topic: "/aircond/myroom/sleep/set"
current_temp_topic: "/aircond/myroom/temp"
current_mode_topic: "/aircond/myroom/mode"
current_speed_topic: "/aircond/myroom/speed"
current_swing_topic: "/aircond/myroom/swing"
current_sleep_topic: "/aircond/myroom/sleep"
```