diff --git a/athom-cb02.yaml b/athom-cb02.yaml index 9234e140..d2e83ed7 100644 --- a/athom-cb02.yaml +++ b/athom-cb02.yaml @@ -78,6 +78,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: level: ${log_level} @@ -128,6 +129,7 @@ select: binary_sensor: - platform: status name: "Status" + id: status_sensor entity_category: diagnostic - platform: gpio @@ -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: @@ -146,7 +149,7 @@ binary_sensor: - timing: - ON for at least 4s then: - - button.press: Reset + - button.press: factory_reset_button sensor: - platform: uptime @@ -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); @@ -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 @@ -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 @@ -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: |- diff --git a/athom-garage-door.yaml b/athom-garage-door.yaml index feac609b..12bec908 100644 --- a/athom-garage-door.yaml +++ b/athom-garage-door.yaml @@ -52,6 +52,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: level: ${log_level} @@ -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); @@ -104,6 +106,7 @@ sensor: binary_sensor: - platform: status name: "Status" + id: status_sensor - platform: gpio name: "Contact" @@ -122,6 +125,7 @@ binary_sensor: mode: INPUT_PULLUP inverted: true name: "Button" + id: button_sensor disabled_by_default: true on_multi_click: - timing: @@ -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 @@ -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: @@ -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 @@ -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: |- diff --git a/athom-ls-4p-3wire.yaml b/athom-ls-4p-3wire.yaml index f39d285d..d097b969 100644 --- a/athom-ls-4p-3wire.yaml +++ b/athom-ls-4p-3wire.yaml @@ -31,6 +31,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: baud_rate: 0 @@ -52,6 +53,7 @@ dashboard_import: binary_sensor: - platform: status name: "Status" + id: status_sensor - platform: gpio pin: @@ -59,6 +61,7 @@ binary_sensor: mode: INPUT_PULLUP inverted: true name: "Power Button" + id: power_button disabled_by_default: true on_multi_click: - timing: @@ -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: @@ -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 diff --git a/athom-ls-4p-4wire.yaml b/athom-ls-4p-4wire.yaml index 8ce8b145..30effaf4 100644 --- a/athom-ls-4p-4wire.yaml +++ b/athom-ls-4p-4wire.yaml @@ -31,6 +31,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: baud_rate: 0 @@ -52,6 +53,7 @@ dashboard_import: binary_sensor: - platform: status name: "Status" + id: status_sensor - platform: gpio pin: @@ -59,6 +61,7 @@ binary_sensor: mode: INPUT_PULLUP inverted: true name: "Power Button" + id: power_button disabled_by_default: true on_multi_click: - timing: @@ -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: @@ -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 diff --git a/athom-mini-switch.yaml b/athom-mini-switch.yaml index 8c388cbd..6a87ac29 100644 --- a/athom-mini-switch.yaml +++ b/athom-mini-switch.yaml @@ -78,6 +78,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: level: ${log_level} @@ -128,15 +129,17 @@ select: 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 @@ -179,6 +182,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); @@ -208,7 +212,7 @@ binary_sensor: - ON for at most 0.5s - OFF for at most 0.5s then: - - button.press: Reset + - button.press: factory_reset_button # Button on mini switch - platform: gpio @@ -217,6 +221,7 @@ binary_sensor: mode: INPUT_PULLUP inverted: true name: "Power Button" + id: power_button disabled_by_default: true on_multi_click: - timing: @@ -227,22 +232,27 @@ binary_sensor: - timing: - ON for at least 4s then: - - button.press: Reset + - button.press: factory_reset_button - platform: status name: "Status" + id: status_sensor entity_category: diagnostic 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 @@ -255,6 +265,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: |- diff --git a/athom-presence-sensor.yaml b/athom-presence-sensor.yaml index b5673f10..1ac9d8ff 100644 --- a/athom-presence-sensor.yaml +++ b/athom-presence-sensor.yaml @@ -58,6 +58,7 @@ api: ota: - platform: esphome + id: ota_esphome_id web_server: port: 80 @@ -95,20 +96,22 @@ i2c: scan: true uart: - tx_pin: GPIO15 - rx_pin: GPIO13 - baud_rate: 115200 - # debug: - # direction: BOTH - # dummy_receiver: true - # after: - # delimiter: "\n" - # sequence: - # - lambda: UARTDebug::log_string(direction, bytes); + - id: uart_bus + tx_pin: GPIO15 + rx_pin: GPIO13 + baud_rate: 115200 + # debug: + # direction: BOTH + # dummy_receiver: true + # after: + # delimiter: "\n" + # sequence: + # - lambda: UARTDebug::log_string(direction, bytes); binary_sensor: - platform: status name: "Status" + id: status_sensor entity_category: diagnostic - platform: gpio @@ -117,6 +120,7 @@ binary_sensor: mode: INPUT_PULLUP inverted: true name: "Button" + id: button_sensor disabled_by_default: true on_multi_click: - timing: @@ -188,6 +192,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); @@ -196,6 +201,7 @@ sensor: device_class: "" - platform: bh1750 + id: light_sensor name: "Light Sensor" address: 0x23 update_interval: 5s @@ -369,7 +375,7 @@ number: button: - platform: factory_reset name: Restart with Factory Default Settings - id: Reset + id: factory_reset_button entity_category: config internal: true - platform: template @@ -382,7 +388,7 @@ button: - uart.write: "resetCfg\r\n" - delay: 1s - switch.turn_on: mmwave_sensor - - button.press: Reset + - button.press: factory_reset_button - platform: restart name: Restart_esp @@ -392,6 +398,7 @@ button: - platform: safe_mode name: "Safe Mode" + id: safe_mode_button internal: false entity_category: config @@ -405,6 +412,7 @@ button: - platform: template name: Restart device + id: restart_button entity_category: config on_press: - button.press: restart_mmwave @@ -413,14 +421,18 @@ button: 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 @@ -433,6 +445,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: |- diff --git a/athom-relay-board-x1.yaml b/athom-relay-board-x1.yaml index 819ef6c8..dc5c190d 100644 --- a/athom-relay-board-x1.yaml +++ b/athom-relay-board-x1.yaml @@ -56,6 +56,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: level: ${log_level} @@ -86,6 +87,7 @@ dashboard_import: binary_sensor: - platform: status name: "Status" + id: status_sensor entity_category: diagnostic sensor: @@ -103,6 +105,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); @@ -113,15 +116,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 @@ -136,6 +141,7 @@ switch: light: - platform: status_led name: "Status LED" + id: led disabled_by_default: true pin: inverted: true @@ -143,14 +149,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 @@ -163,6 +173,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: |- diff --git a/athom-relay-board-x2.yaml b/athom-relay-board-x2.yaml index 096843ef..db539145 100644 --- a/athom-relay-board-x2.yaml +++ b/athom-relay-board-x2.yaml @@ -57,6 +57,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: level: ${log_level} @@ -87,6 +88,7 @@ dashboard_import: binary_sensor: - platform: status name: "Status" + id: status_sensor entity_category: diagnostic sensor: @@ -104,6 +106,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); @@ -114,15 +117,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 @@ -143,6 +148,7 @@ switch: light: - platform: status_led name: "Status LED" + id: led disabled_by_default: true pin: inverted: true @@ -150,14 +156,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 @@ -170,6 +180,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: |- diff --git a/athom-relay-board-x4.yaml b/athom-relay-board-x4.yaml index f6d49000..5e25e0da 100644 --- a/athom-relay-board-x4.yaml +++ b/athom-relay-board-x4.yaml @@ -59,6 +59,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: level: ${log_level} @@ -89,6 +90,7 @@ dashboard_import: binary_sensor: - platform: status name: "Status" + id: status_sensor entity_category: diagnostic sensor: @@ -106,6 +108,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); @@ -116,15 +119,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 @@ -156,6 +161,7 @@ switch: light: - platform: status_led name: "Status LED" + id: led disabled_by_default: true pin: inverted: true @@ -163,14 +169,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 @@ -183,6 +193,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: |- diff --git a/athom-relay-board-x8.yaml b/athom-relay-board-x8.yaml index 7bf38627..34259e57 100644 --- a/athom-relay-board-x8.yaml +++ b/athom-relay-board-x8.yaml @@ -63,6 +63,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: level: ${log_level} @@ -93,6 +94,7 @@ dashboard_import: binary_sensor: - platform: status name: "Status" + id: status_sensor entity_category: diagnostic sensor: @@ -110,6 +112,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); @@ -120,15 +123,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 @@ -184,6 +189,7 @@ switch: light: - platform: status_led name: "Status LED" + id: led disabled_by_default: true pin: inverted: true @@ -191,14 +197,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 @@ -211,6 +221,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: |- diff --git a/athom-rgb-light.yaml b/athom-rgb-light.yaml index 71e317e0..1e74d483 100644 --- a/athom-rgb-light.yaml +++ b/athom-rgb-light.yaml @@ -56,6 +56,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: level: ${log_level} @@ -86,6 +87,7 @@ dashboard_import: binary_sensor: - platform: status name: "Status" + id: status_sensor entity_category: diagnostic - platform: gpio @@ -94,6 +96,7 @@ binary_sensor: mode: INPUT_PULLUP inverted: true name: "Power Button" + id: power_button disabled_by_default: true on_multi_click: - timing: @@ -104,7 +107,7 @@ binary_sensor: - timing: - ON for at least 4s then: - - button.press: Reset + - button.press: factory_reset_button sensor: - platform: uptime @@ -121,6 +124,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); @@ -131,15 +135,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 @@ -165,14 +171,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 @@ -185,6 +195,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: |- diff --git a/athom-rgbct-light.yaml b/athom-rgbct-light.yaml index d21b8b1c..e949887c 100644 --- a/athom-rgbct-light.yaml +++ b/athom-rgbct-light.yaml @@ -108,6 +108,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: level: ${log_level} @@ -138,6 +139,7 @@ dashboard_import: binary_sensor: - platform: status name: "Status" + id: status_sensor entity_category: diagnostic sensor: @@ -155,6 +157,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); @@ -165,15 +168,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 @@ -226,14 +231,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 @@ -246,6 +255,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: |- @@ -312,7 +322,7 @@ script: call.set_rgb(0.0, 0.0, 1.0); call.perform(); - delay: 5s - - button.press: Reset + - button.press: factory_reset_button - lambda: |- id(fast_boot) += 1; fast_boot->loop(); diff --git a/athom-rgbw-light.yaml b/athom-rgbw-light.yaml index 37b1e76d..70f64653 100644 --- a/athom-rgbw-light.yaml +++ b/athom-rgbw-light.yaml @@ -54,6 +54,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: level: ${log_level} @@ -84,6 +85,7 @@ dashboard_import: binary_sensor: - platform: status name: "Status" + id: status_sensor entity_category: diagnostic - platform: gpio @@ -92,6 +94,7 @@ binary_sensor: mode: INPUT_PULLUP inverted: true name: "Power Button" + id: power_button disabled_by_default: true on_multi_click: - timing: @@ -102,7 +105,7 @@ binary_sensor: - timing: - ON for at least 4s then: - - button.press: Reset + - button.press: factory_reset_button sensor: - platform: uptime @@ -119,6 +122,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); @@ -129,15 +133,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 @@ -170,14 +176,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 @@ -190,6 +200,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: |- diff --git a/athom-rgbww-light.yaml b/athom-rgbww-light.yaml index b936df47..20c756ac 100644 --- a/athom-rgbww-light.yaml +++ b/athom-rgbww-light.yaml @@ -108,6 +108,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: level: ${log_level} @@ -138,6 +139,7 @@ dashboard_import: binary_sensor: - platform: status name: "Status" + id: status_sensor entity_category: diagnostic sensor: @@ -155,6 +157,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); @@ -165,15 +168,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 @@ -220,14 +225,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 @@ -240,6 +249,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: |- @@ -306,7 +316,7 @@ script: call.set_rgb(0.0, 0.0, 1.0); call.perform(); - delay: 5s - - button.press: Reset + - button.press: factory_reset_button - lambda: |- id(fast_boot) += 1; fast_boot->loop(); diff --git a/athom-smart-plug-v2.yaml b/athom-smart-plug-v2.yaml index 0b637bbd..7baf3e6e 100644 --- a/athom-smart-plug-v2.yaml +++ b/athom-smart-plug-v2.yaml @@ -85,6 +85,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: level: ${log_level} @@ -119,9 +120,10 @@ dashboard_import: # - source: github://dentra/esphome-components uart: - rx_pin: RX - baud_rate: 4800 - parity: EVEN + - id: uart_bus + rx_pin: RX + baud_rate: 4800 + parity: EVEN globals: - id: total_energy @@ -151,6 +153,7 @@ select: binary_sensor: - platform: status name: "Status" + id: status_sensor icon: mdi:check-network-outline entity_category: diagnostic @@ -171,7 +174,7 @@ binary_sensor: - timing: - ON for at least 4s then: - - button.press: Reset + - button.press: factory_reset_button sensor: - platform: uptime @@ -190,6 +193,7 @@ sensor: # Reports the WiFi signal strength in % - 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); @@ -277,7 +281,8 @@ sensor: update_interval: ${sensor_update_interval} - platform: total_daily_energy - name: "Total Energy Since Boot" + name: "Total Daily Energy" + id: daily_energy restore: true power_id: power_sensor unit_of_measurement: kWh @@ -321,15 +326,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 @@ -353,16 +360,20 @@ light: text_sensor: - platform: wifi_info + id: wifi_info_text ip_address: + id: ip_address_text name: "IP Address" icon: mdi:ip-network entity_category: diagnostic ssid: + id: ssid_text name: "Connected SSID" icon: mdi:wifi-strength-2 entity_category: diagnostic mac_address: - name: "Mac Address" + id: mac_address_text + name: "MAC Address" icon: mdi:network-pos entity_category: diagnostic @@ -376,6 +387,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: |- diff --git a/athom-smart-plug.yaml b/athom-smart-plug.yaml index 2cc9095e..5970d41c 100644 --- a/athom-smart-plug.yaml +++ b/athom-smart-plug.yaml @@ -82,6 +82,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: level: ${log_level} @@ -144,6 +145,7 @@ select: binary_sensor: - platform: status name: "Status" + id: status_sensor icon: mdi:check-network-outline entity_category: diagnostic @@ -164,7 +166,7 @@ binary_sensor: - timing: - ON for at least 4s then: - - button.press: Reset + - button.press: factory_reset_button sensor: - platform: uptime @@ -183,6 +185,7 @@ sensor: # Reports the WiFi signal strength in % - 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); @@ -286,7 +289,8 @@ sensor: update_interval: ${sensor_update_interval} - platform: total_daily_energy - name: "Total Energy Since Boot" + name: "Total Daily Energy" + id: daily_energy power_id: socket_my_power unit_of_measurement: kWh icon: mdi:hours-24 @@ -330,15 +334,17 @@ sensor: button: - platform: restart name: "Restart" + id: restart_button entity_category: config - platform: factory_reset name: "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 @@ -367,16 +373,20 @@ light: text_sensor: - platform: wifi_info + id: wifi_info_text ip_address: + id: ip_address_text name: "IP Address" icon: mdi:ip-network entity_category: diagnostic ssid: + id: ssid_text name: "Connected SSID" icon: mdi:wifi-strength-2 entity_category: diagnostic mac_address: - name: "Mac Address" + id: mac_address_text + name: "MAC Address" icon: mdi:network-pos entity_category: diagnostic @@ -390,6 +400,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: |- diff --git a/athom-sw01-v2.yaml b/athom-sw01-v2.yaml index c6d739cd..9c95e002 100644 --- a/athom-sw01-v2.yaml +++ b/athom-sw01-v2.yaml @@ -78,6 +78,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: level: ${log_level} @@ -128,6 +129,7 @@ select: binary_sensor: - platform: status name: "Status" + id: status_sensor entity_category: diagnostic # Touch Button @@ -150,7 +152,7 @@ binary_sensor: - timing: - ON for at least 4s then: - - button.press: Reset + - button.press: factory_reset_button sensor: - platform: uptime @@ -167,6 +169,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); @@ -177,15 +180,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 @@ -204,6 +209,7 @@ output: light: - platform: status_led name: "Status LED" + id: led disabled_by_default: true pin: number: GPIO0 @@ -230,14 +236,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 @@ -250,6 +260,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: |- diff --git a/athom-sw01.yaml b/athom-sw01.yaml index 4a1df27a..20edc26c 100644 --- a/athom-sw01.yaml +++ b/athom-sw01.yaml @@ -78,6 +78,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: level: ${log_level} @@ -128,6 +129,7 @@ select: binary_sensor: - platform: status name: "Status" + id: status_sensor entity_category: diagnostic # Touch Button @@ -150,7 +152,7 @@ binary_sensor: - timing: - ON for at least 4s then: - - button.press: Reset + - button.press: factory_reset_button sensor: - platform: uptime @@ -167,6 +169,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); @@ -177,15 +180,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 @@ -204,6 +209,7 @@ output: light: - platform: status_led name: "Status LED" + id: led disabled_by_default: true pin: number: GPIO0 @@ -230,14 +236,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 @@ -250,6 +260,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: |- diff --git a/athom-sw02-v2.yaml b/athom-sw02-v2.yaml index 974f723d..68612ae9 100644 --- a/athom-sw02-v2.yaml +++ b/athom-sw02-v2.yaml @@ -81,6 +81,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: level: ${log_level} @@ -131,6 +132,7 @@ select: binary_sensor: - platform: status name: "Status" + id: status_sensor entity_category: diagnostic # Touch Buttons @@ -153,7 +155,7 @@ binary_sensor: - timing: - ON for at least 4s then: - - button.press: Reset + - button.press: factory_reset_button - platform: gpio pin: @@ -185,6 +187,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); @@ -195,15 +198,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 @@ -233,6 +238,7 @@ output: light: - platform: status_led name: "Status LED" + id: led disabled_by_default: true pin: number: GPIO0 @@ -276,14 +282,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 @@ -296,6 +306,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: |- diff --git a/athom-sw02.yaml b/athom-sw02.yaml index dc10dfd9..18384ab3 100644 --- a/athom-sw02.yaml +++ b/athom-sw02.yaml @@ -81,6 +81,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: level: ${log_level} @@ -131,6 +132,7 @@ select: binary_sensor: - platform: status name: "Status" + id: status_sensor entity_category: diagnostic # Touch Buttons @@ -153,7 +155,7 @@ binary_sensor: - timing: - ON for at least 4s then: - - button.press: Reset + - button.press: factory_reset_button - platform: gpio pin: @@ -185,6 +187,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); @@ -195,15 +198,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 @@ -229,6 +234,7 @@ output: light: - platform: status_led name: "Status LED" + id: led disabled_by_default: true pin: number: GPIO0 @@ -271,14 +277,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 @@ -291,6 +301,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: |- diff --git a/athom-sw03.yaml b/athom-sw03.yaml index 956bb012..c77f02aa 100644 --- a/athom-sw03.yaml +++ b/athom-sw03.yaml @@ -84,6 +84,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: level: ${log_level} @@ -134,6 +135,7 @@ select: binary_sensor: - platform: status name: "Status" + id: status_sensor entity_category: diagnostic # Touch Buttons @@ -156,7 +158,7 @@ binary_sensor: - timing: - ON for at least 4s then: - - button.press: Reset + - button.press: factory_reset_button - platform: gpio pin: @@ -203,6 +205,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); @@ -213,15 +216,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 @@ -254,6 +259,7 @@ output: light: - platform: status_led name: "Status LED" + id: led disabled_by_default: true pin: number: GPIO0 @@ -312,14 +318,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 @@ -332,6 +342,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: |- diff --git a/athom-sw04.yaml b/athom-sw04.yaml index e89e9df2..93a02248 100644 --- a/athom-sw04.yaml +++ b/athom-sw04.yaml @@ -87,6 +87,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: level: ${log_level} @@ -137,6 +138,7 @@ select: binary_sensor: - platform: status name: "Status" + id: status_sensor entity_category: diagnostic # Touch Buttons @@ -145,6 +147,7 @@ binary_sensor: inverted: true number: GPIO12 name: "Button1" + id: button1 disabled_by_default: true on_multi_click: - timing: @@ -155,13 +158,14 @@ binary_sensor: - timing: - ON for at least 4s then: - - button.press: Reset + - button.press: factory_reset_button - platform: gpio pin: inverted: true number: GPIO3 name: "Button2" + id: button2 disabled_by_default: true on_click: max_length: 0.5s @@ -173,6 +177,7 @@ binary_sensor: inverted: true number: GPIO5 name: "Button3" + id: button3 disabled_by_default: true on_click: max_length: 0.5s @@ -184,6 +189,7 @@ binary_sensor: inverted: true number: GPIO16 name: "Button4" + id: button4 disabled_by_default: true on_click: max_length: 0.5s @@ -205,6 +211,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); @@ -215,15 +222,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 @@ -245,6 +254,7 @@ output: light: - platform: status_led name: "Status LED" + id: led disabled_by_default: true pin: number: GPIO0 @@ -274,14 +284,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 @@ -294,6 +308,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: |- diff --git a/athom-wall-outlet.yaml b/athom-wall-outlet.yaml index cd078caf..7309a421 100644 --- a/athom-wall-outlet.yaml +++ b/athom-wall-outlet.yaml @@ -77,6 +77,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: baud_rate: 0 @@ -104,9 +105,10 @@ dashboard_import: package_import_url: github://athom-tech/athom-configs/athom-wall-outlet.yaml uart: - rx_pin: RX - baud_rate: 4800 - parity: EVEN + - id: uart_bus + rx_pin: RX + baud_rate: 4800 + parity: EVEN globals: - id: total_energy @@ -136,6 +138,7 @@ select: binary_sensor: - platform: status name: "Status" + id: status_sensor entity_category: diagnostic - platform: gpio @@ -144,6 +147,7 @@ binary_sensor: mode: INPUT_PULLUP inverted: true name: "Power Button" + id: power_button disabled_by_default: true on_multi_click: - timing: @@ -154,7 +158,7 @@ binary_sensor: - timing: - ON for at least 4s then: - - button.press: Reset + - button.press: factory_reset_button sensor: - platform: uptime @@ -173,6 +177,7 @@ sensor: # Reports the WiFi signal strength in % - 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); @@ -248,7 +253,8 @@ sensor: update_interval: ${sensor_update_interval} - platform: total_daily_energy - name: "Total Energy Since Boot" + id: daily_energy + name: "Total Daily Energy" restore: true power_id: power_sensor unit_of_measurement: kWh @@ -289,15 +295,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 @@ -323,14 +331,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 @@ -343,6 +355,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: |- diff --git a/athom-without-relay-plug.yaml b/athom-without-relay-plug.yaml index 1e44e62b..abdd97fc 100644 --- a/athom-without-relay-plug.yaml +++ b/athom-without-relay-plug.yaml @@ -52,6 +52,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: level: ${log_level} @@ -85,9 +86,10 @@ dashboard_import: # - source: github://dentra/esphome-components uart: - rx_pin: RX - baud_rate: 4800 - parity: EVEN + - id: uart_bus + rx_pin: RX + baud_rate: 4800 + parity: EVEN globals: - id: total_energy @@ -98,6 +100,7 @@ globals: binary_sensor: - platform: status name: "Status" + id: status_sensor entity_category: diagnostic - platform: gpio @@ -106,12 +109,13 @@ binary_sensor: mode: INPUT_PULLUP inverted: true name: "Button" + id: button_sensor disabled_by_default: true on_multi_click: - timing: - ON for at least 4s then: - - button.press: Reset + - button.press: factory_reset_button sensor: - platform: uptime @@ -130,6 +134,7 @@ sensor: # Reports the WiFi signal strength in % - 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); @@ -202,7 +207,8 @@ sensor: update_interval: ${sensor_update_interval} - platform: total_daily_energy - name: "Total Energy Since Boot" + name: "Total Daily Energy" + id: daily_energy restore: true power_id: power_sensor unit_of_measurement: kWh @@ -243,15 +249,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 @@ -266,14 +274,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 @@ -286,6 +298,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: |- diff --git a/athom-ws2812b.yaml b/athom-ws2812b.yaml index 0fed9514..5f34f3f2 100644 --- a/athom-ws2812b.yaml +++ b/athom-ws2812b.yaml @@ -34,6 +34,7 @@ api: ota: - platform: esphome + id: ota_esphome_id logger: baud_rate: 0 @@ -55,6 +56,7 @@ dashboard_import: binary_sensor: - platform: status name: "Status" + id: status_sensor - platform: gpio pin: @@ -62,6 +64,7 @@ binary_sensor: mode: INPUT_PULLUP inverted: true name: "Power Button" + id: power_button disabled_by_default: true on_multi_click: - timing: @@ -72,23 +75,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 light: @@ -106,12 +112,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