Skip to content

Commit

Permalink
Add module configs for grove port / m5tack-env-iv sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz committed Dec 10, 2024
1 parent 656ef34 commit 907f272
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/grove-i2c.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
i2c:
- id: grove_i2c
sda: GPIO1
scl: GPIO2

switch:
- id: !extend grove_port_power
restore_mode: ALWAYS_ON
setup_priority: 1001
15 changes: 15 additions & 0 deletions modules/m5stack-env-iv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
sensor:
- platform: sht4x
i2c_id: grove_i2c
temperature:
name: Temperature
humidity:
name: Humidity

- platform: bmp280_i2c
i2c_id: grove_i2c
address: 0x76
temperature:
name: Temperature 2
pressure:
name: Pressure

0 comments on commit 907f272

Please sign in to comment.