-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from Lyr3x/dev
Bugfixes
- Loading branch information
Showing
21 changed files
with
456 additions
and
119 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: CI | ||
on: | ||
push: | ||
paths: | ||
- "components/**" | ||
- "ci/**" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
validate: | ||
strategy: | ||
matrix: | ||
esp: ["esp32", "esp8266"] | ||
name: Validate ${{ matrix.esp }} config | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Setup Python | ||
uses: actions/setup-python@master | ||
with: | ||
python-version: "3.x" | ||
- name: Install ESPHome | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -U esphome | ||
pip install -U pillow | ||
- name: Validate ${{ matrix.esp }} default Config | ||
run: esphome config ci/${{ matrix.esp }}.yaml | ||
|
||
- name: Validate ${{ matrix.esp }} manual Config | ||
run: esphome config ci/${{ matrix.esp }}_manual.yaml | ||
build: | ||
strategy: | ||
matrix: | ||
esp: ["esp32", "esp8266"] | ||
name: Build ${{ matrix.esp }} firmware | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Setup Python | ||
uses: actions/setup-python@master | ||
with: | ||
python-version: "3.x" | ||
- name: Install ESPHome | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -U esphome | ||
pip install -U pillow | ||
- name: Build ${{ matrix.esp }} default config | ||
run: esphome compile ci/${{ matrix.esp }}.yaml | ||
|
||
- name: Build ${{ matrix.esp }} manual config | ||
run: esphome compile ci/${{ matrix.esp }}_manual.yaml |
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,18 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- "[0-9]+.[0-9]+.[0-9]+" | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create release | ||
uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
automatic_release_tag: ${{ github.ref }} | ||
prerelease: false | ||
title: ${{ github.ref }} |
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 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,64 @@ | ||
substitutions: | ||
devicename: ci | ||
friendly_name: $devicename | ||
|
||
external_components: | ||
refresh: always | ||
source: ../components | ||
|
||
esphome: | ||
name: $devicename | ||
|
||
button: | ||
- platform: restart | ||
name: $friendly_name Restart | ||
entity_category: config | ||
- platform: template | ||
name: $friendly_name Recalibrate | ||
on_press: | ||
- lambda: id(roode_platform)->recalibration(); | ||
entity_category: config | ||
|
||
number: | ||
- platform: roode | ||
people_counter: | ||
name: $friendly_name people counter | ||
|
||
binary_sensor: | ||
- platform: roode | ||
presence_sensor: | ||
name: $friendly_name presence | ||
|
||
sensor: | ||
- platform: roode | ||
id: roode_sensors | ||
distance_entry: | ||
name: $friendly_name distance zone 0 | ||
distance_exit: | ||
name: $friendly_name distance zone 1 | ||
max_threshold_entry: | ||
name: $friendly_name max zone 0 | ||
max_threshold_exit: | ||
name: $friendly_name max zone 1 | ||
min_threshold_entry: | ||
name: $friendly_name min zone 0 | ||
min_threshold_exit: | ||
name: $friendly_name min zone 1 | ||
roi_height_entry: | ||
name: $friendly_name ROI height zone 0 | ||
roi_width_entry: | ||
name: $friendly_name ROI width zone 0 | ||
roi_height_exit: | ||
name: $friendly_name ROI height zone 1 | ||
roi_width_exit: | ||
name: $friendly_name ROI width zone 1 | ||
sensor_status: | ||
name: Sensor Status | ||
|
||
text_sensor: | ||
- platform: roode | ||
version: | ||
name: $friendly_name version | ||
- platform: roode | ||
entry_exit_event: | ||
name: $friendly_name last direction |
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 @@ | ||
<<: !include common.yaml | ||
|
||
esp32: | ||
board: wemos_d1_mini32 | ||
framework: | ||
type: arduino | ||
|
||
i2c: | ||
sda: 21 | ||
scl: 22 | ||
|
||
# VL53L1X sensor configuration is separate from Roode people counting algorithm | ||
vl53l1x: | ||
calibration: | ||
|
||
roode: | ||
id: roode_platform |
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,21 @@ | ||
<<: !include esp32.yaml | ||
|
||
vl53l1x: | ||
calibration: | ||
ranging: short | ||
|
||
roode: | ||
id: roode_platform | ||
sampling: 1 | ||
roi: { height: 16, width: 6 } | ||
detection_thresholds: | ||
max: 85% | ||
zones: | ||
entry: | ||
roi: { height: 15, width: 6 } | ||
detection_thresholds: | ||
max: 80% | ||
exit: | ||
roi: { height: 14, width: 6 } | ||
detection_thresholds: | ||
max: 75% |
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,16 @@ | ||
<<: !include common.yaml | ||
esphome: | ||
name: $devicename | ||
platform: ESP8266 | ||
board: d1_mini | ||
|
||
i2c: | ||
sda: 4 | ||
scl: 5 | ||
|
||
# VL53L1X sensor configuration is separate from Roode people counting algorithm | ||
vl53l1x: | ||
calibration: | ||
|
||
roode: | ||
id: roode_platform |
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,21 @@ | ||
<<: !include esp8266.yaml | ||
|
||
vl53l1x: | ||
calibration: | ||
ranging: short | ||
|
||
roode: | ||
id: roode_platform | ||
sampling: 1 | ||
roi: { height: 16, width: 6 } | ||
detection_thresholds: | ||
max: 85% | ||
zones: | ||
entry: | ||
roi: { height: 15, width: 6 } | ||
detection_thresholds: | ||
max: 80% | ||
exit: | ||
roi: { height: 14, width: 6 } | ||
detection_thresholds: | ||
max: 75% |
Oops, something went wrong.