-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathac-ir.yml
68 lines (52 loc) · 1.04 KB
/
ac-ir.yml
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
esphome:
name: room-ir
friendly_name: room-ir
includes:
- haier_ir.h
esp8266:
board: esp_wroom_02
logger:
tx_buffer_size: 2048
api:
encryption:
key: "KEY"
ota:
password: !secret api-pass
wifi:
ssid: !secret ssid
password: !secret pass
use_address: 192.168.3.53
ap:
ssid: "ac-ir Fallback Hotspot"
password: !secret api-pass
captive_portal:
web_server:
port: 80
status_led:
pin:
number: GPIO04
remote_receiver:
pin:
number: GPIO05
inverted: true
id: recv
remote_transmitter:
id: trans
pin: GPIO14
carrier_duty_percent: 50%
sensor:
- platform: homeassistant
name: "room_temp"
id: room_temp
entity_id: sensor.room_temp
climate:
- platform: custom
lambda: |-
auto my_custom_climate = new HaierClimate();
App.register_component(my_custom_climate);
my_custom_climate->set_transmitter(id(trans));
my_custom_climate->set_sensor(room_temp);
recv->register_listener(my_custom_climate);
return {my_custom_climate};
climates:
- name: "Haier"