Skip to content

Commit

Permalink
Add module configs for grove port / m5tack-env-iv sensor (#219)
Browse files Browse the repository at this point in the history
* 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
jesserockz authored Dec 12, 2024
1 parent ecf3f62 commit 93089df
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
5 changes: 0 additions & 5 deletions home-assistant-voice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,6 @@ switch:
entity_category: config
restore_mode: ALWAYS_OFF
internal: true
- platform: gpio
pin: GPIO46
id: grove_port_power
# Change this to ALWAYS_ON if you are planning to use the Grove port
restore_mode: RESTORE_DEFAULT_OFF

binary_sensor:
# Center Button. Used for many things (See on_multi_click)
Expand Down
11 changes: 11 additions & 0 deletions modules/grove-i2c.yaml
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)
6 changes: 6 additions & 0 deletions modules/grove-power.yaml
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)

0 comments on commit 93089df

Please sign in to comment.