-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add module configs for grove port / m5tack-env-iv sensor (#219)
* Add module configs for grove port / m5tack-env-iv sensor * Remove env-iv from repo Move grove power switch to grove yaml * yamllint * Add grove power module for when you dont want i2c
- Loading branch information
1 parent
ecf3f62
commit 93089df
Showing
3 changed files
with
17 additions
and
5 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
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,11 @@ | ||
i2c: | ||
- id: grove_i2c | ||
sda: GPIO1 | ||
scl: GPIO2 | ||
|
||
switch: | ||
- platform: gpio | ||
pin: GPIO46 | ||
id: grove_port_power | ||
restore_mode: ALWAYS_ON | ||
setup_priority: 1001 # This sets the pin to be on before the i2c scan happens (priority 1000) |
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,6 @@ | ||
switch: | ||
- platform: gpio | ||
pin: GPIO46 | ||
id: grove_port_power | ||
restore_mode: ALWAYS_ON | ||
setup_priority: 1001 # This sets the pin to be on before the i2c scan happens (priority 1000) |