Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new OTA method #754

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"esphome.validator": "dashboard"
}
27 changes: 20 additions & 7 deletions src/docs/devices/AC-DC-ESP32-Relay-x4/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,26 @@ If you'll power it up with 3.3V on 5V pin - the MCU will brownout.

```yaml
esphome:
name: ac-dc-relay-x4
friendly_name: ac-dc-relay-x4

esp32:
board: esp32dev
framework:
type: arduino
name: example-device
friendly_name: Example Device

# OTA flashing
ota:
- platform: esphome

wifi: # Your Wifi network details

# Enable fallback hotspot in case wifi connection fails
ap:

# Enabling the logging component
logger:

# Enable Home Assistant API
api:

# Enable the captive portal
captive_portal:

output:
- platform: gpio
Expand Down
34 changes: 16 additions & 18 deletions src/docs/devices/AGL-2-3-Gang-Switch/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,33 +52,31 @@ PCB
## Basic Configuration (2-Gang)

```yaml
esphome:
name: agl-2-gang-switch
friendly_name: AGL 2 Gang Switch

esphome:
name: example-device
friendly_name: Example Device

esp8266:
board: esp01_1m

# Enable logging
logger:
board: esp01_1m

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# OTA flashing
ota:
- platform: esphome

# Enable fallback hotspot (captive portal) in case wifi connection fails
wifi: # Your Wifi network details

# Enable fallback hotspot in case wifi connection fails
ap:
ssid: "ESPHOME"
password: "12345678"

# Enabling the logging component
logger:

# Enable Home Assistant API
api:
reboot_timeout: 15min
encryption:
key: !secret api_encryption_key

ota:
password: !secret ota_password
# Enable the captive portal
captive_portal:

sensor:
- platform: uptime
Expand Down
36 changes: 15 additions & 21 deletions src/docs/devices/AHRise-AHR-083/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,40 +32,34 @@ substitutions:

esphome:
name: ${unique_id}
platform: ESP8266

esp8266:
board: esp01_1m
esp8266_restore_from_flash: true

# WiFi connection
wifi:
ssid: !secret iot_wifi_ssid
password: !secret iot_wifi_password
power_save_mode: none
fast_connect: true
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "${displayname}"
password: !secret ap_mode_password
restore_from_flash: true

captive_portal:
# OTA flashing
ota:
- platform: esphome

wifi: # Your Wifi network details

# Enable fallback hotspot in case wifi connection fails
ap:

# Enable logging
# Enabling the logging component
logger:

# Enable Home Assistant API
api:
reboot_timeout: 0s
encryption:
key: !secret api_encryption_key

# Enable the captive portal
captive_portal:

text_sensor:
- platform: wifi_info
ip_address:
name: "${displayname} IP Address"

ota:
password: !secret ota_password

switch:
- platform: gpio
name: "${displayname} Relay 1"
Expand Down
28 changes: 12 additions & 16 deletions src/docs/devices/AVATTO-S06-IR-Remote-no-temp-no-humidity/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,31 +58,27 @@ between the GPIO13 and the RESET pin of the ESP8266 MCU.
# https://esphome.io/devices/esp8266.html
esphome:
name: ir_remote
platform: ESP8266

esp8266:
board: esp01_1m

# OTA flashing
ota:
- platform: esphome

wifi:
ssid: !secret ssid
password: !secret wlan_password
fast_connect: true
# Enable fallback hotspot (captive portal) in case wifi connection fails
wifi: # Your Wifi network details

# Enable fallback hotspot in case wifi connection fails
ap:
ssid: IR Remote Fallback Hotspot
password: !secret ap_password

captive_portal:

# Enable logging
# Enabling the logging component
logger:
level: DEBUG # Default

# Enable Home Assistant API
api:
encryption:
key: !secret api_encryption_key

ota:
password: !secret ota_password
# Enable the captive portal
captive_portal:

# https://esphome.io/components/status_led.html
status_led:
Expand Down
19 changes: 10 additions & 9 deletions src/docs/devices/AWP02L2/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,24 @@ esphome:
name: "${device_name}"
platform: ESP8266
board: esp01_1m

# OTA flashing
ota:
- platform: esphome

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password

wifi: # Your Wifi network details

