mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 15:10:51 +00:00
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: J. Nick Koston <nick+github@koston.org> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
28 lines
555 B
YAML
28 lines
555 B
YAML
zephyr_ble_server:
|
|
|
|
ota:
|
|
- platform: zephyr_mcumgr
|
|
transport:
|
|
ble: true
|
|
hardware_uart: CDC
|
|
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);
|