Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions athom-cb02.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ api:

ota:
- platform: esphome
id: ota_esphome_id

logger:
level: ${log_level}
Expand Down Expand Up @@ -128,6 +129,7 @@ select:
binary_sensor:
- platform: status
name: "Status"
id: status_sensor
entity_category: diagnostic

- platform: gpio
Expand All @@ -136,6 +138,7 @@ binary_sensor:
mode: INPUT_PULLUP
inverted: true
name: "Power Button"
id: power_button
disabled_by_default: true
on_multi_click:
- timing:
Expand All @@ -146,7 +149,7 @@ binary_sensor:
- timing:
- ON for at least 4s
then:
- button.press: Reset
- button.press: factory_reset_button

sensor:
- platform: uptime
Expand All @@ -163,6 +166,7 @@ sensor:

- platform: copy
source_id: wifi_signal_db
id: wifi_signal_percent
name: "WiFi Signal Percent"
filters:
- lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
Expand All @@ -173,15 +177,17 @@ sensor:
button:
- platform: restart
name: "Restart"
id: restart_button
entity_category: config

- platform: factory_reset
name: "Factory Reset"
id: Reset
id: factory_reset_button
entity_category: config

- platform: safe_mode
name: "Safe Mode"
id: safe_mode_button
internal: false
entity_category: config

Expand All @@ -207,14 +213,18 @@ light:

text_sensor:
- platform: wifi_info
id: wifi_info_text
ip_address:
id: ip_address_text
name: "IP Address"
entity_category: diagnostic
ssid:
id: ssid_text
name: "Connected SSID"
entity_category: diagnostic
mac_address:
name: "Mac Address"
id: mac_address_text
name: "MAC Address"
entity_category: diagnostic

# Creates a sensor showing when the device was last restarted
Expand All @@ -227,6 +237,7 @@ text_sensor:

# Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds
- platform: template
id: uptime_text
name: "Uptime"
entity_category: diagnostic
lambda: |-
Expand Down
18 changes: 15 additions & 3 deletions athom-garage-door.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ api:

ota:
- platform: esphome
id: ota_esphome_id

logger:
level: ${log_level}
Expand Down Expand Up @@ -94,6 +95,7 @@ sensor:

- platform: copy
source_id: wifi_signal_db
id: wifi_signal_percent
name: "WiFi Signal Percent"
filters:
- lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
Expand All @@ -104,6 +106,7 @@ sensor:
binary_sensor:
- platform: status
name: "Status"
id: status_sensor

- platform: gpio
name: "Contact"
Expand All @@ -122,6 +125,7 @@ binary_sensor:
mode: INPUT_PULLUP
inverted: true
name: "Button"
id: button_sensor
disabled_by_default: true
on_multi_click:
- timing:
Expand All @@ -132,20 +136,22 @@ binary_sensor:
- timing:
- ON for at least 4s
then:
- button.press: Reset
- button.press: factory_reset_button

button:
- platform: restart
name: "Restart"
id: restart_button
entity_category: config

- platform: factory_reset
name: "Factory Reset"
id: Reset
id: factory_reset_button
entity_category: config

- platform: safe_mode
name: "Safe Mode"
id: safe_mode_button
internal: false
entity_category: config

Expand Down Expand Up @@ -173,6 +179,7 @@ light:
cover:
- platform: template
device_class: garage
id: garage_door
name: "Garage Door"
lambda: "return id(contact).state ? COVER_OPEN : COVER_CLOSED;"
open_action:
Expand All @@ -194,14 +201,18 @@ cover:

text_sensor:
- platform: wifi_info
id: wifi_info_text
ip_address:
id: ip_address_text
name: "IP Address"
entity_category: diagnostic
ssid:
id: ssid_text
name: "Connected SSID"
entity_category: diagnostic
mac_address:
name: "Mac Address"
id: mac_address_text
name: "MAC Address"
entity_category: diagnostic

# Creates a sensor showing when the device was last restarted
Expand All @@ -214,6 +225,7 @@ text_sensor:

# Creates a sensor of the uptime of the device, in formatted days, hours, minutes and seconds
- platform: template
id: uptime_text
name: "Uptime"
entity_category: diagnostic
lambda: |-
Expand Down
16 changes: 13 additions & 3 deletions athom-ls-4p-3wire.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ api:

ota:
- platform: esphome
id: ota_esphome_id

logger:
baud_rate: 0
Expand All @@ -52,13 +53,15 @@ dashboard_import:
binary_sensor:
- platform: status
name: "Status"
id: status_sensor

- platform: gpio
pin:
number: 0
mode: INPUT_PULLUP
inverted: true
name: "Power Button"
id: power_button
disabled_by_default: true
on_multi_click:
- timing:
Expand All @@ -69,23 +72,26 @@ binary_sensor:
- timing:
- ON for at least 4s
then:
- button.press: Reset
- button.press: factory_reset_button

sensor:
- platform: uptime
id: uptime_sensor
name: "Uptime Sensor"

- platform: wifi_signal
id: wifi_signal_db
name: "WiFi Signal"
update_interval: 60s

button:
- platform: factory_reset
name: "Reset"
id: Reset
id: factory_reset_button

- platform: safe_mode
name: "Safe Mode"
id: safe_mode_button
internal: false

power_supply:
Expand All @@ -108,12 +114,16 @@ light:

text_sensor:
- platform: wifi_info
id: wifi_info_text
ip_address:
id: ip_address_text
name: "IP Address"
ssid:
id: ssid_text
name: "Connected SSID"
mac_address:
name: "Mac Address"
id: mac_address_text
name: "MAC Address"

time:
- platform: sntp
Expand Down
16 changes: 13 additions & 3 deletions athom-ls-4p-4wire.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ api:

ota:
- platform: esphome
id: ota_esphome_id

logger:
baud_rate: 0
Expand All @@ -52,13 +53,15 @@ dashboard_import:
binary_sensor:
- platform: status
name: "Status"
id: status_sensor

- platform: gpio
pin:
number: 0
mode: INPUT_PULLUP
inverted: true
name: "Power Button"
id: power_button
disabled_by_default: true
on_multi_click:
- timing:
Expand All @@ -69,23 +72,26 @@ binary_sensor:
- timing:
- ON for at least 4s
then:
- button.press: Reset
- button.press: factory_reset_button

sensor:
- platform: uptime
id: uptime_sensor
name: "Uptime Sensor"

- platform: wifi_signal
id: wifi_signal_db
name: "WiFi Signal"
update_interval: 60s

button:
- platform: factory_reset
name: "Reset"
id: Reset
id: factory_reset_button

- platform: safe_mode
name: "Safe Mode"
id: safe_mode_button
internal: false

power_supply:
Expand All @@ -109,12 +115,16 @@ light:

text_sensor:
- platform: wifi_info
id: wifi_info_text
ip_address:
id: ip_address_text
name: "IP Address"
ssid:
id: ssid_text
name: "Connected SSID"
mac_address:
name: "Mac Address"
id: mac_address_text
name: "MAC Address"

time:
- platform: sntp
Expand Down
Loading