generated from esphome/esphome-project-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for multiple project manifests
- Loading branch information
1 parent
f237a03
commit a9ef327
Showing
8 changed files
with
138 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Publish ESPHome website | ||
name: Website Changed | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Bed Presence Mk1 Firmware Changed | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'test.yaml' | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/action-build-and-publish.yml | ||
with: | ||
files: test.yaml | ||
name: Test | ||
esphome_version: latest | ||
manifest_filename: test-manifest.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
layout: default | ||
title: ESP Web Tools | ||
header_type: post | ||
show_breadcrumb: false | ||
--- | ||
|
||
# Installation | ||
|
||
You can use the button below to install the pre-built firmware directly to your device via USB from the browser. Note this has already been done from the factory. You only need to do this if you're trying to start fresh, or grap the latest updates. | ||
|
||
<ul class="radios"> | ||
<li> | ||
<label><input type="radio" name="type" value="bpmk1" />Bed Presence Mk1</label> | ||
</li> | ||
<li> | ||
<label><input type="radio" name="type" value="test" />2nd Test Device</label> | ||
</li> | ||
</ul> | ||
<p class="button-row" align="center"> | ||
<esp-web-install-button class="btn btn-outline-warning invisible"></esp-web-install-button> | ||
</p> | ||
|
||
<esp-web-install-button manifest="../../manifest.json"></esp-web-install-button> | ||
|
||
<script type="module" src="https://unpkg.com/esp-web-tools@10/dist/web/install-button.js?module"></script> | ||
<script> | ||
document.querySelectorAll('input[name="type"]').forEach(radio => | ||
radio.addEventListener("change", () => { | ||
const button = document.querySelector('esp-web-install-button'); | ||
button.manifest = `https://docs.elevatedsensors.com/${radio.value}-manifest.json`; | ||
button.classList.remove('invisible'); | ||
} | ||
)); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
substitutions: | ||
name: bed-presence | ||
friendly_name: Bed Presence | ||
|
||
# Calibrate Trigger Percentile | ||
# This controls how the trigger threshold is set during calibration. During calibration, the unoccupied and occupied | ||
# pressure values are determined. This is the percentage of the difference between those values required to trigger | ||
# the "occupied" state. | ||
# - 0.75 Requires 75% of the occupied pressure to trigger (Default) | ||
# - 0.50 Set trigger exactly in the middle of unoccupied and occupied pressures | ||
# - 0.25 More sensitive, likely to be triggered by partner | ||
trigger_percentile: '0.75' | ||
|
||
# Fast Sensor Delay | ||
# This controls how long the "Fast" sensor must register its value before updating. Without any delay, the sensor | ||
# will register frequent fall negatives as you shift in bed. | ||
# - 2s Same response as standard sensor | ||
# - 500ms Good starting point for getting speed without too many false negatives (Default) | ||
# - 0ms No delay, expect frequent false negatives | ||
fast_delayed_off: '500ms' | ||
|
||
esphome: | ||
name: ${name} | ||
friendly_name: ${friendly_name} | ||
name_add_mac_suffix: true | ||
project: | ||
name: ElevatedSensors.BedPresence | ||
version: Mk1 | ||
|
||
esp32: | ||
board: esp32-c3-devkitm-1 | ||
framework: | ||
type: arduino | ||
|
||
# Allow Import | ||
dashboard_import: | ||
package_import_url: github://ElevatedSensors/sensor-configs/bed-presence-mk1.yaml@main | ||
import_full_config: true | ||
|
||
# Enable logging | ||
logger: | ||
|
||
# Enable Home Assistant API | ||
api: | ||
|
||
# Allow provisioning Wi-Fi via serial | ||
improv_serial: | ||
|
||
wifi: | ||
# Set up a wifi access point | ||
ap: {} | ||
|
||
# In combination with the `ap` this allows the user | ||
# to provision wifi credentials to the device via WiFi AP. | ||
captive_portal: | ||
|
||
# Sets up Bluetooth LE (Only on ESP32) to allow the user | ||
# to provision wifi credentials to the device. | ||
esp32_improv: | ||
authorizer: none | ||
|
||
# To have a "next url" for improv serial | ||
web_server: | ||
|
||
# Enable esphome OTA updates | ||
ota: | ||
platform: esphome |