Skip to content

Commit

Permalink
June24 (#128)
Browse files Browse the repository at this point in the history
* add ota platform

* remove logger from device base

* add i2c package

* upgrade build action version

* upgrade esphome builder version
  • Loading branch information
landonr committed Jun 20, 2024
1 parent 0b7221c commit aa3e9e9
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
run: |
echo "d2lmaV9ic3NpZDogIjFDOjg3OjJDOjcwOkMyOkMyIgp3aWZpX3NzaWQ6ICJzc2lkIgp3aWZpX3Bhc3N3b3JkOiAid2lmaXBhc3MiCndpZmlfZmFsbGJhY2tfcGFzc3dvcmQ6ICJ3aWZpZmFsbGJhY2twYXNzIgphcGlfZW5jcnlwdGlvbjogImFwaWVuY3J5cHRpb24iCm90YV9lbmNyeXB0aW9uOiAib3RhZW5jcnlwdGlvbiIK" | base64 --decode > secrets.yaml
- name: Build esphome
uses: esphome/build-action@v1.8.0
uses: esphome/build-action@v2.0.1
with:
# version: dev
yaml_file: ${{ matrix.name }}
8 changes: 0 additions & 8 deletions common/device_base.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
substitutions:
log_level: "INFO"

logger:
level: ${log_level}

# WiFi Configuration, uncomment and fill secrets.yaml with wifi_ssid and wifi_password to enable fast connect

captive_portal:

wifi:
Expand Down
19 changes: 19 additions & 0 deletions common/i2c.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
defaults:
i2cBusA_sda: GPIO18
i2cBusA_scl: GPIO17
i2cBusA_scan: "FALSE"
i2cBusB_sda: GPIO44
i2cBusB_scl: GPIO43
i2cBusB_scan: "FALSE"

i2c:
- id: i2cBusA
sda: $i2cBusA_sda
scl: $i2cBusA_scl
scan: $i2cBusA_scan
frequency: 100hz
- id: i2cBusB
sda: $i2cBusB_sda
scl: $i2cBusB_scl
# frequency: 10kHz
scan: $i2cBusB_scan
1 change: 1 addition & 0 deletions common/logger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ logger:
light: WARN
api: INFO
voice_assistant: INFO
climate: INFO
level: DEBUG

0 comments on commit aa3e9e9

Please sign in to comment.