mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 14:43:51 +00:00
SPI and I2C for ENS160 (#6369)
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
i2c:
|
||||
- id: i2c_ens160
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ens160
|
||||
eco2:
|
||||
name: ENS160 eCO2
|
||||
tvoc:
|
||||
name: ENS160 Total Volatile Organic Compounds
|
||||
aqi:
|
||||
name: ENS160 Air Quality Index
|
||||
@@ -1,13 +0,0 @@
|
||||
i2c:
|
||||
- id: i2c_ens160
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ens160
|
||||
eco2:
|
||||
name: ENS160 eCO2
|
||||
tvoc:
|
||||
name: ENS160 Total Volatile Organic Compounds
|
||||
aqi:
|
||||
name: ENS160 Air Quality Index
|
||||
@@ -1,13 +0,0 @@
|
||||
i2c:
|
||||
- id: i2c_ens160
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: ens160
|
||||
eco2:
|
||||
name: ENS160 eCO2
|
||||
tvoc:
|
||||
name: ENS160 Total Volatile Organic Compounds
|
||||
aqi:
|
||||
name: ENS160 Air Quality Index
|
||||
@@ -1,13 +0,0 @@
|
||||
i2c:
|
||||
- id: i2c_ens160
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: ens160
|
||||
eco2:
|
||||
name: ENS160 eCO2
|
||||
tvoc:
|
||||
name: ENS160 Total Volatile Organic Compounds
|
||||
aqi:
|
||||
name: ENS160 Air Quality Index
|
||||
@@ -1,13 +0,0 @@
|
||||
i2c:
|
||||
- id: i2c_ens160
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ens160
|
||||
eco2:
|
||||
name: ENS160 eCO2
|
||||
tvoc:
|
||||
name: ENS160 Total Volatile Organic Compounds
|
||||
aqi:
|
||||
name: ENS160 Air Quality Index
|
||||
@@ -1,13 +0,0 @@
|
||||
i2c:
|
||||
- id: i2c_ens160
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ens160
|
||||
eco2:
|
||||
name: ENS160 eCO2
|
||||
tvoc:
|
||||
name: ENS160 Total Volatile Organic Compounds
|
||||
aqi:
|
||||
name: ENS160 Air Quality Index
|
||||
15
tests/components/ens160_i2c/common.yaml
Normal file
15
tests/components/ens160_i2c/common.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
i2c:
|
||||
- id: i2c_ens160
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: ens160_i2c
|
||||
i2c_id: i2c_ens160
|
||||
address: 0x53
|
||||
eco2:
|
||||
name: "ENS160 eCO2"
|
||||
tvoc:
|
||||
name: "ENS160 Total Volatile Organic Compounds"
|
||||
aqi:
|
||||
name: "ENS160 Air Quality Index"
|
||||
5
tests/components/ens160_i2c/test.esp32-c3-idf.yaml
Normal file
5
tests/components/ens160_i2c/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
||||
5
tests/components/ens160_i2c/test.esp32-c3.yaml
Normal file
5
tests/components/ens160_i2c/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
||||
5
tests/components/ens160_i2c/test.esp32-idf.yaml
Normal file
5
tests/components/ens160_i2c/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
||||
5
tests/components/ens160_i2c/test.esp32.yaml
Normal file
5
tests/components/ens160_i2c/test.esp32.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
||||
5
tests/components/ens160_i2c/test.esp8266.yaml
Normal file
5
tests/components/ens160_i2c/test.esp8266.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
||||
5
tests/components/ens160_i2c/test.rp2040.yaml
Normal file
5
tests/components/ens160_i2c/test.rp2040.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
||||
17
tests/components/ens160_spi/common.yaml
Normal file
17
tests/components/ens160_spi/common.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
spi:
|
||||
- id: spi_ens160
|
||||
clk_pin: ${clk_pin}
|
||||
mosi_pin: ${mosi_pin}
|
||||
miso_pin: ${miso_pin}
|
||||
|
||||
sensor:
|
||||
- platform: ens160_spi
|
||||
spi_id: spi_ens160
|
||||
cs_pin: ${cs_pin}
|
||||
eco2:
|
||||
name: "ENS160 eCO2"
|
||||
tvoc:
|
||||
name: "ENS160 Total Volatile Organic Compounds"
|
||||
aqi:
|
||||
name: "ENS160 Air Quality Index"
|
||||
|
||||
7
tests/components/ens160_spi/test.esp32-c3-idf.yaml
Normal file
7
tests/components/ens160_spi/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
miso_pin: GPIO5
|
||||
cs_pin: GPIO8
|
||||
|
||||
<<: !include common.yaml
|
||||
7
tests/components/ens160_spi/test.esp32-c3.yaml
Normal file
7
tests/components/ens160_spi/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
miso_pin: GPIO5
|
||||
cs_pin: GPIO8
|
||||
|
||||
<<: !include common.yaml
|
||||
7
tests/components/ens160_spi/test.esp32-idf.yaml
Normal file
7
tests/components/ens160_spi/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO16
|
||||
mosi_pin: GPIO17
|
||||
miso_pin: GPIO15
|
||||
cs_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
||||
7
tests/components/ens160_spi/test.esp32.yaml
Normal file
7
tests/components/ens160_spi/test.esp32.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO16
|
||||
mosi_pin: GPIO17
|
||||
miso_pin: GPIO15
|
||||
cs_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
||||
7
tests/components/ens160_spi/test.esp8266.yaml
Normal file
7
tests/components/ens160_spi/test.esp8266.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO14
|
||||
mosi_pin: GPIO13
|
||||
miso_pin: GPIO12
|
||||
cs_pin: GPIO15
|
||||
|
||||
<<: !include common.yaml
|
||||
7
tests/components/ens160_spi/test.rp2040.yaml
Normal file
7
tests/components/ens160_spi/test.rp2040.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO2
|
||||
mosi_pin: GPIO3
|
||||
miso_pin: GPIO4
|
||||
cs_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
||||
@@ -245,13 +245,6 @@ sensor:
|
||||
name: "ADE7953 Reactive Power B"
|
||||
update_interval: 1s
|
||||
|
||||
- platform: ens160
|
||||
eco2:
|
||||
name: "ENS160 eCO2"
|
||||
tvoc:
|
||||
name: "ENS160 Total Volatile Organic Compounds"
|
||||
aqi:
|
||||
name: "ENS160 Air Quality Index"
|
||||
- platform: tmp102
|
||||
name: TMP102 Temperature
|
||||
- platform: hm3301
|
||||
|
||||
Reference in New Issue
Block a user