16 Commits

Author SHA1 Message Date
TJ Horner
581bb2883e Add ESPHome 2023.12 compatibility 2023-12-16 17:00:13 -08:00
TJ Horner
41517256bb Add GH Sponsors 2023-11-08 16:55:58 -08:00
TJ Horner
931edac2a5 Disable bluetooth proxy active connections by default in stock firmware 2023-10-31 19:00:48 -07:00
TJ Horner
6a5fbfa383 Firmware 1.1.2 2023-10-31 15:48:47 -07:00
TJ Horner
e334e7004f Add nightly build to ensure it always works with latest ESPHome 2023-05-26 20:02:56 -07:00
TJ Horner
c36fcb5232 Change issue template description 2023-05-26 18:42:22 -07:00
TJ Horner
a4484761cd I hope the template supports markdown in the description 2023-05-26 18:41:02 -07:00
TJ Horner
7bf1275e7d Rearrange bug report template 2023-05-26 18:40:00 -07:00
TJ Horner
b28dcb26ca Add bug report issue template 2023-05-26 18:38:07 -07:00
TJ Horner
0ae038b8b7 Switch to using second repository for project_version component 2023-05-23 10:28:23 -07:00
TJ Horner
543f901d90 Obtain custom component from GitHub instead of relative path 2023-05-23 10:19:57 -07:00
TJ Horner
f3b31ecc61 Version 1.1.1 2023-05-23 09:28:05 -07:00
TJ Horner
9bcd331a3d Version 1.1.0 2023-05-23 07:35:09 -07:00
TJ Horner
88f5110e62 Merge branch 'project-version-component' 2023-05-23 07:32:28 -07:00
TJ Horner
4a1289de03 tindie tools update 2023-05-23 07:30:22 -07:00
TJ Horner
6626be4545 Project version component test 2023-05-22 12:31:25 -07:00
8 changed files with 134 additions and 16 deletions

1
.github/FUNDING.yml vendored
View File

@@ -1 +1,2 @@
github: tjhorner
ko_fi: tjhorner

50
.github/ISSUE_TEMPLATE/bug_report.yml vendored Normal file
View File

