From 7c80eba8a67a403ce96bbbeea8d7154d1ab7f9b6 Mon Sep 17 00:00:00 2001 From: JLo Date: Mon, 28 Oct 2024 08:20:56 +0000 Subject: [PATCH] Add Beta Firmware Switch --- home-assistant-voice.factory.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/home-assistant-voice.factory.yaml b/home-assistant-voice.factory.yaml index e183b9b..9919fc5 100644 --- a/home-assistant-voice.factory.yaml +++ b/home-assistant-voice.factory.yaml @@ -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"); \ No newline at end of file