forked from pedobry/esphome_toshiba_suzumi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample_esp8266.yaml
71 lines (61 loc) · 1.64 KB
/
example_esp8266.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: "climate-living-room"
platform: ESP8266
board: d1_mini
external_components:
- source:
type: git
url: https://github.com/pedobry/esphome_toshiba_suzumi
components: [toshiba_suzumi]
logger:
level: info
uart:
id: uart_bus
tx_pin: 13
rx_pin: 15
parity: EVEN
baud_rate: 9600
climate:
- platform: toshiba_suzumi
name: living-room
uart_id: uart_bus
outdoor_temp: # Optional. Outdoor temperature sensor
name: Outdoor Temp
filters:
# Filter out value 127 as that's what unit sends when it can's measure the outside temp.
- filter_out: 127
power_select:
name: "Power level"
#horizontal_swing: true # Optional. Uncomment if your HVAC supports also horizontal swing
#special_mode: # Optional. Enable only the features your HVAC supports.
#name: "Special mode"
#modes:
#- "Off"
#- "ECO"
#- "Hi POWER"
#- "8 degrees"
#- "Fireplace"
# Enable button to scan for unknown values in AC unit. This is optional.
button:
- platform: template
name: "Scan for unknown sensors"
icon: "mdi:reload"
on_press:
then:
- lambda: |-
auto* controller = static_cast<toshiba_suzumi::ToshibaClimateUart*>(id(living_room));
controller->scan();
# Enable Home Assistant API
api:
encryption:
key: !secret ha_enc_key
ota:
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "A Fallback Hotspot"
password: "xxxxxxxxxxx"
captive_portal: