-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathir_bedroom.yaml
72 lines (59 loc) · 1.26 KB
/
ir_bedroom.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
62
63
64
65
66
67
68
69
70
71
72
esphome:
name: ir_bedroom
platform: ESP8266
board: esp_wroom_02
includes:
- gree/gree_ir.h
libraries:
- IRremoteESP8266
wifi:
ssid: '' #Enter wifi ssid
password: #Enter wiwi password
fast_connect: true
logger:
api:
password: '' #Enter api password
ota:
password: '' #Enter ota password
status_led:
pin: GPIO4
remote_receiver:
pin:
number: GPIO5
inverted: true
dump: all
remote_transmitter:
pin:
number: GPIO14
inverted: false
carrier_duty_percent: 50%
id: "ir_bedroom_transmitter"
climate:
- platform: custom
lambda: |-
auto bedroom_ac = new GreeAC();
bedroom_ac->set_temp_sensor(id(current_temperature));
App.register_component(bedroom_ac);
return {bedroom_ac};
climates:
- name: "Bedroom AC"
sensor:
- platform: homeassistant
id: current_temperature
entity_id: sensor.temperature
binary_sensor:
- platform: gpio
pin:
number: GPIO13
inverted: true
internal: true
name: "ir_bedroom_button"
id: "ir_bedroom_button"
switch:
- platform: custom
lambda: |-
auto gree_light_switch = new GreeLightSwitch();
App.register_component(gree_light_switch);
return {gree_light_switch};
switches:
name: "Bedroom AC light"