Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
8fd9da023This file is pinned to the selected release. Download the original to open it in your design tool.
<html>
<head>
<title>Home Assistant Voice PE</title>
<meta
name="description"
content="Install firmware on Home Assistant Voice PE."
/>
<style>
/* Basic styling for the details element */
details {
border: 1px solid #ccc;
border-radius: 5px;
padding: 10px;
width: 300px;
background-color: #f9f9f9;
margin: 10px;
font-family: Arial, sans-serif;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease-in-out;
}
/* Styling for the summary element */
summary {
font-size: 1.1em;
font-weight: bold;
cursor: pointer;
outline: none;
}
/* Hover effect for summary */
summary:hover {
color: #007bff;
}
/* Open details transition */
details[open] {
border-color: #007bff;
background-color: #eef6ff;
}
details[open] summary {
margin-bottom: 12px;
}
.link {
margin-top: 8px;
}
</style>
</head>
<body>
<div>
<h1>Install Voice PE Latest Firmware</h1>
<p>
Connect your Home Assistant Voice to your computer and click on connect
below.
</p>
<esp-web-install-button
manifest="https://firmware.esphome.io/home-assistant-voice-pe/home-assistant-voice/manifest.json"
>
</esp-web-install-button>
</div>
<br />
<details>
<summary>Install Specific Version</summary>
Select a Release: <select id="releases"></select><br />
<div class="link"></div>
</details>
<script>
function selectVersion(version) {
select = document.getElementById("releases")
const option = Array.from(select.options).find(option => option.value === version);
select.selectedIndex = option ? option.index : 0;
}
function setVersion(version) {
document.querySelector("h1").innerHTML = `Install Voice PE v${version}`;
document.querySelector(
"esp-web-install-button",
).manifest = `https://firmware.esphome.io/home-assistant-voice-pe/home-assistant-voice/${version}/manifest.json`;
document.querySelector(
".link",
).innerHTML = `<a href="?version=${version}">Link to v${version}</a>`;
}
document.querySelector("#releases").addEventListener("change", (ev) => {
const version = ev.target.value;
setVersion(version);
});
var urlParams = new URLSearchParams(window.location.search);
if (urlParams.has("version")) {
const version = urlParams.get("version");
setVersion(version);
selectVersion(version);
}
</script>
</body>
<script
type="module"
src="https://unpkg.com/esp-web-tools@10/dist/web/install-button.js?module"
></script>
</html>