mirror of
https://github.com/tjhorner/upsy-desky.git
synced 2026-01-11 00:07:56 -05:00
Compare commits
30 Commits
v0.4.1
...
esphome-20
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
581bb2883e | ||
|
|
41517256bb | ||
|
|
931edac2a5 | ||
|
|
6a5fbfa383 | ||
|
|
e334e7004f | ||
|
|
c36fcb5232 | ||
|
|
a4484761cd | ||
|
|
7bf1275e7d | ||
|
|
b28dcb26ca | ||
|
|
0ae038b8b7 | ||
|
|
543f901d90 | ||
|
|
f3b31ecc61 | ||
|
|
9bcd331a3d | ||
|
|
88f5110e62 | ||
|
|
4a1289de03 | ||
|
|
6626be4545 | ||
|
|
bd416f2ea7 | ||
|
|
54384fe695 | ||
|
|
51650653bf | ||
|
|
b4aaef1dd2 | ||
|
|
193cfe88a1 | ||
|
|
78d6c58d78 | ||
|
|
583a14d664 | ||
|
|
fd16478c5a | ||
|
|
ce9cb8b003 | ||
|
|
274ec9ac94 | ||
|
|
0567307595 | ||
|
|
7a881dc1ee | ||
|
|
148b9cd379 | ||
|
|
655cb303d3 |
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@@ -1 +1,2 @@
|
||||
github: tjhorner
|
||||
ko_fi: tjhorner
|
||||
|
||||
50
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
Normal file
50
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
Normal 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
40
.github/workflows/nightly-build.yaml
vendored
Normal 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 }}"
|
||||
@@ -46,10 +46,7 @@ Or whatever else you'd like. The possibilities are endless! As long as the possi
|
||||
|
||||
## Compatibility
|
||||
|
||||
Any standing desk that uses RJ45 to connect to the keypad is likely compatible, but these brands of desks have been verified to work, with official firmware provided:
|
||||
|
||||
- UPLIFT v2
|
||||
- Fully Jarvis
|
||||
Any standing desk that uses RJ45 to connect to the keypad is likely compatible, but the control boxes listed [here](https://upsy-desky.tjhorner.dev/docs/reference/compatibility/) are verified to be compatible.
|
||||
|
||||
## Documentation
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
substitutions:
|
||||
bluetooth_proxy_active_connections: "true"
|
||||
|
||||
esp32_ble_tracker:
|
||||
|
||||
bluetooth_proxy:
|
||||
active: true
|
||||
active: ${bluetooth_proxy_active_connections}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,18 +1,6 @@
|
||||
select:
|
||||
- platform: template
|
||||
name: "Height Decoder Variant"
|
||||
entity_category: "config"
|
||||
optimistic: true
|
||||
restore_value: true
|
||||
options:
|
||||
- uplift
|
||||
- jarvis
|
||||
- omnidesk
|
||||
initial_option: ${standing_desk_variant}
|
||||
on_value:
|
||||
then:
|
||||
lambda: "id(desk_height)->set_decoder_variant(x);"
|
||||
- platform: template
|
||||
id: height_units_config
|
||||
name: "Height Units"
|
||||
entity_category: "config"
|
||||
optimistic: true
|
||||
@@ -24,8 +12,20 @@ select:
|
||||
on_value:
|
||||
then:
|
||||
lambda: |
|
||||
id(desk_height)->set_unit_of_measurement(x);
|
||||
id(target_desk_height)->traits.set_unit_of_measurement(x);
|
||||
const char *unit = id(height_units_config)->state.c_str();
|
||||
id(desk_height)->set_unit_of_measurement(unit);
|
||||
id(target_desk_height)->traits.set_unit_of_measurement(unit);
|
||||
|
||||
button:
|
||||
- platform: template
|
||||
name: "Re-Detect Decoder"
|
||||
entity_category: "config"
|
||||
icon: "mdi:cog-refresh"
|
||||
on_press:
|
||||
- uart.write:
|
||||
id: handset_tx
|
||||
data: [ 0x0 ]
|
||||
- standing_desk_height.detect_decoder: desk_height
|
||||
|
||||
number:
|
||||
- platform: template
|
||||
|
||||
@@ -3,6 +3,7 @@ esphome:
|
||||
name: "${name}"
|
||||
friendly_name: "${friendly_name}"
|
||||
name_add_mac_suffix: true
|
||||
min_version: "2023.12.0"
|
||||
on_boot:
|
||||
then:
|
||||
# Wakes up the desk and reports height
|
||||
@@ -11,7 +12,7 @@ esphome:
|
||||
data: [ 0x0 ]
|
||||
project:
|
||||
name: tj_horner.upsy_desky
|
||||
version: "0.4.1"
|
||||
version: "2.0.0-pre"
|
||||
|
||||
uart:
|
||||
id: handset_tx
|
||||
@@ -32,7 +33,6 @@ substitutions:
|
||||
standing_desk_uart_rx_pin: "17"
|
||||
standing_desk_up_pin: "21"
|
||||
standing_desk_down_pin: "22"
|
||||
standing_desk_variant: "uplift"
|
||||
standing_desk_min_height: "25.2"
|
||||
standing_desk_max_height: "50.8"
|
||||
|
||||
@@ -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@master
|
||||
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
|
||||
|
||||
@@ -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,15 +25,18 @@ captive_portal:
|
||||
|
||||
improv_serial:
|
||||
|
||||
esp32_improv:
|
||||
authorizer: false
|
||||
|
||||
api:
|
||||
password: ""
|
||||
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@v0.4.0
|
||||
package_import_url: github://tjhorner/upsy-desky/firmware/stock.yaml@v1.1.1
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"board": {
|
||||
"3dviewports": [],
|
||||
"design_settings": {
|
||||
"defaults": {
|
||||
"board_outline_line_width": 0.09999999999999999,
|
||||
@@ -138,7 +139,8 @@
|
||||
"zones_allow_external_fillets": false,
|
||||
"zones_use_no_outline": true
|
||||
},
|
||||
"layer_presets": []
|
||||
"layer_presets": [],
|
||||
"viewports": []
|
||||
},
|
||||
"boards": [],
|
||||
"cvpcb": {
|
||||
@@ -322,18 +324,23 @@
|
||||
"rule_severities": {
|
||||
"bus_definition_conflict": "error",
|
||||
"bus_entry_needed": "error",
|
||||
"bus_label_syntax": "error",
|
||||
"bus_to_bus_conflict": "error",
|
||||
"bus_to_net_conflict": "error",
|
||||
"conflicting_netclasses": "error",
|
||||
"different_unit_footprint": "error",
|
||||
"different_unit_net": "error",
|
||||
"duplicate_reference": "error",
|
||||
"duplicate_sheet_names": "error",
|
||||
"endpoint_off_grid": "warning",
|
||||
"extra_units": "error",
|
||||
"global_label_dangling": "warning",
|
||||
"hier_label_mismatch": "error",
|
||||
"label_dangling": "error",
|
||||
"lib_symbol_issues": "warning",
|
||||
"missing_bidi_pin": "warning",
|
||||
"missing_input_pin": "warning",
|
||||
"missing_power_pin": "error",
|
||||
"missing_unit": "warning",
|
||||
"multiple_net_names": "warning",
|
||||
"net_not_bus_member": "warning",
|
||||
"no_connect_connected": "warning",
|
||||
@@ -343,6 +350,7 @@
|
||||
"pin_to_pin": "warning",
|
||||
"power_pin_not_driven": "error",
|
||||
"similar_labels": "warning",
|
||||
"simulation_model_issue": "error",
|
||||
"unannotated": "error",
|
||||
"unit_value_mismatch": "error",
|
||||
"unresolved_variable": "error",
|
||||
@@ -360,7 +368,7 @@
|
||||
"net_settings": {
|
||||
"classes": [
|
||||
{
|
||||
"bus_width": 12.0,
|
||||
"bus_width": 12,
|
||||
"clearance": 0.2,
|
||||
"diff_pair_gap": 0.25,
|
||||
"diff_pair_via_gap": 0.25,
|
||||
@@ -374,13 +382,15 @@
|
||||
"track_width": 0.25,
|
||||
"via_diameter": 0.8,
|
||||
"via_drill": 0.4,
|
||||
"wire_width": 6.0
|
||||
"wire_width": 6
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"version": 2
|
||||
"version": 3
|
||||
},
|
||||
"net_colors": null
|
||||
"net_colors": null,
|
||||
"netclass_assignments": null,
|
||||
"netclass_patterns": []
|
||||
},
|
||||
"pcbnew": {
|
||||
"last_paths": {
|
||||
@@ -396,6 +406,8 @@
|
||||
"schematic": {
|
||||
"annotate_start_num": 0,
|
||||
"drawing": {
|
||||
"dashed_lines_dash_length_ratio": 12.0,
|
||||
"dashed_lines_gap_length_ratio": 3.0,
|
||||
"default_line_thickness": 6.0,
|
||||
"default_text_size": 50.0,
|
||||
"field_names": [],
|
||||
@@ -427,7 +439,11 @@
|
||||
"page_layout_descr_file": "",
|
||||
"plot_directory": "./",
|
||||
"spice_adjust_passive_values": false,
|
||||
"spice_current_sheet_as_root": false,
|
||||
"spice_external_command": "spice \"%I\"",
|
||||
"spice_model_current_sheet_as_root": true,
|
||||
"spice_save_all_currents": false,
|
||||
"spice_save_all_voltages": false,
|
||||
"subpart_first_id": 65,
|
||||
"subpart_id_separator": 0
|
||||
},
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
1
tools/tindie/.gitignore
vendored
Normal file
1
tools/tindie/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.csv
|
||||
26
tools/tindie/split-csv.sh
Executable file
26
tools/tindie/split-csv.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm -f ud_orders.csv first_class_and_intl.csv priority.csv priority_express.csv pickup.csv
|
||||
|
||||
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 ud_orders)
|
||||
=
|
||||
(
|
||||
(SELECT count(*) from first_class_and_intl) +
|
||||
(SELECT count(*) from priority) +
|
||||
(SELECT count(*) from priority_express) +
|
||||
(SELECT count(*) from pickup)
|
||||
)
|
||||
AS SanityCheck;
|
||||
END
|
||||
)
|
||||
|
||||
csvq "$SANITY_CHECK_QUERY"
|
||||
Reference in New Issue
Block a user