From 907f2724730196cb21934074b9afd8076eef296d Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Tue, 10 Dec 2024 22:38:50 +1300 Subject: [PATCH] Add module configs for grove port / m5tack-env-iv sensor --- modules/grove-i2c.yaml | 9 +++++++++ modules/m5stack-env-iv.yaml | 15 +++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 modules/grove-i2c.yaml create mode 100644 modules/m5stack-env-iv.yaml diff --git a/modules/grove-i2c.yaml b/modules/grove-i2c.yaml new file mode 100644 index 00000000..f6972562 --- /dev/null +++ b/modules/grove-i2c.yaml @@ -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 diff --git a/modules/m5stack-env-iv.yaml b/modules/m5stack-env-iv.yaml new file mode 100644 index 00000000..282903b9 --- /dev/null +++ b/modules/m5stack-env-iv.yaml @@ -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