11substitutions :
2- name : " athom-garage-door"
3- friendly_name : " Athom Garage Door"
4- project_name : " athom.garage-door"
2+ device_name : " athom-garage-door"
3+ project_name : " Athom Technology.Garage Door Opener"
54 project_version : " 1.2"
65
6+
77esphome :
8- name : " ${name}"
8+ name : " ${device_name}"
9+ friendly_name : " "
910 name_add_mac_suffix : true
1011 project :
1112 name : " ${project_name}"
2021
2122logger :
2223
24+
25+ mdns :
26+ disabled : false
27+
2328web_server :
2429 port : 80
2530
@@ -33,15 +38,18 @@ dashboard_import:
3338
3439sensor :
3540 - platform : uptime
36- name : " ${friendly_name} Uptime"
37- disabled_by_default : true
41+ name : " Uptime Sensor"
42+
43+ - platform : wifi_signal
44+ name : " ${friendly_name} WiFi Signal"
45+ update_interval : 60s
3846
3947binary_sensor :
4048 - platform : status
41- name : " ${friendly_name} Status"
49+ name : " Status"
4250
4351 - platform : gpio
44- name : " ${friendly_name} Contact"
52+ name : " Contact"
4553 disabled_by_default : true
4654 device_class : garage_door
4755 id : contact
@@ -56,7 +64,7 @@ binary_sensor:
5664 number : GPIO14
5765 mode : INPUT_PULLUP
5866 inverted : true
59- name : " ${friendly_name} Button"
67+ name : " Button"
6068 disabled_by_default : true
6169 on_multi_click :
6270 - timing :
@@ -71,13 +79,17 @@ binary_sensor:
7179
7280button :
7381 - platform : factory_reset
74- name : Restart with Factory Default Settings
82+ name : " Reset "
7583 id : Reset
7684
85+ - platform : safe_mode
86+ name : " Safe Mode"
87+ internal : false
88+
7789switch :
7890 - platform : gpio
7991 pin : GPIO5
80- name : " ${friendly_name} Relay"
92+ name : " Relay"
8193 id : relay
8294 disabled_by_default : true
8395 on_turn_on :
@@ -88,15 +100,15 @@ switch:
88100
89101light :
90102 - platform : status_led
91- name : " ${friendly_name} Status LED"
103+ name : " Status LED"
92104 id : wifi_led
93105 disabled_by_default : true
94106 pin : GPIO12
95107
96108cover :
97109 - platform : template
98110 device_class : garage
99- name : " ${friendly_name} "
111+ name : " Garage Door "
100112 lambda : " return id(contact).state ? COVER_OPEN : COVER_CLOSED;"
101113 open_action :
102114 then :
@@ -118,9 +130,12 @@ cover:
118130text_sensor :
119131 - platform : wifi_info
120132 ip_address :
121- name : " ${friendly_name} IP Address"
122- disabled_by_default : true
123-
133+ name : " IP Address"
134+ ssid :
135+ name : " Connected SSID"
136+ mac_address :
137+ name : " Mac Address"
138+
124139time :
125140 - platform : sntp
126- id : my_time
141+ id : sntp_time
0 commit comments