| @ -0,0 +1,4 @@ | |||||
| - platform: restart | |||||
| name: Restart | |||||
| icon: "mdi:restart" | |||||
| entity_category: diagnostic | |||||
| @ -0,0 +1,4 @@ | |||||
| - platform: safe_mode | |||||
| name: Safe Mode Boot | |||||
| icon: "mdi:restart" | |||||
| entity_category: diagnostic | |||||
| @ -0,0 +1,7 @@ | |||||
| <<: !include config/wifi.yaml | |||||
| <<: !include config/time.yaml | |||||
| <<: !include config/ota.yaml | |||||
| <<: !include config/api.yaml | |||||
| <<: !include config/mqtt.yaml | |||||
| logger: | |||||
| @ -0,0 +1,7 @@ | |||||
| ## Native API Component ## | |||||
| ## https://esphome.io/components/api.html | |||||
| api: | |||||
| # Set to 0s to disable switch reboot if nothing connects to the API | |||||
| reboot_timeout: 15min | |||||
| encryption: | |||||
| key: ${encryption_key} | |||||
| @ -0,0 +1,19 @@ | |||||
| ## MQTT Client Component ## | |||||
| ## https://esphome.io/components/mqtt.html | |||||
| mqtt: | |||||
| # Set to 0s to disable switch reboot if no MQTT connection exists | |||||
| reboot_timeout: 15min | |||||
| broker: ${mqtt_broker} | |||||
| username: ${mqtt_username} | |||||
| password: ${mqtt_password} | |||||
| discovery: false | |||||
| log_topic: | |||||
| topic: esphome/logs/${devicename} | |||||
| level: ERROR | |||||
| topic_prefix: esphome | |||||
| birth_message: | |||||
| topic: esphome/state/${devicename} | |||||
| payload: online | |||||
| will_message: | |||||
| topic: esphome/state/${devicename} | |||||
| payload: offline | |||||
| @ -0,0 +1,6 @@ | |||||
| ## Over-the-Air Updates ## | |||||
| ## https://esphome.io/components/ota/ | |||||
| ## https://esphome.io/components/ota/esphome | |||||
| ota: | |||||
| - platform: esphome | |||||
| password: ${ota_password} | |||||
| @ -0,0 +1,6 @@ | |||||
| ## Time Component ## | |||||
| ## https://esphome.io/components/time/ | |||||
| time: | |||||
| - platform: sntp | |||||
| servers: ${ntp_server_ip} | |||||
| timezone: ${timezone} | |||||
| @ -0,0 +1,12 @@ | |||||
| ## WiFi Component ## | |||||
| ## https://esphome.io/components/wifi.html | |||||
| wifi: | |||||
| ssid: ${wifi_ssid} | |||||
| password: ${wifi_password} | |||||
| domain: ${wifi_domain} | |||||
| fast_connect: true | |||||
| power_save_mode: none | |||||
| ap: | |||||
| ssid: "${devicename} Fallback" | |||||
| password: ${fallback_ap_password} | |||||
| @ -0,0 +1,7 @@ | |||||
| - platform: uptime | |||||
| name: Uptime | |||||
| type: seconds | |||||
| update_interval: 60s | |||||
| entity_category: "diagnostic" | |||||
| state_class: measurement | |||||
| device_class: duration | |||||
| @ -0,0 +1,7 @@ | |||||
| - platform: wifi_signal # Reports the WiFi signal strength/RSSI in dB | |||||
| name: "WiFi Signali dB" | |||||
| id: wifi_signal_db | |||||
| update_interval: 60s | |||||
| entity_category: "diagnostic" | |||||
| state_class: measurement | |||||
| device_class: signal_strength | |||||