Skip to content

Commit

Permalink
Beta Firmware Switch (#186)
Browse files Browse the repository at this point in the history
* Add Beta Firmware Switch

* Make LINT happy
  • Loading branch information
jlpouffier authored Oct 28, 2024
1 parent 62137bb commit 85bd755
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions home-assistant-voice.factory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,19 @@ esp32_improv:
on_stop:
- lambda: id(improv_ble_in_progress) = false;
- script.execute: control_leds

switch:
- platform: template
id: beta_firmware
name: Beta firmware
icon: "mdi:test-tube"
disabled_by_default: true
entity_category: diagnostic
optimistic: true
restore_mode: RESTORE_DEFAULT_OFF
on_turn_on:
- logger.log: "OTA updates set to use Beta firmware"
- lambda: id(update_http_request).set_source_url("https://firmware.esphome.io/home-assistant-voice-pe/home-assistant-voice/manifest-beta.json");
on_turn_off:
- logger.log: "OTA updates set to use Production firmware"
- lambda: id(update_http_request).set_source_url("https://firmware.esphome.io/home-assistant-voice-pe/home-assistant-voice/manifest.json");

0 comments on commit 85bd755

Please sign in to comment.