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