-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathac.yaml
71 lines (59 loc) · 1.32 KB
/
ac.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
esphome:
name: acunit
platformio_options:
board_build.f_cpu: 40000000L
esp8266:
board: nodemcuv2
# Enable logging
logger:
# Enable Home Assistant API
#api:
# password: ""
mqtt:
topic_prefix: climate
discovery: true
broker: 192.168.1.44
port: 1883
discovery_prefix: homeassistant
username: !secret mqtt_username
password: !secret mqtt_password
ota:
password: ""
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Acunit Fallback Hotspot"
password: !secret wifi_password
power_save_mode: light
fast_connect: true
external_components:
# use all components from a local folder
- source:
type: local
path: my_components
button:
- platform: ac_mode
name: AC Mode
id: ac_mode_device
entity_id: ac_climate_device
climate:
- platform: ac_climate
name: Air Conditioner
id: ac_climate_device
pin: D2
uart_id: uart_display
# So the rate and bit count probably is wrong, but from this at the least I can tell what state the unit is in.. or maybe its the endianness? Either way.
uart:
tx_pin: 0
rx_pin:
number: D8
inverted: true
rx_buffer_size: 64
data_bits: 6 # 6
parity: NONE
stop_bits: 1 # 1
baud_rate: 2000 # 2000
id: uart_display
debug: