1
0
mirror of https://github.com/esphome/esphome.git synced 2025-04-12 22:00:30 +01:00

[CI] Consolidate some tests (T) (#8208)

This commit is contained in:
Keith Burzinski 2025-02-09 15:43:21 -06:00 committed by GitHub
parent dc8646cda6
commit 8897a9866d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
160 changed files with 1045 additions and 2640 deletions

View File

@ -0,0 +1,10 @@
uart:
- id: uart_t6615
tx_pin: ${tx_pin}
rx_pin: ${rx_pin}
baud_rate: 19200
sensor:
- platform: t6615
co2:
name: CO2 Sensor

View File

@ -1,10 +1,5 @@
uart:
- id: uart_t6615
tx_pin: 17
rx_pin: 16
baud_rate: 19200
substitutions:
tx_pin: GPIO17
rx_pin: GPIO16
sensor:
- platform: t6615
co2:
name: CO2 Sensor
<<: !include common.yaml

View File

@ -1,10 +1,5 @@
uart:
- id: uart_t6615
tx_pin: 4
rx_pin: 5
baud_rate: 19200
substitutions:
tx_pin: GPIO4
rx_pin: GPIO5
sensor:
- platform: t6615
co2:
name: CO2 Sensor
<<: !include common.yaml

View File

@ -1,10 +1,5 @@
uart:
- id: uart_t6615
tx_pin: 4
rx_pin: 5
baud_rate: 19200
substitutions:
tx_pin: GPIO4
rx_pin: GPIO5
sensor:
- platform: t6615
co2:
name: CO2 Sensor
<<: !include common.yaml

View File

@ -1,10 +1,5 @@
uart:
- id: uart_t6615
tx_pin: 17
rx_pin: 16
baud_rate: 19200
substitutions:
tx_pin: GPIO17
rx_pin: GPIO16
sensor:
- platform: t6615
co2:
name: CO2 Sensor
<<: !include common.yaml

View File

@ -1,10 +1,5 @@
uart:
- id: uart_t6615
tx_pin: 4
rx_pin: 5
baud_rate: 19200
substitutions:
tx_pin: GPIO4
rx_pin: GPIO5
sensor:
- platform: t6615
co2:
name: CO2 Sensor
<<: !include common.yaml

View File

@ -1,10 +1,5 @@
uart:
- id: uart_t6615
tx_pin: 4
rx_pin: 5
baud_rate: 19200
substitutions:
tx_pin: GPIO4
rx_pin: GPIO5
sensor:
- platform: t6615
co2:
name: CO2 Sensor
<<: !include common.yaml

View File

@ -0,0 +1,8 @@
i2c:
- id: i2c_tc74
scl: ${scl_pin}
sda: ${sda_pin}
sensor:
- platform: tc74
name: TC74 Temperature

View File

@ -1,8 +1,5 @@
i2c:
- id: i2c_tc74
scl: 16
sda: 17
substitutions:
scl_pin: GPIO16
sda_pin: GPIO17
sensor:
- platform: tc74
name: TC74 Temperature
<<: !include common.yaml

View File

@ -1,8 +1,5 @@
i2c:
- id: i2c_tc74
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tc74
name: TC74 Temperature
<<: !include common.yaml

View File

@ -1,8 +1,5 @@
i2c:
- id: i2c_tc74
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tc74
name: TC74 Temperature
<<: !include common.yaml

View File

@ -1,8 +1,5 @@
i2c:
- id: i2c_tc74
scl: 16
sda: 17
substitutions:
scl_pin: GPIO16
sda_pin: GPIO17
sensor:
- platform: tc74
name: TC74 Temperature
<<: !include common.yaml

View File

@ -1,8 +1,5 @@
i2c:
- id: i2c_tc74
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tc74
name: TC74 Temperature
<<: !include common.yaml

View File

@ -1,8 +1,5 @@
i2c:
- id: i2c_tc74
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tc74
name: TC74 Temperature
<<: !include common.yaml

View File

@ -0,0 +1,15 @@
i2c:
- id: i2c_tca9548a
scl: ${scl_pin}
sda: ${sda_pin}
tca9548a:
- id: multiplex0
address: 0x70
channels:
- bus_id: multiplex0_chan0
channel: 0
i2c_id: i2c_tca9548a
- id: multiplex1
address: 0x71
i2c_id: multiplex0_chan0

View File

@ -1,15 +1,5 @@
i2c:
- id: i2c_tca9548a
scl: 16
sda: 17
substitutions:
scl_pin: GPIO16
sda_pin: GPIO17
tca9548a:
- id: multiplex0
address: 0x70
channels:
- bus_id: multiplex0_chan0
channel: 0
i2c_id: i2c_tca9548a
- id: multiplex1
address: 0x71
i2c_id: multiplex0_chan0
<<: !include common.yaml

View File

@ -1,15 +1,5 @@
i2c:
- id: i2c_tca9548a
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
tca9548a:
- id: multiplex0
address: 0x70
channels:
- bus_id: multiplex0_chan0
channel: 0
i2c_id: i2c_tca9548a
- id: multiplex1
address: 0x71
i2c_id: multiplex0_chan0
<<: !include common.yaml

View File

@ -1,15 +1,5 @@
i2c:
- id: i2c_tca9548a
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
tca9548a:
- id: multiplex0
address: 0x70
channels:
- bus_id: multiplex0_chan0
channel: 0
i2c_id: i2c_tca9548a
- id: multiplex1
address: 0x71
i2c_id: multiplex0_chan0
<<: !include common.yaml

View File

@ -1,15 +1,5 @@
i2c:
- id: i2c_tca9548a
scl: 16
sda: 17
substitutions:
scl_pin: GPIO16
sda_pin: GPIO17
tca9548a:
- id: multiplex0
address: 0x70
channels:
- bus_id: multiplex0_chan0
channel: 0
i2c_id: i2c_tca9548a
- id: multiplex1
address: 0x71
i2c_id: multiplex0_chan0
<<: !include common.yaml

View File

@ -1,15 +1,5 @@
i2c:
- id: i2c_tca9548a
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
tca9548a:
- id: multiplex0
address: 0x70
channels:
- bus_id: multiplex0_chan0
channel: 0
i2c_id: i2c_tca9548a
- id: multiplex1
address: 0x71
i2c_id: multiplex0_chan0
<<: !include common.yaml

View File

@ -1,15 +1,5 @@
i2c:
- id: i2c_tca9548a
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
tca9548a:
- id: multiplex0
address: 0x70
channels:
- bus_id: multiplex0_chan0
channel: 0
i2c_id: i2c_tca9548a
- id: multiplex1
address: 0x71
i2c_id: multiplex0_chan0
<<: !include common.yaml

View File

@ -0,0 +1,27 @@
i2c:
- id: i2c_tca9555
scl: ${scl_pin}
sda: ${sda_pin}
tca9555:
- id: tca9555_hub
address: 0x21
binary_sensor:
- platform: gpio
id: tca9555_binary_sensor
name: TCA9555 Binary Sensor
pin:
tca9555: tca9555_hub
number: 1
mode: INPUT
inverted: true
output:
- platform: gpio
id: tca9555_output
pin:
tca9555: tca9555_hub
number: 0
mode: OUTPUT
inverted: false

View File

@ -1,27 +1,5 @@
i2c:
- id: i2c_tca9555
scl: 16
sda: 17
substitutions:
scl_pin: GPIO16
sda_pin: GPIO17
tca9555:
- id: tca9555_hub
address: 0x21
binary_sensor:
- platform: gpio
id: tca9555_binary_sensor
name: TCA9555 Binary Sensor
pin:
tca9555: tca9555_hub
number: 1
mode: INPUT
inverted: true
output:
- platform: gpio
id: tca9555_output
pin:
tca9555: tca9555_hub
number: 0
mode: OUTPUT
inverted: false
<<: !include common.yaml

View File

@ -1,27 +1,5 @@
i2c:
- id: i2c_tca9555
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
tca9555:
- id: tca9555_hub
address: 0x21
binary_sensor:
- platform: gpio
id: tca9555_binary_sensor
name: TCA9555 Binary Sensor
pin:
tca9555: tca9555_hub
number: 1
mode: INPUT
inverted: true
output:
- platform: gpio
id: tca9555_output
pin:
tca9555: tca9555_hub
number: 0
mode: OUTPUT
inverted: false
<<: !include common.yaml

View File

@ -1,27 +1,5 @@
i2c:
- id: i2c_tca9555
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
tca9555:
- id: tca9555_hub
address: 0x21
binary_sensor:
- platform: gpio
id: tca9555_binary_sensor
name: TCA9555 Binary Sensor
pin:
tca9555: tca9555_hub
number: 1
mode: INPUT
inverted: true
output:
- platform: gpio
id: tca9555_output
pin:
tca9555: tca9555_hub
number: 0
mode: OUTPUT
inverted: false
<<: !include common.yaml

View File

@ -1,27 +1,5 @@
i2c:
- id: i2c_tca9555
scl: 16
sda: 17
substitutions:
scl_pin: GPIO16
sda_pin: GPIO17
tca9555:
- id: tca9555_hub
address: 0x21
binary_sensor:
- platform: gpio
id: tca9555_binary_sensor
name: TCA9555 Binary Sensor
pin:
tca9555: tca9555_hub
number: 1
mode: INPUT
inverted: true
output:
- platform: gpio
id: tca9555_output
pin:
tca9555: tca9555_hub
number: 0
mode: OUTPUT
inverted: false
<<: !include common.yaml

View File

@ -1,27 +1,5 @@
i2c:
- id: i2c_tca9555
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
tca9555:
- id: tca9555_hub
address: 0x21
binary_sensor:
- platform: gpio
id: tca9555_binary_sensor
name: TCA9555 Binary Sensor
pin:
tca9555: tca9555_hub
number: 1
mode: INPUT
inverted: true
output:
- platform: gpio
id: tca9555_output
pin:
tca9555: tca9555_hub
number: 0
mode: OUTPUT
inverted: false
<<: !include common.yaml

View File

@ -1,27 +1,5 @@
i2c:
- id: i2c_tca9555
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
tca9555:
- id: tca9555_hub
address: 0x21
binary_sensor:
- platform: gpio
id: tca9555_binary_sensor
name: TCA9555 Binary Sensor
pin:
tca9555: tca9555_hub
number: 1
mode: INPUT
inverted: true
output:
- platform: gpio
id: tca9555_output
pin:
tca9555: tca9555_hub
number: 0
mode: OUTPUT
inverted: false
<<: !include common.yaml

View File

@ -0,0 +1,15 @@
remote_transmitter:
pin: ${pin}
carrier_duty_percent: 50%
sensor:
- platform: template
id: tcl112_sensor
lambda: "return 21;"
climate:
- platform: tcl112
name: TCL112 Climate with Sensor
supports_heat: true
supports_cool: true
sensor: tcl112_sensor

View File

@ -1,15 +1,4 @@
remote_transmitter:
pin: 2
carrier_duty_percent: 50%
substitutions:
pin: GPIO2
sensor:
- platform: template
id: tcl112_sensor
lambda: "return 21;"
climate:
- platform: tcl112
name: TCL112 Climate with Sensor
supports_heat: true
supports_cool: true
sensor: tcl112_sensor
<<: !include common.yaml

View File

@ -1,15 +1,4 @@
remote_transmitter:
pin: 2
carrier_duty_percent: 50%
substitutions:
pin: GPIO2
sensor:
- platform: template
id: tcl112_sensor
lambda: "return 21;"
climate:
- platform: tcl112
name: TCL112 Climate with Sensor
supports_heat: true
supports_cool: true
sensor: tcl112_sensor
<<: !include common.yaml

View File

@ -1,15 +1,4 @@
remote_transmitter:
pin: 2
carrier_duty_percent: 50%
substitutions:
pin: GPIO2
sensor:
- platform: template
id: tcl112_sensor
lambda: "return 21;"
climate:
- platform: tcl112
name: TCL112 Climate with Sensor
supports_heat: true
supports_cool: true
sensor: tcl112_sensor
<<: !include common.yaml

View File

@ -1,15 +1,4 @@
remote_transmitter:
pin: 2
carrier_duty_percent: 50%
substitutions:
pin: GPIO2
sensor:
- platform: template
id: tcl112_sensor
lambda: "return 21;"
climate:
- platform: tcl112
name: TCL112 Climate with Sensor
supports_heat: true
supports_cool: true
sensor: tcl112_sensor
<<: !include common.yaml

View File

@ -1,15 +1,4 @@
remote_transmitter:
pin: 5
carrier_duty_percent: 50%
substitutions:
pin: GPIO5
sensor:
- platform: template
id: tcl112_sensor
lambda: "return 21;"
climate:
- platform: tcl112
name: TCL112 Climate with Sensor
supports_heat: true
supports_cool: true
sensor: tcl112_sensor
<<: !include common.yaml

View File

@ -0,0 +1,21 @@
i2c:
- id: i2c_tcs34725
scl: ${scl_pin}
sda: ${sda_pin}
sensor:
- platform: tcs34725
red_channel:
name: Red Channel
green_channel:
name: Green Channel
blue_channel:
name: Blue Channel
clear_channel:
name: Clear Channel
illuminance:
name: Illuminance
color_temperature:
name: Color Temperature
integration_time: 614ms
gain: 60x

View File

@ -1,21 +1,5 @@
i2c:
- id: i2c_tcs34725
scl: 16
sda: 17
substitutions:
scl_pin: GPIO16
sda_pin: GPIO17
sensor:
- platform: tcs34725
red_channel:
name: Red Channel
green_channel:
name: Green Channel
blue_channel:
name: Blue Channel
clear_channel:
name: Clear Channel
illuminance:
name: Illuminance
color_temperature:
name: Color Temperature
integration_time: 614ms
gain: 60x
<<: !include common.yaml

View File

@ -1,21 +1,5 @@
i2c:
- id: i2c_tcs34725
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tcs34725
red_channel:
name: Red Channel
green_channel:
name: Green Channel
blue_channel:
name: Blue Channel
clear_channel:
name: Clear Channel
illuminance:
name: Illuminance
color_temperature:
name: Color Temperature
integration_time: 614ms
gain: 60x
<<: !include common.yaml

View File

@ -1,21 +1,5 @@
i2c:
- id: i2c_tcs34725
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tcs34725
red_channel:
name: Red Channel
green_channel:
name: Green Channel
blue_channel:
name: Blue Channel
clear_channel:
name: Clear Channel
illuminance:
name: Illuminance
color_temperature:
name: Color Temperature
integration_time: 614ms
gain: 60x
<<: !include common.yaml

View File

@ -1,21 +1,5 @@
i2c:
- id: i2c_tcs34725
scl: 16
sda: 17
substitutions:
scl_pin: GPIO16
sda_pin: GPIO17
sensor:
- platform: tcs34725
red_channel:
name: Red Channel
green_channel:
name: Green Channel
blue_channel:
name: Blue Channel
clear_channel:
name: Clear Channel
illuminance:
name: Illuminance
color_temperature:
name: Color Temperature
integration_time: 614ms
gain: 60x
<<: !include common.yaml

View File

@ -1,21 +1,5 @@
i2c:
- id: i2c_tcs34725
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tcs34725
red_channel:
name: Red Channel
green_channel:
name: Green Channel
blue_channel:
name: Blue Channel
clear_channel:
name: Clear Channel
illuminance:
name: Illuminance
color_temperature:
name: Color Temperature
integration_time: 614ms
gain: 60x
<<: !include common.yaml

View File

@ -1,21 +1,5 @@
i2c:
- id: i2c_tcs34725
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tcs34725
red_channel:
name: Red Channel
green_channel:
name: Green Channel
blue_channel:
name: Blue Channel
clear_channel:
name: Clear Channel
illuminance:
name: Illuminance
color_temperature:
name: Color Temperature
integration_time: 614ms
gain: 60x
<<: !include common.yaml

View File

@ -0,0 +1,9 @@
i2c:
- id: i2c_tee501
scl: ${scl_pin}
sda: ${sda_pin}
sensor:
- platform: tee501
name: TEE501 Temperature
address: 0x48

View File

@ -1,9 +1,5 @@
i2c:
- id: i2c_tee501
scl: 16
sda: 17
substitutions:
scl_pin: GPIO16
sda_pin: GPIO17
sensor:
- platform: tee501
name: TEE501 Temperature
address: 0x48
<<: !include common.yaml

View File

@ -1,9 +1,5 @@
i2c:
- id: i2c_tee501
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tee501
name: TEE501 Temperature
address: 0x48
<<: !include common.yaml

View File

@ -1,9 +1,5 @@
i2c:
- id: i2c_tee501
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tee501
name: TEE501 Temperature
address: 0x48
<<: !include common.yaml

View File

@ -1,9 +1,5 @@
i2c:
- id: i2c_tee501
scl: 16
sda: 17
substitutions:
scl_pin: GPIO16
sda_pin: GPIO17
sensor:
- platform: tee501
name: TEE501 Temperature
address: 0x48
<<: !include common.yaml

View File

@ -1,9 +1,5 @@
i2c:
- id: i2c_tee501
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tee501
name: TEE501 Temperature
address: 0x48
<<: !include common.yaml

View File

@ -1,9 +1,5 @@
i2c:
- id: i2c_tee501
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tee501
name: TEE501 Temperature
address: 0x48
<<: !include common.yaml

View File

@ -0,0 +1,42 @@
uart:
- id: uart_teleinfo
tx_pin: ${tx_pin}
rx_pin: ${rx_pin}
baud_rate: 1200
parity: EVEN
button:
- platform: template
name: Poller component suspend test
on_press:
- component.suspend: test_teleinfo
- delay: 20s
- component.update: test_teleinfo
- delay: 20s
- component.resume: test_teleinfo
- delay: 20s
- component.resume:
id: test_teleinfo
update_interval: 2s
- delay: 20s
- component.resume:
id: test_teleinfo
update_interval: !lambda return 2500;
teleinfo:
id: test_teleinfo
historical_mode: true
update_interval: 60s
sensor:
- platform: teleinfo
name: hchc
tag_name: HCHC
teleinfo_id: test_teleinfo
unit_of_measurement: Wh
text_sensor:
- platform: teleinfo
name: optarif
tag_name: OPTARIF
teleinfo_id: test_teleinfo

View File

@ -1,42 +1,5 @@
uart:
- id: uart_teleinfo
tx_pin: 17
rx_pin: 16
baud_rate: 1200
parity: EVEN
substitutions:
tx_pin: GPIO17
rx_pin: GPIO16
button:
- platform: template
name: Poller component suspend test
on_press:
- component.suspend: test_teleinfo
- delay: 20s
- component.update: test_teleinfo
- delay: 20s
- component.resume: test_teleinfo
- delay: 20s
- component.resume:
id: test_teleinfo
update_interval: 2s
- delay: 20s
- component.resume:
id: test_teleinfo
update_interval: !lambda return 2500;
teleinfo:
id: test_teleinfo
historical_mode: true
update_interval: 60s
sensor:
- platform: teleinfo
name: hchc
tag_name: HCHC
teleinfo_id: test_teleinfo
unit_of_measurement: Wh
text_sensor:
- platform: teleinfo
name: optarif
tag_name: OPTARIF
teleinfo_id: test_teleinfo
<<: !include common.yaml

View File

@ -1,42 +1,5 @@
uart:
- id: uart_teleinfo
tx_pin: 4
rx_pin: 5
baud_rate: 1200
parity: EVEN
substitutions:
tx_pin: GPIO4
rx_pin: GPIO5
button:
- platform: template
name: Poller component suspend test
on_press:
- component.suspend: test_teleinfo
- delay: 20s
- component.update: test_teleinfo
- delay: 20s
- component.resume: test_teleinfo
- delay: 20s
- component.resume:
id: test_teleinfo
update_interval: 2s
- delay: 20s
- component.resume:
id: test_teleinfo
update_interval: !lambda return 2500;
teleinfo:
id: test_teleinfo
historical_mode: true
update_interval: 60s
sensor:
- platform: teleinfo
name: hchc
tag_name: HCHC
teleinfo_id: test_teleinfo
unit_of_measurement: Wh
text_sensor:
- platform: teleinfo
name: optarif
tag_name: OPTARIF
teleinfo_id: test_teleinfo
<<: !include common.yaml

View File

@ -1,42 +1,5 @@
uart:
- id: uart_teleinfo
tx_pin: 4
rx_pin: 5
baud_rate: 1200
parity: EVEN
substitutions:
tx_pin: GPIO4
rx_pin: GPIO5
button:
- platform: template
name: Poller component suspend test
on_press:
- component.suspend: test_teleinfo
- delay: 20s
- component.update: test_teleinfo
- delay: 20s
- component.resume: test_teleinfo
- delay: 20s
- component.resume:
id: test_teleinfo
update_interval: 2s
- delay: 20s
- component.resume:
id: test_teleinfo
update_interval: !lambda return 2500;
teleinfo:
id: test_teleinfo
historical_mode: true
update_interval: 60s
sensor:
- platform: teleinfo
name: hchc
tag_name: HCHC
teleinfo_id: test_teleinfo
unit_of_measurement: Wh
text_sensor:
- platform: teleinfo
name: optarif
tag_name: OPTARIF
teleinfo_id: test_teleinfo
<<: !include common.yaml

View File

@ -1,42 +1,5 @@
uart:
- id: uart_teleinfo
tx_pin: 17
rx_pin: 16
baud_rate: 1200
parity: EVEN
substitutions:
tx_pin: GPIO17
rx_pin: GPIO16
button:
- platform: template
name: Poller component suspend test
on_press:
- component.suspend: test_teleinfo
- delay: 20s
- component.update: test_teleinfo
- delay: 20s
- component.resume: test_teleinfo
- delay: 20s
- component.resume:
id: test_teleinfo
update_interval: 2s
- delay: 20s
- component.resume:
id: test_teleinfo
update_interval: !lambda return 2500;
teleinfo:
id: test_teleinfo
historical_mode: true
update_interval: 60s
sensor:
- platform: teleinfo
name: hchc
tag_name: HCHC
teleinfo_id: test_teleinfo
unit_of_measurement: Wh
text_sensor:
- platform: teleinfo
name: optarif
tag_name: OPTARIF
teleinfo_id: test_teleinfo
<<: !include common.yaml

View File

@ -1,42 +1,5 @@
uart:
- id: uart_teleinfo
tx_pin: 4
rx_pin: 5
baud_rate: 1200
parity: EVEN
substitutions:
tx_pin: GPIO4
rx_pin: GPIO5
button:
- platform: template
name: Poller component suspend test
on_press:
- component.suspend: test_teleinfo
- delay: 20s
- component.update: test_teleinfo
- delay: 20s
- component.resume: test_teleinfo
- delay: 20s
- component.resume:
id: test_teleinfo
update_interval: 2s
- delay: 20s
- component.resume:
id: test_teleinfo
update_interval: !lambda return 2500;
teleinfo:
id: test_teleinfo
historical_mode: true
update_interval: 60s
sensor:
- platform: teleinfo
name: hchc
tag_name: HCHC
teleinfo_id: test_teleinfo
unit_of_measurement: Wh
text_sensor:
- platform: teleinfo
name: optarif
tag_name: OPTARIF
teleinfo_id: test_teleinfo
<<: !include common.yaml

View File

@ -1,42 +1,5 @@
uart:
- id: uart_teleinfo
tx_pin: 4
rx_pin: 5
baud_rate: 1200
parity: EVEN
substitutions:
tx_pin: GPIO4
rx_pin: GPIO5
button:
- platform: template
name: Poller component suspend test
on_press:
- component.suspend: test_teleinfo
- delay: 20s
- component.update: test_teleinfo
- delay: 20s
- component.resume: test_teleinfo
- delay: 20s
- component.resume:
id: test_teleinfo
update_interval: 2s
- delay: 20s
- component.resume:
id: test_teleinfo
update_interval: !lambda return 2500;
teleinfo:
id: test_teleinfo
historical_mode: true
update_interval: 60s
sensor:
- platform: teleinfo
name: hchc
tag_name: HCHC
teleinfo_id: test_teleinfo
unit_of_measurement: Wh
text_sensor:
- platform: teleinfo
name: optarif
tag_name: OPTARIF
teleinfo_id: test_teleinfo
<<: !include common.yaml

View File

@ -0,0 +1,50 @@
i2c:
- id: i2c_tlc59208f
scl: ${scl_pin}
sda: ${sda_pin}
tlc59208f:
- address: 0x20
id: tlc59208f_1
- address: 0x22
id: tlc59208f_2
- address: 0x24
id: tlc59208f_3
output:
- platform: tlc59208f
id: tlc_0
channel: 0
tlc59208f_id: tlc59208f_1
- platform: tlc59208f
id: tlc_1
channel: 1
tlc59208f_id: tlc59208f_1
- platform: tlc59208f
id: tlc_2
channel: 2
tlc59208f_id: tlc59208f_1
- platform: tlc59208f
id: tlc_3
channel: 0
tlc59208f_id: tlc59208f_2
- platform: tlc59208f
id: tlc_4
channel: 1
tlc59208f_id: tlc59208f_2
- platform: tlc59208f
id: tlc_5
channel: 2
tlc59208f_id: tlc59208f_2
- platform: tlc59208f
id: tlc_6
channel: 0
tlc59208f_id: tlc59208f_3
- platform: tlc59208f
id: tlc_7
channel: 1
tlc59208f_id: tlc59208f_3
- platform: tlc59208f
id: tlc_8
channel: 2
tlc59208f_id: tlc59208f_3

View File

@ -1,50 +1,5 @@
i2c:
- id: i2c_tlc59208f
scl: 16
sda: 17
substitutions:
scl_pin: GPIO16
sda_pin: GPIO17
tlc59208f:
- address: 0x20
id: tlc59208f_1
- address: 0x22
id: tlc59208f_2
- address: 0x24
id: tlc59208f_3
output:
- platform: tlc59208f
id: tlc_0
channel: 0
tlc59208f_id: tlc59208f_1
- platform: tlc59208f
id: tlc_1
channel: 1
tlc59208f_id: tlc59208f_1
- platform: tlc59208f
id: tlc_2
channel: 2
tlc59208f_id: tlc59208f_1
- platform: tlc59208f
id: tlc_3
channel: 0
tlc59208f_id: tlc59208f_2
- platform: tlc59208f
id: tlc_4
channel: 1
tlc59208f_id: tlc59208f_2
- platform: tlc59208f
id: tlc_5
channel: 2
tlc59208f_id: tlc59208f_2
- platform: tlc59208f
id: tlc_6
channel: 0
tlc59208f_id: tlc59208f_3
- platform: tlc59208f
id: tlc_7
channel: 1
tlc59208f_id: tlc59208f_3
- platform: tlc59208f
id: tlc_8
channel: 2
tlc59208f_id: tlc59208f_3
<<: !include common.yaml

View File

@ -1,50 +1,5 @@
i2c:
- id: i2c_tlc59208f
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
tlc59208f:
- address: 0x20
id: tlc59208f_1
- address: 0x22
id: tlc59208f_2
- address: 0x24
id: tlc59208f_3
output:
- platform: tlc59208f
id: tlc_0
channel: 0
tlc59208f_id: tlc59208f_1
- platform: tlc59208f
id: tlc_1
channel: 1
tlc59208f_id: tlc59208f_1
- platform: tlc59208f
id: tlc_2
channel: 2
tlc59208f_id: tlc59208f_1
- platform: tlc59208f
id: tlc_3
channel: 0
tlc59208f_id: tlc59208f_2
- platform: tlc59208f
id: tlc_4
channel: 1
tlc59208f_id: tlc59208f_2
- platform: tlc59208f
id: tlc_5
channel: 2
tlc59208f_id: tlc59208f_2
- platform: tlc59208f
id: tlc_6
channel: 0
tlc59208f_id: tlc59208f_3
- platform: tlc59208f
id: tlc_7
channel: 1
tlc59208f_id: tlc59208f_3
- platform: tlc59208f
id: tlc_8
channel: 2
tlc59208f_id: tlc59208f_3
<<: !include common.yaml

View File

@ -1,50 +1,5 @@
i2c:
- id: i2c_tlc59208f
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
tlc59208f:
- address: 0x20
id: tlc59208f_1
- address: 0x22
id: tlc59208f_2
- address: 0x24
id: tlc59208f_3
output:
- platform: tlc59208f
id: tlc_0
channel: 0
tlc59208f_id: tlc59208f_1
- platform: tlc59208f
id: tlc_1
channel: 1
tlc59208f_id: tlc59208f_1
- platform: tlc59208f
id: tlc_2
channel: 2
tlc59208f_id: tlc59208f_1
- platform: tlc59208f
id: tlc_3
channel: 0
tlc59208f_id: tlc59208f_2
- platform: tlc59208f
id: tlc_4
channel: 1
tlc59208f_id: tlc59208f_2
- platform: tlc59208f
id: tlc_5
channel: 2
tlc59208f_id: tlc59208f_2
- platform: tlc59208f
id: tlc_6
channel: 0
tlc59208f_id: tlc59208f_3
- platform: tlc59208f
id: tlc_7
channel: 1
tlc59208f_id: tlc59208f_3
- platform: tlc59208f
id: tlc_8
channel: 2
tlc59208f_id: tlc59208f_3
<<: !include common.yaml

View File

@ -1,50 +1,5 @@
i2c:
- id: i2c_tlc59208f
scl: 16
sda: 17
substitutions:
scl_pin: GPIO16
sda_pin: GPIO17
tlc59208f:
- address: 0x20
id: tlc59208f_1
- address: 0x22
id: tlc59208f_2
- address: 0x24
id: tlc59208f_3
output:
- platform: tlc59208f
id: tlc_0
channel: 0
tlc59208f_id: tlc59208f_1
- platform: tlc59208f
id: tlc_1
channel: 1
tlc59208f_id: tlc59208f_1
- platform: tlc59208f
id: tlc_2
channel: 2
tlc59208f_id: tlc59208f_1
- platform: tlc59208f
id: tlc_3
channel: 0
tlc59208f_id: tlc59208f_2
- platform: tlc59208f
id: tlc_4
channel: 1
tlc59208f_id: tlc59208f_2
- platform: tlc59208f
id: tlc_5
channel: 2
tlc59208f_id: tlc59208f_2
- platform: tlc59208f
id: tlc_6
channel: 0
tlc59208f_id: tlc59208f_3
- platform: tlc59208f
id: tlc_7
channel: 1
tlc59208f_id: tlc59208f_3
- platform: tlc59208f
id: tlc_8
channel: 2
tlc59208f_id: tlc59208f_3
<<: !include common.yaml

View File

@ -1,50 +1,5 @@
i2c:
- id: i2c_tlc59208f
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
tlc59208f:
- address: 0x20
id: tlc59208f_1
- address: 0x22
id: tlc59208f_2
- address: 0x24
id: tlc59208f_3
output:
- platform: tlc59208f
id: tlc_0
channel: 0
tlc59208f_id: tlc59208f_1
- platform: tlc59208f
id: tlc_1
channel: 1
tlc59208f_id: tlc59208f_1
- platform: tlc59208f
id: tlc_2
channel: 2
tlc59208f_id: tlc59208f_1
- platform: tlc59208f
id: tlc_3
channel: 0
tlc59208f_id: tlc59208f_2
- platform: tlc59208f
id: tlc_4
channel: 1
tlc59208f_id: tlc59208f_2
- platform: tlc59208f
id: tlc_5
channel: 2
tlc59208f_id: tlc59208f_2
- platform: tlc59208f
id: tlc_6
channel: 0
tlc59208f_id: tlc59208f_3
- platform: tlc59208f
id: tlc_7
channel: 1
tlc59208f_id: tlc59208f_3
- platform: tlc59208f
id: tlc_8
channel: 2
tlc59208f_id: tlc59208f_3
<<: !include common.yaml

View File

@ -1,50 +1,5 @@
i2c:
- id: i2c_tlc59208f
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
tlc59208f:
- address: 0x20
id: tlc59208f_1
- address: 0x22
id: tlc59208f_2
- address: 0x24
id: tlc59208f_3
output:
- platform: tlc59208f
id: tlc_0
channel: 0
tlc59208f_id: tlc59208f_1
- platform: tlc59208f
id: tlc_1
channel: 1
tlc59208f_id: tlc59208f_1
- platform: tlc59208f
id: tlc_2
channel: 2
tlc59208f_id: tlc59208f_1
- platform: tlc59208f
id: tlc_3
channel: 0
tlc59208f_id: tlc59208f_2
- platform: tlc59208f
id: tlc_4
channel: 1
tlc59208f_id: tlc59208f_2
- platform: tlc59208f
id: tlc_5
channel: 2
tlc59208f_id: tlc59208f_2
- platform: tlc59208f
id: tlc_6
channel: 0
tlc59208f_id: tlc59208f_3
- platform: tlc59208f
id: tlc_7
channel: 1
tlc59208f_id: tlc59208f_3
- platform: tlc59208f
id: tlc_8
channel: 2
tlc59208f_id: tlc59208f_3
<<: !include common.yaml

View File

@ -0,0 +1,12 @@
display:
- platform: tm1621
id: tm1621_display
cs_pin: ${cs_pin}
data_pin: ${data_pin}
read_pin: ${read_pin}
write_pin: ${write_pin}
lambda: |-
it.printf(0, "%.1f", 20.0);
it.display_celsius(true);
it.printf(1, "%.1f", 20.0);
it.display_humidity(true);

View File

@ -1,12 +1,7 @@
display:
- platform: tm1621
id: tm1621_display
cs_pin: 15
data_pin: 14
read_pin: 12
write_pin: 13
lambda: |-
it.printf(0, "%.1f", 20.0);
it.display_celsius(true);
it.printf(1, "%.1f", 20.0);
it.display_humidity(true);
substitutions:
cs_pin: GPIO16
data_pin: GPIO17
read_pin: GPIO12
write_pin: GPIO13
<<: !include common.yaml

View File

@ -1,12 +1,7 @@
display:
- platform: tm1621
id: tm1621_display
cs_pin: 7
data_pin: 4
read_pin: 5
write_pin: 6
lambda: |-
it.printf(0, "%.1f", 20.0);
it.display_celsius(true);
it.printf(1, "%.1f", 20.0);
it.display_humidity(true);
substitutions:
cs_pin: GPIO6
data_pin: GPIO7
read_pin: GPIO2
write_pin: GPIO3
<<: !include common.yaml

View File

@ -1,12 +1,7 @@
display:
- platform: tm1621
id: tm1621_display
cs_pin: 7
data_pin: 4
read_pin: 5
write_pin: 6
lambda: |-
it.printf(0, "%.1f", 20.0);
it.display_celsius(true);
it.printf(1, "%.1f", 20.0);
it.display_humidity(true);
substitutions:
cs_pin: GPIO6
data_pin: GPIO7
read_pin: GPIO2
write_pin: GPIO3
<<: !include common.yaml

View File

@ -1,12 +1,7 @@
display:
- platform: tm1621
id: tm1621_display
cs_pin: 15
data_pin: 14
read_pin: 12
write_pin: 13
lambda: |-
it.printf(0, "%.1f", 20.0);
it.display_celsius(true);
it.printf(1, "%.1f", 20.0);
it.display_humidity(true);
substitutions:
cs_pin: GPIO16
data_pin: GPIO17
read_pin: GPIO12
write_pin: GPIO13
<<: !include common.yaml

View File

@ -1,12 +1,7 @@
display:
- platform: tm1621
id: tm1621_display
cs_pin: 15
data_pin: 14
read_pin: 12
write_pin: 13
lambda: |-
it.printf(0, "%.1f", 20.0);
it.display_celsius(true);
it.printf(1, "%.1f", 20.0);
it.display_humidity(true);
substitutions:
cs_pin: GPIO15
data_pin: GPIO14
read_pin: GPIO12
write_pin: GPIO13
<<: !include common.yaml

View File

@ -1,12 +1,7 @@
display:
- platform: tm1621
id: tm1621_display
cs_pin: 7
data_pin: 4
read_pin: 5
write_pin: 6
lambda: |-
it.printf(0, "%.1f", 20.0);
it.display_celsius(true);
it.printf(1, "%.1f", 20.0);
it.display_humidity(true);
substitutions:
cs_pin: GPIO6
data_pin: GPIO7
read_pin: GPIO2
write_pin: GPIO3
<<: !include common.yaml

View File

@ -0,0 +1,7 @@
display:
- platform: tm1637
clk_pin: ${clk_pin}
dio_pin: ${dio_pin}
intensity: 3
lambda: |-
it.print("1234");

View File

@ -1,7 +1,5 @@
display:
- platform: tm1637
clk_pin: 15
dio_pin: 14
intensity: 3
lambda: |-
it.print("1234");
substitutions:
clk_pin: GPIO14
dio_pin: GPIO13
<<: !include common.yaml

View File

@ -1,7 +1,5 @@
display:
- platform: tm1637
clk_pin: 5
dio_pin: 4
intensity: 3
lambda: |-
it.print("1234");
substitutions:
clk_pin: GPIO4
dio_pin: GPIO3
<<: !include common.yaml

View File

@ -1,7 +1,5 @@
display:
- platform: tm1637
clk_pin: 5
dio_pin: 4
intensity: 3
lambda: |-
it.print("1234");
substitutions:
clk_pin: GPIO4
dio_pin: GPIO3
<<: !include common.yaml

View File

@ -1,7 +1,5 @@
display:
- platform: tm1637
clk_pin: 15
dio_pin: 14
intensity: 3
lambda: |-
it.print("1234");
substitutions:
clk_pin: GPIO14
dio_pin: GPIO13
<<: !include common.yaml

View File

@ -1,7 +1,5 @@
display:
- platform: tm1637
clk_pin: 5
dio_pin: 4
intensity: 3
lambda: |-
it.print("1234");
substitutions:
clk_pin: GPIO14
dio_pin: GPIO13
<<: !include common.yaml

View File

@ -1,7 +1,5 @@
display:
- platform: tm1637
clk_pin: 5
dio_pin: 4
intensity: 3
lambda: |-
it.print("1234");
substitutions:
clk_pin: GPIO4
dio_pin: GPIO3
<<: !include common.yaml

View File

@ -0,0 +1,8 @@
i2c:
- id: i2c_tmp102
scl: ${scl_pin}
sda: ${sda_pin}
sensor:
- platform: tmp102
name: TMP102 Temperature

View File

@ -1,8 +1,5 @@
i2c:
- id: i2c_tmp102
scl: 16
sda: 17
substitutions:
scl_pin: GPIO16
sda_pin: GPIO17
sensor:
- platform: tmp102
name: TMP102 Temperature
<<: !include common.yaml

View File

@ -1,8 +1,5 @@
i2c:
- id: i2c_tmp102
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tmp102
name: TMP102 Temperature
<<: !include common.yaml

View File

@ -1,8 +1,5 @@
i2c:
- id: i2c_tmp102
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tmp102
name: TMP102 Temperature
<<: !include common.yaml

View File

@ -1,8 +1,5 @@
i2c:
- id: i2c_tmp102
scl: 16
sda: 17
substitutions:
scl_pin: GPIO16
sda_pin: GPIO17
sensor:
- platform: tmp102
name: TMP102 Temperature
<<: !include common.yaml

View File

@ -1,8 +1,5 @@
i2c:
- id: i2c_tmp102
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tmp102
name: TMP102 Temperature
<<: !include common.yaml

View File

@ -1,8 +1,5 @@
i2c:
- id: i2c_tmp102
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tmp102
name: TMP102 Temperature
<<: !include common.yaml

View File

@ -0,0 +1,16 @@
i2c:
- id: i2c_tmp1075
scl: ${scl_pin}
sda: ${sda_pin}
sensor:
- platform: tmp1075
name: Temperature TMP1075
conversion_rate: 27.5ms
alert:
limit_low: 50
limit_high: 75
fault_count: 1
polarity: active_high
function: comparator
update_interval: 10s

View File

@ -1,16 +1,5 @@
i2c:
- id: i2c_tmp1075
scl: 16
sda: 17
substitutions:
scl_pin: GPIO16
sda_pin: GPIO17
sensor:
- platform: tmp1075
name: Temperature TMP1075
conversion_rate: 27.5ms
alert:
limit_low: 50
limit_high: 75
fault_count: 1
polarity: active_high
function: comparator
update_interval: 10s
<<: !include common.yaml

View File

@ -1,16 +1,5 @@
i2c:
- id: i2c_tmp1075
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tmp1075
name: Temperature TMP1075
conversion_rate: 27.5ms
alert:
limit_low: 50
limit_high: 75
fault_count: 1
polarity: active_high
function: comparator
update_interval: 10s
<<: !include common.yaml

View File

@ -1,16 +1,5 @@
i2c:
- id: i2c_tmp1075
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tmp1075
name: Temperature TMP1075
conversion_rate: 27.5ms
alert:
limit_low: 50
limit_high: 75
fault_count: 1
polarity: active_high
function: comparator
update_interval: 10s
<<: !include common.yaml

View File

@ -1,16 +1,5 @@
i2c:
- id: i2c_tmp1075
scl: 16
sda: 17
substitutions:
scl_pin: GPIO16
sda_pin: GPIO17
sensor:
- platform: tmp1075
name: Temperature TMP1075
conversion_rate: 27.5ms
alert:
limit_low: 50
limit_high: 75
fault_count: 1
polarity: active_high
function: comparator
update_interval: 10s
<<: !include common.yaml

View File

@ -1,16 +1,5 @@
i2c:
- id: i2c_tmp1075
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tmp1075
name: Temperature TMP1075
conversion_rate: 27.5ms
alert:
limit_low: 50
limit_high: 75
fault_count: 1
polarity: active_high
function: comparator
update_interval: 10s
<<: !include common.yaml

View File

@ -1,16 +1,5 @@
i2c:
- id: i2c_tmp1075
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tmp1075
name: Temperature TMP1075
conversion_rate: 27.5ms
alert:
limit_low: 50
limit_high: 75
fault_count: 1
polarity: active_high
function: comparator
update_interval: 10s
<<: !include common.yaml

View File

@ -0,0 +1,9 @@
i2c:
- id: i2c_tmp117
scl: ${scl_pin}
sda: ${sda_pin}
sensor:
- platform: tmp117
name: TMP117 Temperature
update_interval: 5s

View File

@ -1,9 +1,5 @@
i2c:
- id: i2c_tmp117
scl: 16
sda: 17
substitutions:
scl_pin: GPIO16
sda_pin: GPIO17
sensor:
- platform: tmp117
name: TMP117 Temperature
update_interval: 5s
<<: !include common.yaml

View File

@ -1,9 +1,5 @@
i2c:
- id: i2c_tmp117
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tmp117
name: TMP117 Temperature
update_interval: 5s
<<: !include common.yaml

View File

@ -1,9 +1,5 @@
i2c:
- id: i2c_tmp117
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tmp117
name: TMP117 Temperature
update_interval: 5s
<<: !include common.yaml

View File

@ -1,9 +1,5 @@
i2c:
- id: i2c_tmp117
scl: 16
sda: 17
substitutions:
scl_pin: GPIO16
sda_pin: GPIO17
sensor:
- platform: tmp117
name: TMP117 Temperature
update_interval: 5s
<<: !include common.yaml

View File

@ -1,9 +1,5 @@
i2c:
- id: i2c_tmp117
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tmp117
name: TMP117 Temperature
update_interval: 5s
<<: !include common.yaml

View File

@ -1,9 +1,5 @@
i2c:
- id: i2c_tmp117
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tmp117
name: TMP117 Temperature
update_interval: 5s
<<: !include common.yaml

View File

@ -0,0 +1,9 @@
i2c:
- id: i2c_tof10120
scl: ${scl_pin}
sda: ${sda_pin}
sensor:
- platform: tof10120
name: Distance sensor
update_interval: 5s

View File

@ -1,9 +1,5 @@
i2c:
- id: i2c_tof10120
scl: 16
sda: 17
substitutions:
scl_pin: GPIO16
sda_pin: GPIO17
sensor:
- platform: tof10120
name: Distance sensor
update_interval: 5s
<<: !include common.yaml

View File

@ -1,9 +1,5 @@
i2c:
- id: i2c_tof10120
scl: 5
sda: 4
substitutions:
scl_pin: GPIO5
sda_pin: GPIO4
sensor:
- platform: tof10120
name: Distance sensor
update_interval: 5s
<<: !include common.yaml

Some files were not shown because too many files have changed in this diff Show More