Compare commits
4 Commits
dbf0a86cc9
...
575b4bd3f3
Author | SHA1 | Date |
---|---|---|
Paul Wieland | 575b4bd3f3 | |
Paul Wieland | 494af2b067 | |
Paul Wieland | ee1a970647 | |
Paul Wieland | fda14ac1b5 |
|
@ -4,7 +4,7 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- ratgdo32
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 4 * * 1'
|
- cron: '0 4 * * 1'
|
||||||
|
@ -97,7 +97,7 @@ jobs:
|
||||||
|
|
||||||
|
|
||||||
consolidate:
|
consolidate:
|
||||||
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/ratgdo32'
|
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
|
||||||
name: Consolidate firmwares
|
name: Consolidate firmwares
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
|
@ -119,7 +119,7 @@ jobs:
|
||||||
path: output
|
path: output
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/ratgdo32'
|
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
|
||||||
name: Deploy to GitHub Pages
|
name: Deploy to GitHub Pages
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: consolidate
|
needs: consolidate
|
||||||
|
|
|
@ -3,7 +3,7 @@ external_components:
|
||||||
- source:
|
- source:
|
||||||
type: git
|
type: git
|
||||||
url: https://github.com/ratgdo/esphome-ratgdo
|
url: https://github.com/ratgdo/esphome-ratgdo
|
||||||
ref: ratgdo32
|
ref: main
|
||||||
refresh: 1s
|
refresh: 1s
|
||||||
# - source:
|
# - source:
|
||||||
# type: local
|
# type: local
|
||||||
|
|
|
@ -4,7 +4,7 @@ external_components:
|
||||||
- source:
|
- source:
|
||||||
type: git
|
type: git
|
||||||
url: https://github.com/ratgdo/esphome-ratgdo
|
url: https://github.com/ratgdo/esphome-ratgdo
|
||||||
ref: ratgdo32
|
ref: main
|
||||||
refresh: 1s
|
refresh: 1s
|
||||||
# - source:
|
# - source:
|
||||||
# type: local
|
# type: local
|
||||||
|
|
|
@ -4,7 +4,7 @@ external_components:
|
||||||
- source:
|
- source:
|
||||||
type: git
|
type: git
|
||||||
url: https://github.com/ratgdo/esphome-ratgdo
|
url: https://github.com/ratgdo/esphome-ratgdo
|
||||||
ref: ratgdo32
|
ref: main
|
||||||
refresh: 1s
|
refresh: 1s
|
||||||
# - source:
|
# - source:
|
||||||
# type: local
|
# type: local
|
||||||
|
|
|
@ -80,7 +80,7 @@ namespace ratgdo {
|
||||||
VL53L4CX_MultiRangingData_t* pDistanceData = &distanceData;
|
VL53L4CX_MultiRangingData_t* pDistanceData = &distanceData;
|
||||||
uint8_t dataReady = 0;
|
uint8_t dataReady = 0;
|
||||||
int objCount = 0;
|
int objCount = 0;
|
||||||
int16_t maxDistance = 0;
|
int16_t maxDistance = -1;
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
if (this->distance_sensor_.VL53L4CX_GetMeasurementDataReady(&dataReady) == 0 && dataReady) {
|
if (this->distance_sensor_.VL53L4CX_GetMeasurementDataReady(&dataReady) == 0 && dataReady) {
|
||||||
|
@ -91,6 +91,7 @@ namespace ratgdo {
|
||||||
VL53L4CX_TargetRangeData_t *d = &pDistanceData->RangeData[i];
|
VL53L4CX_TargetRangeData_t *d = &pDistanceData->RangeData[i];
|
||||||
if (d->RangeStatus == 0) {
|
if (d->RangeStatus == 0) {
|
||||||
maxDistance = std::max(maxDistance, d->RangeMilliMeter);
|
maxDistance = std::max(maxDistance, d->RangeMilliMeter);
|
||||||
|
maxDistance = maxDistance <= 25 ? -1 : maxDistance; // ignore the dust protection sticker
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ dashboard_import:
|
||||||
packages:
|
packages:
|
||||||
remote_package:
|
remote_package:
|
||||||
url: https://github.com/ratgdo/esphome-ratgdo
|
url: https://github.com/ratgdo/esphome-ratgdo
|
||||||
ref: ratgdo32
|
ref: main
|
||||||
files: [base.yaml]
|
files: [base.yaml]
|
||||||
refresh: 1s
|
refresh: 1s
|
||||||
# remote_package: !include
|
# remote_package: !include
|
||||||
|
|
|
@ -29,7 +29,7 @@ dashboard_import:
|
||||||
packages:
|
packages:
|
||||||
remote_package:
|
remote_package:
|
||||||
url: https://github.com/ratgdo/esphome-ratgdo
|
url: https://github.com/ratgdo/esphome-ratgdo
|
||||||
ref: ratgdo32
|
ref: main
|
||||||
files: [base_drycontact.yaml]
|
files: [base_drycontact.yaml]
|
||||||
refresh: 1s
|
refresh: 1s
|
||||||
# remote_package: !include
|
# remote_package: !include
|
||||||
|
|
|
@ -30,7 +30,7 @@ dashboard_import:
|
||||||
packages:
|
packages:
|
||||||
remote_package:
|
remote_package:
|
||||||
url: https://github.com/ratgdo/esphome-ratgdo
|
url: https://github.com/ratgdo/esphome-ratgdo
|
||||||
ref: ratgdo32
|
ref: main
|
||||||
files: [base_secplusv1.yaml]
|
files: [base_secplusv1.yaml]
|
||||||
refresh: 1s
|
refresh: 1s
|
||||||
# remote_package: !include
|
# remote_package: !include
|
||||||
|
|
|
@ -30,7 +30,7 @@ dashboard_import:
|
||||||
packages:
|
packages:
|
||||||
remote_package:
|
remote_package:
|
||||||
url: https://github.com/ratgdo/esphome-ratgdo
|
url: https://github.com/ratgdo/esphome-ratgdo
|
||||||
ref: ratgdo32
|
ref: main
|
||||||
files: [base.yaml]
|
files: [base.yaml]
|
||||||
refresh: 1s
|
refresh: 1s
|
||||||
# remote_package: !include
|
# remote_package: !include
|
||||||
|
|
|
@ -29,7 +29,7 @@ dashboard_import:
|
||||||
packages:
|
packages:
|
||||||
remote_package:
|
remote_package:
|
||||||
url: https://github.com/ratgdo/esphome-ratgdo
|
url: https://github.com/ratgdo/esphome-ratgdo
|
||||||
ref: ratgdo32
|
ref: main
|
||||||
files: [base_drycontact.yaml]
|
files: [base_drycontact.yaml]
|
||||||
refresh: 1s
|
refresh: 1s
|
||||||
# remote_package: !include
|
# remote_package: !include
|
||||||
|
|
|
@ -30,7 +30,7 @@ dashboard_import:
|
||||||
packages:
|
packages:
|
||||||
remote_package:
|
remote_package:
|
||||||
url: https://github.com/ratgdo/esphome-ratgdo
|
url: https://github.com/ratgdo/esphome-ratgdo
|
||||||
ref: ratgdo32
|
ref: main
|
||||||
files: [base_secplusv1.yaml]
|
files: [base_secplusv1.yaml]
|
||||||
refresh: 1s
|
refresh: 1s
|
||||||
# remote_package: !include
|
# remote_package: !include
|
||||||
|
|
Loading…
Reference in New Issue