1
0
mirror of https://github.com/esphome/esphome.git synced 2025-04-15 07:10:33 +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: substitutions:
- id: uart_t6615 tx_pin: GPIO17
tx_pin: 17 rx_pin: GPIO16
rx_pin: 16
baud_rate: 19200
sensor: <<: !include common.yaml
- platform: t6615
co2:
name: CO2 Sensor

View File

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

View File

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

View File

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

View File

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

View File

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

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: substitutions:
- id: i2c_tc74 scl_pin: GPIO16
scl: 16 sda_pin: GPIO17
sda: 17
sensor: <<: !include common.yaml
- platform: tc74
name: TC74 Temperature

View File

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

View File

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

View File

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

View File

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

View File

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

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: substitutions:
- id: i2c_tca9548a scl_pin: GPIO16
scl: 16 sda_pin: GPIO17
sda: 17
tca9548a: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tca9548a scl_pin: GPIO5
scl: 5 sda_pin: GPIO4
sda: 4
tca9548a: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tca9548a scl_pin: GPIO5
scl: 5 sda_pin: GPIO4
sda: 4
tca9548a: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tca9548a scl_pin: GPIO16
scl: 16 sda_pin: GPIO17
sda: 17
tca9548a: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tca9548a scl_pin: GPIO5
scl: 5 sda_pin: GPIO4
sda: 4
tca9548a: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tca9548a scl_pin: GPIO5
scl: 5 sda_pin: GPIO4
sda: 4
tca9548a: <<: !include common.yaml
- 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

@ -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: substitutions:
- id: i2c_tca9555 scl_pin: GPIO16
scl: 16 sda_pin: GPIO17
sda: 17
tca9555: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tca9555 scl_pin: GPIO5
scl: 5 sda_pin: GPIO4
sda: 4
tca9555: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tca9555 scl_pin: GPIO5
scl: 5 sda_pin: GPIO4
sda: 4
tca9555: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tca9555 scl_pin: GPIO16
scl: 16 sda_pin: GPIO17
sda: 17
tca9555: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tca9555 scl_pin: GPIO5
scl: 5 sda_pin: GPIO4
sda: 4
tca9555: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tca9555 scl_pin: GPIO5
scl: 5 sda_pin: GPIO4
sda: 4
tca9555: <<: !include common.yaml
- 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

@ -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: substitutions:
pin: 2 pin: GPIO2
carrier_duty_percent: 50%
sensor: <<: !include common.yaml
- 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: substitutions:
pin: 2 pin: GPIO2
carrier_duty_percent: 50%
sensor: <<: !include common.yaml
- 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: substitutions:
pin: 2 pin: GPIO2
carrier_duty_percent: 50%
sensor: <<: !include common.yaml
- 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: substitutions:
pin: 2 pin: GPIO2
carrier_duty_percent: 50%
sensor: <<: !include common.yaml
- 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: substitutions:
pin: 5 pin: GPIO5
carrier_duty_percent: 50%
sensor: <<: !include common.yaml
- 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

@ -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: substitutions:
- id: i2c_tcs34725 scl_pin: GPIO16
scl: 16 sda_pin: GPIO17
sda: 17
sensor: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tcs34725 scl_pin: GPIO5
scl: 5 sda_pin: GPIO4
sda: 4
sensor: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tcs34725 scl_pin: GPIO5
scl: 5 sda_pin: GPIO4
sda: 4
sensor: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tcs34725 scl_pin: GPIO16
scl: 16 sda_pin: GPIO17
sda: 17
sensor: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tcs34725 scl_pin: GPIO5
scl: 5 sda_pin: GPIO4
sda: 4
sensor: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tcs34725 scl_pin: GPIO5
scl: 5 sda_pin: GPIO4
sda: 4
sensor: <<: !include common.yaml
- 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

@ -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: substitutions:
- id: i2c_tee501 scl_pin: GPIO16
scl: 16 sda_pin: GPIO17
sda: 17
sensor: <<: !include common.yaml
- platform: tee501
name: TEE501 Temperature
address: 0x48

View File

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

View File

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

View File

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

View File

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

View File

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

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: substitutions:
- id: uart_teleinfo tx_pin: GPIO17
tx_pin: 17 rx_pin: GPIO16
rx_pin: 16
baud_rate: 1200
parity: EVEN
button: <<: !include common.yaml
- 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: substitutions:
- id: uart_teleinfo tx_pin: GPIO4
tx_pin: 4 rx_pin: GPIO5
rx_pin: 5
baud_rate: 1200
parity: EVEN
button: <<: !include common.yaml
- 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: substitutions:
- id: uart_teleinfo tx_pin: GPIO4
tx_pin: 4 rx_pin: GPIO5
rx_pin: 5
baud_rate: 1200
parity: EVEN
button: <<: !include common.yaml
- 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: substitutions:
- id: uart_teleinfo tx_pin: GPIO17
tx_pin: 17 rx_pin: GPIO16
rx_pin: 16
baud_rate: 1200
parity: EVEN
button: <<: !include common.yaml
- 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: substitutions:
- id: uart_teleinfo tx_pin: GPIO4
tx_pin: 4 rx_pin: GPIO5
rx_pin: 5
baud_rate: 1200
parity: EVEN
button: <<: !include common.yaml
- 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: substitutions:
- id: uart_teleinfo tx_pin: GPIO4
tx_pin: 4 rx_pin: GPIO5
rx_pin: 5
baud_rate: 1200
parity: EVEN
button: <<: !include common.yaml
- 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

