-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
storeac.yaml
102 lines (83 loc) · 2.09 KB
/
storeac.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Example ESPHome configuration - Panasonic Air Conditioner
esphome:
name: storeac
esp32:
board: esp32dev
framework:
type: arduino
time:
- platform: homeassistant
id: homeassistant_time
# Enable logging
logger:
level: INFO
# Enable Home Assistant API
api:
encryption:
key: "Pgefixa5xxxxxxxa0i8fKPGh9+KrKxxxxxxxGqZN96Q="
ota:
password: "aa5ce34aaca9961e0xxxxxxx1bdf20ca"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Storeac Fallback Hotspot"
password: "password"
captive_portal:
uart:
tx_pin: GPIO17
rx_pin: GPIO16
baud_rate: 9600
parity: EVEN
external_components:
source: github://autoSteve/esphome-panasonic-ac
refresh: 0s
components: [panasonic_ac]
mqtt:
broker: 192.168.10.21
username: !secret mqtt_user
password: !secret mqtt_password
discovery: false
globals:
- id: saved_today
type: double
restore_value: yes
initial_value: '0'
sensor:
- platform: homeassistant
entity_id: sensor.panasonic_ac_today_power_consumption
id : consumption
accuracy_decimals: 3
filters:
- filter_out: nan
on_value:
then:
- lambda: |-
id(saved_today) = id(consumption).state;
climate:
- platform: panasonic_ac
# For CZ-TACG1
type: cnt
name: Panasonic
horizontal_swing_select:
name: Horizontal Swing Mode
vertical_swing_select:
name: Vertical Swing Mode
outside_temperature:
name: Outside Temperature
# Enable as needed
# eco_switch:
# name: Panasonic AC Eco Switch
# econavi_switch:
# name: Panasonic AC Econavi Switch
# nanoex_switch:
# name: Panasonic AC NanoeX Switch
# mild_dry_switch:
# name: Panasonic AC Mild Dry Switch
current_power_consumption:
name: Panasonic AC Power Consumption
today_power_consumption:
name: Panasonic AC Today Power Consumption
# Useful when the ac does not report a current temperature (CZ-TACG1 only)
# current_temperature_sensor: temperature_sensor_id