# Enable fallback hotspot in case wifi connection fails
ap:
ssid: "${device_name} Fallback Hotspot"
password: !secret wifi_fallback_pw

# Enable logging
# Enabling the logging component
logger:

# Enable Home Assistant API
api:

ota:
password: !secret avatar_1_ota
# Enable the captive portal
captive_portal:

binary_sensor:
- platform: gpio
Expand Down
75 changes: 26 additions & 49 deletions src/docs/devices/AWP04L/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,33 +35,31 @@ substitutions:
esphome:
name: ${device_name}
comment: ${device_description}
platform: ESP8266

esp8266:
board: esp01_1m
esp8266_restore_from_flash: true #writes each state change to flash for switch or light with restore_mode: RESTORE_DEFAULT_OFF/ON, see https://esphome.io/components/esphome.html#esp8266-restore-from-flash
restore_from_flash: true

wifi:
ssid: !secret wifissid
password: !secret wifipass
fast_connect: on #we only have one WiFi AP so just use the first one that matches
ap: #since we listed an SSID above, this AP mode will only enable if no WiFi connection could be made
ssid: ${friendly_name}_AP
password: !secret wifipass
# OTA flashing
ota:
- platform: esphome

captive_portal:
wifi: # Your Wifi network details

# Enable fallback hotspot in case wifi connection fails
ap:

# Enable logging
# Enabling the logging component
logger:
baud_rate: 0 #disable UART logging since we aren't connected to GPIO1 TX

# Enable Home Assistant API
api:

# Enable OTA updates
ota:
# Enable the captive portal
captive_portal:

# Enable web server
web_server:
port: 80

# Enable time component for use by daily power sensor
time:
Expand All @@ -84,10 +82,6 @@ binary_sensor:
name: ${friendly_name} Status

sensor:
# Reports the WiFi signal strength
- platform: wifi_signal
name: ${friendly_name} Signal
update_interval: 60s

# Reports how long the device has been powered (in minutes)
- platform: uptime
Expand Down Expand Up @@ -143,11 +137,6 @@ sensor:
- multiply: 0.001 ## convert Wh to kWh
unit_of_measurement: kWh

text_sensor:
# Reports the ESPHome Version with compile date
- platform: version
name: ${friendly_name} ESPHome Version

switch:
- platform: gpio
name: ${friendly_name}
Expand Down Expand Up @@ -268,37 +257,34 @@ In plug_common.yaml:

```yaml
# Common code for AWP04L plugs

esphome:
name: ${device_name}
comment: ${device_description}
platform: ESP8266

esp8266:
board: esp01_1m
esp8266_restore_from_flash: true #writes each state change to flash for switch or light with restore_mode: RESTORE_DEFAULT_OFF/ON, see https://esphome.io/components/esphome.html#esp8266-restore-from-flash
restore_from_flash: true

wifi:
ssid: !secret wifissid
password: !secret wifipass
fast_connect: on #we only have one WiFi AP so just use the first one that matches
ap: #since we listed an SSID above, this AP mode will only enable if no WiFi connection could be made
ssid: ${friendly_name}_AP
password: !secret wifipass
# OTA flashing
ota:
- platform: esphome

captive_portal:
wifi: # Your Wifi network details

# Enable fallback hotspot in case wifi connection fails
ap:

# Enable logging
# Enabling the logging component
logger:
baud_rate: 0 #disable UART logging since we aren't connected to GPIO1 TX

# Enable Home Assistant API
api:

# Enable OTA updates
ota:
# Enable the captive portal
captive_portal:

# Enable web server
web_server:
port: 80

# Enable time component for use by daily power sensor
time:
Expand All @@ -321,10 +307,6 @@ binary_sensor:
name: ${friendly_name} Status

sensor:
# Reports the WiFi signal strength
- platform: wifi_signal
name: ${friendly_name} Signal
update_interval: 60s

# Reports how long the device has been powered (in minutes)
- platform: uptime
Expand Down Expand Up @@ -380,11 +362,6 @@ sensor:
- multiply: 0.001 ## convert Wh to kWh
unit_of_measurement: kWh

text_sensor:
# Reports the ESPHome Version with compile date
- platform: version
name: ${friendly_name} ESPHome Version

switch:
- platform: gpio
name: ${friendly_name}
Expand Down
Loading