@ -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: substitutions:
- id: i2c_tlc59208f scl_pin: GPIO16
scl: 16 sda_pin: GPIO17
sda: 17
tlc59208f: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tlc59208f scl_pin: GPIO5
scl: 5 sda_pin: GPIO4
sda: 4
tlc59208f: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tlc59208f scl_pin: GPIO5
scl: 5 sda_pin: GPIO4
sda: 4
tlc59208f: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tlc59208f scl_pin: GPIO16
scl: 16 sda_pin: GPIO17
sda: 17
tlc59208f: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tlc59208f scl_pin: GPIO5
scl: 5 sda_pin: GPIO4
sda: 4
tlc59208f: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tlc59208f scl_pin: GPIO5
scl: 5 sda_pin: GPIO4
sda: 4
tlc59208f: <<: !include common.yaml
- 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

@ -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: substitutions:
- platform: tm1621 cs_pin: GPIO16
id: tm1621_display data_pin: GPIO17
cs_pin: 15 read_pin: GPIO12
data_pin: 14 write_pin: GPIO13
read_pin: 12
write_pin: 13 <<: !include common.yaml
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: substitutions:
- platform: tm1621 cs_pin: GPIO6
id: tm1621_display data_pin: GPIO7
cs_pin: 7 read_pin: GPIO2
data_pin: 4 write_pin: GPIO3
read_pin: 5
write_pin: 6 <<: !include common.yaml
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: substitutions:
- platform: tm1621 cs_pin: GPIO6
id: tm1621_display data_pin: GPIO7
cs_pin: 7 read_pin: GPIO2
data_pin: 4 write_pin: GPIO3
read_pin: 5
write_pin: 6 <<: !include common.yaml
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: substitutions:
- platform: tm1621 cs_pin: GPIO16
id: tm1621_display data_pin: GPIO17
cs_pin: 15 read_pin: GPIO12
data_pin: 14 write_pin: GPIO13
read_pin: 12
write_pin: 13 <<: !include common.yaml
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: substitutions:
- platform: tm1621 cs_pin: GPIO15
id: tm1621_display data_pin: GPIO14
cs_pin: 15 read_pin: GPIO12
data_pin: 14 write_pin: GPIO13
read_pin: 12
write_pin: 13 <<: !include common.yaml
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: substitutions:
- platform: tm1621 cs_pin: GPIO6
id: tm1621_display data_pin: GPIO7
cs_pin: 7 read_pin: GPIO2
data_pin: 4 write_pin: GPIO3
read_pin: 5
write_pin: 6 <<: !include common.yaml
lambda: |-
it.printf(0, "%.1f", 20.0);
it.display_celsius(true);
it.printf(1, "%.1f", 20.0);
it.display_humidity(true);

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: substitutions:
- platform: tm1637 clk_pin: GPIO14
clk_pin: 15 dio_pin: GPIO13
dio_pin: 14
intensity: 3 <<: !include common.yaml
lambda: |-
it.print("1234");

View File

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

View File

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

View File

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

View File

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

View File

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

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: substitutions:
- id: i2c_tmp102 scl_pin: GPIO16
scl: 16 sda_pin: GPIO17
sda: 17
sensor: <<: !include common.yaml
- platform: tmp102
name: TMP102 Temperature

View File

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

View File

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

View File

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

View File

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

View File

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

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: substitutions:
- id: i2c_tmp1075 scl_pin: GPIO16
scl: 16 sda_pin: GPIO17
sda: 17
sensor: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tmp1075 scl_pin: GPIO5
scl: 5 sda_pin: GPIO4
sda: 4
sensor: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tmp1075 scl_pin: GPIO5
scl: 5 sda_pin: GPIO4
sda: 4
sensor: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tmp1075 scl_pin: GPIO16
scl: 16 sda_pin: GPIO17
sda: 17
sensor: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tmp1075 scl_pin: GPIO5
scl: 5 sda_pin: GPIO4
sda: 4
sensor: <<: !include common.yaml
- 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: substitutions:
- id: i2c_tmp1075 scl_pin: GPIO5
scl: 5 sda_pin: GPIO4
sda: 4
sensor: <<: !include common.yaml
- 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

@ -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: substitutions:
- id: i2c_tmp117 scl_pin: GPIO16
scl: 16 sda_pin: GPIO17
sda: 17
sensor: <<: !include common.yaml
- platform: tmp117
name: TMP117 Temperature
update_interval: 5s

View File

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

View File

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

View File

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

View File

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

View File

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

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: substitutions:
- id: i2c_tof10120 scl_pin: GPIO16
scl: 16 sda_pin: GPIO17
sda: 17
sensor: <<: !include common.yaml
- platform: tof10120
name: Distance sensor
update_interval: 5s

View File

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

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