Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add module configs for grove port / m5tack-env-iv sensor #219

Merged
merged 5 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Loading