-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbedroom-aircon-remote.yaml
61 lines (50 loc) · 1.62 KB
/
bedroom-aircon-remote.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
esphome:
name: bedroom-aircon-remote
platform: ESP8266
board: esp01_1m
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Bedroom-Aircon-Remote"
password: "WYC0d4PpHkJ3"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
password: !secret wifi_password
ota:
password: !secret wifi_password
# Use the blue LED as a status light.
# Blink slowly = Temporary issue (WiFi/MQTT disconnected, sensor unavailable, ...)
# Blink quickly = Error encountered
status_led:
pin: GPIO4 #checked
# Configure the IR receiver. Handy to pickup confirmation messages
# from your AC (or capture commands from the actual remote)
remote_receiver:
id: rcvr
pin:
number: GPIO5 #checked
inverted: True
dump: all
# Configure the IR LED: this one sends commands to other devices
remote_transmitter:
pin: GPIO14 #checked
carrier_duty_percent: 50%
# Import the state of the Aqara sensor from Home Assistant into ESPHome. If you don't have a temperature sensor in the room, delete this component.
sensor:
- platform: homeassistant
name: "Current temperature"
entity_id: sensor.bedroom_thermostat_temperature
id: temp21
internal: true
# https://esphome.io/components/climate/ir_climate.html?highlight=climate
climate:
- platform: daikin
name: "Bedroom AC"
receiver_id: rcvr
# Add a reference to the temperature sensor here
sensor: temp21 # if you don't have a temperature sensor in the room, delete this line.