@@ -0,0 +1,50 @@
name: Bug Report
description: File a bug report or get help with an issue.
labels: ["bug"]
assignees:
- tjhorner
body:
- type: checkboxes
id: troubleshooting-followed
attributes:
label: Troubleshooting Guide
description: Please confirm you have followed the [troubleshooting guide](https://upsy-desky.tjhorner.dev/docs/troubleshooting).
options:
- label: I have followed the steps in the troubleshooting guide and my issue is either not listed or is not solved.
required: true
- type: textarea
id: description
attributes:
label: Description
description: Please describe the bug you encountered, and what you expected to happen instead.
validations:
required: true
- type: textarea
id: logs
attributes:
label: Logs
description: Please copy and paste any relevant log output. Learn how to obtain logs [here](https://upsy-desky.tjhorner.dev/docs/troubleshooting/#other-issues).
render: plain text
- type: input
id: config-version
attributes:
label: Which version of the Upsy Desky firmware config are you running?
placeholder: "1.1.1"
- type: dropdown
id: update-management
attributes:
label: How do you manage your Upsy Desky's updates?
options:
- OTA Updates
- ESPHome YAML Config
- type: input
id: esphome-version
attributes:
label: If you're using an ESPHome YAML config, which version of ESPHome are you running?
placeholder: "2023.5.4"
- type: textarea
id: esphome-config
attributes:
label: ESPHome Config
description: If you have your own ESPHome YAML configuration, please paste it here. Remember to redact any sensitive information like encryption keys or passwords.
render: YAML

40
.github/workflows/nightly-build.yaml vendored Normal file
View File

@@ -0,0 +1,40 @@
name: Nightly Stock Firmware Build
on:
schedule:
- cron: "0 0 * * *"
jobs:
build:
name: Build Firmware
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install ESPHome
run: pip install --pre --user esphome
- name: Compile Release Firmware
working-directory: firmware
run: |
esphome compile stock.yaml
mkdir -p bin
cp .esphome/build/upsy-desky/.pioenvs/upsy-desky/firmware-factory.bin bin/firmware-factory.bin
cp .esphome/build/upsy-desky/.pioenvs/upsy-desky/firmware.bin bin/firmware.bin
- uses: actions/upload-artifact@v3
with:
name: firmware-bin
path: firmware/bin
- name: Send Discord failure notification
if: failure()
uses: appleboy/discord-action@master
with:
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
color: "#FF6961"
message: "The latest nightly build failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"

View File

@@ -1,4 +1,7 @@
substitutions:
bluetooth_proxy_active_connections: "true"
esp32_ble_tracker:
bluetooth_proxy:
active: true
active: ${bluetooth_proxy_active_connections}

View File

@@ -2,22 +2,28 @@ output:
- platform: gpio
inverted: true
id: button_bit1
pin: ${button_bit1_pin}
pin:
number: ${button_bit1_pin}
allow_other_uses: true
- platform: gpio
inverted: true
id: button_bit2
pin: ${button_bit2_pin}
pin:
number: ${button_bit2_pin}
allow_other_uses: true
- platform: gpio
inverted: true
id: button_bit4
pin: ${button_bit4_pin}
pin:
number: ${button_bit4_pin}
- platform: gpio
inverted: true
id: button_m
pin: ${button_m_pin}
pin:
number: ${button_m_pin}
button:
# Recall Presets

View File

@@ -3,7 +3,7 @@ esphome:
name: "${name}"
friendly_name: "${friendly_name}"
name_add_mac_suffix: true
min_version: "2023.5.1"
min_version: "2023.12.0"
on_boot:
then:
# Wakes up the desk and reports height
@@ -12,7 +12,7 @@ esphome:
data: [ 0x0 ]
project:
name: tj_horner.upsy_desky
version: "1.0.4"
version: "2.0.0-pre"
uart:
id: handset_tx
@@ -46,11 +46,10 @@ substitutions:
default_height_units: "in" # Must be "in" or "cm"
packages:
standing_desk: github://tjhorner/esphome-standing-desk/configs/template.yaml
standing_desk: github://tjhorner/esphome-standing-desk/configs/template.yaml@esphome-2023.12
addon_presets: !include addons/presets.yaml
addon_stable_ids: !include addons/stable-ids.yaml
addon_runtime_config: !include addons/runtime-config.yaml
addon_bluetooth_proxy: !include addons/bluetooth-proxy.yaml
button:
- platform: restart

View File

@@ -1,5 +1,18 @@
packages:
base: !include base.yaml
addon_bluetooth_proxy: !include addons/bluetooth-proxy.yaml
substitutions:
bluetooth_proxy_active_connections: "false"
external_components:
- source: github://tjhorner/esphome-custom-components
components: [ project_version ]
text_sensor:
- platform: project_version
name: "Upsy Desky Firmware Version"
internal: true
logger:
level: INFO
@@ -12,14 +25,18 @@ captive_portal:
improv_serial:
esp32_improv:
authorizer: false
api:
reboot_timeout: 0s
web_server:
port: 80
js_url: "https://upsy-desky.tjhorner.dev/esphome-webserver/www.js"
ota:
password: ""
dashboard_import:
package_import_url: github://tjhorner/upsy-desky/firmware/stock.yaml@v1.0.4
package_import_url: github://tjhorner/upsy-desky/firmware/stock.yaml@v1.1.1

View File

@@ -1,15 +1,17 @@
#!/bin/bash
rm -f first_class_and_intl.csv priority.csv priority_express.csv pickup.csv
rm -f ud_orders.csv first_class_and_intl.csv priority.csv priority_express.csv pickup.csv
csvq -o first_class_and_intl.csv "SELECT * FROM all_orders WHERE \`Shipping Method\` LIKE \"%First-Class%\" OR \`Shipping Method\` LIKE \"%Simple Export Rate%\";"
csvq -o priority.csv "SELECT * FROM all_orders WHERE \`Shipping Method\` LIKE \"%Priority Mail%\" AND \`Shipping Method\` NOT LIKE \"%Priority Mail Express%\";"
csvq -o priority_express.csv "SELECT * FROM all_orders WHERE \`Shipping Method\` LIKE \"%Priority Mail Express%\";"
csvq -o pickup.csv "SELECT * FROM all_orders WHERE \`Shipping Method\` LIKE \"%Pickup%\";"
csvq -o ud_orders.csv "SELECT * FROM all_orders WHERE \`Model Number\` LIKE \"%UPSY%\";"
csvq -o first_class_and_intl.csv "SELECT * FROM ud_orders WHERE \`Shipping Method\` LIKE \"%First-Class%\" OR \`Shipping Method\` LIKE \"%Simple Export Rate%\";"
csvq -o priority.csv "SELECT * FROM ud_orders WHERE \`Shipping Method\` LIKE \"%Priority Mail%\" AND \`Shipping Method\` NOT LIKE \"%Priority Mail Express%\";"
csvq -o priority_express.csv "SELECT * FROM ud_orders WHERE \`Shipping Method\` LIKE \"%Priority Mail Express%\";"
csvq -o pickup.csv "SELECT * FROM ud_orders WHERE \`Shipping Method\` LIKE \"%Pickup%\";"
SANITY_CHECK_QUERY=$(cat <<-END
SELECT
(SELECT count(*) from all_orders)
(SELECT count(*) from ud_orders)
=
(
(SELECT count(*) from first_class_and_intl) +