mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 21:44:55 +01:00
28 lines
583 B
YAML
28 lines
583 B
YAML
wifi:
|
|
ssid: MySSID
|
|
password: password1
|
|
|
|
ota:
|
|
- platform: esphome
|
|
password: "superlongpasswordthatnoonewillknow"
|
|
port: 3286
|
|
on_begin:
|
|
then:
|
|
- logger.log: "OTA start"
|
|
on_progress:
|
|
then:
|
|
- logger.log:
|
|
format: "OTA progress %0.1f%%"
|
|
args: ["x"]
|
|
on_end:
|
|
then:
|
|
- logger.log: "OTA end"
|
|
on_error:
|
|
then:
|
|
- logger.log:
|
|
format: "OTA update error %d"
|
|
args: ["x"]
|
|
on_state_change:
|
|
then:
|
|
lambda: >-
|
|
ESP_LOGD("ota", "State %d", state);
|