Skip to content

Commit

Permalink
Add Beta Firmware Switch
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpouffier committed Oct 28, 2024
1 parent 62137bb commit 7c80eba
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");

Check failure on line 70 in home-assistant-voice.factory.yaml

View workflow job for this annotation

GitHub Actions / 🧹 yamllint

70:146 [new-line-at-end-of-file] no new line character at the end of file

0 comments on commit 7c80eba

Please sign in to comment.