mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 05:24:53 +01:00
Add some components to the new testing framework (N) (#6210)
This commit is contained in:
parent
ca6020e11a
commit
9779989f67
27 changed files with 724 additions and 0 deletions
19
tests/components/neopixelbus/test.esp32-c3.yaml
Normal file
19
tests/components/neopixelbus/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
light:
|
||||
- platform: neopixelbus
|
||||
id: addr3
|
||||
name: Neopixelbus Light
|
||||
gamma_correct: 2.8
|
||||
color_correct: [0.0, 0.0, 0.0, 0.0]
|
||||
default_transition_length: 10s
|
||||
effects:
|
||||
- addressable_flicker:
|
||||
name: Flicker Effect With Custom Values
|
||||
update_interval: 16ms
|
||||
intensity: 5%
|
||||
type: GRBW
|
||||
variant: SK6812
|
||||
method:
|
||||
type: esp32_rmt
|
||||
channel: 0
|
||||
num_leds: 5
|
||||
pin: 4
|
17
tests/components/neopixelbus/test.esp32.yaml
Normal file
17
tests/components/neopixelbus/test.esp32.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
light:
|
||||
- platform: neopixelbus
|
||||
id: addr3
|
||||
name: Neopixelbus Light
|
||||
gamma_correct: 2.8
|
||||
color_correct: [0.0, 0.0, 0.0, 0.0]
|
||||
default_transition_length: 10s
|
||||
effects:
|
||||
- addressable_flicker:
|
||||
name: Flicker Effect With Custom Values
|
||||
update_interval: 16ms
|
||||
intensity: 5%
|
||||
type: GRBW
|
||||
variant: SK6812
|
||||
method: ESP32_I2S_0
|
||||
num_leds: 5
|
||||
pin: 4
|
17
tests/components/neopixelbus/test.esp8266.yaml
Normal file
17
tests/components/neopixelbus/test.esp8266.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
light:
|
||||
- platform: neopixelbus
|
||||
id: addr3
|
||||
name: Neopixelbus Light
|
||||
gamma_correct: 2.8
|
||||
color_correct: [0.0, 0.0, 0.0, 0.0]
|
||||
default_transition_length: 10s
|
||||
effects:
|
||||
- addressable_flicker:
|
||||
name: Flicker Effect With Custom Values
|
||||
update_interval: 16ms
|
||||
intensity: 5%
|
||||
type: GRBW
|
||||
variant: SK6812
|
||||
method: esp8266_uart
|
||||
num_leds: 5
|
||||
pin: 2
|
6
tests/components/network/test.esp32-c3-idf.yaml
Normal file
6
tests/components/network/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
network:
|
||||
enable_ipv6: true
|
6
tests/components/network/test.esp32-c3.yaml
Normal file
6
tests/components/network/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
network:
|
||||
enable_ipv6: true
|
6
tests/components/network/test.esp32-idf.yaml
Normal file
6
tests/components/network/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
network:
|
||||
enable_ipv6: true
|
6
tests/components/network/test.esp32.yaml
Normal file
6
tests/components/network/test.esp32.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
network:
|
||||
enable_ipv6: true
|
6
tests/components/network/test.esp8266.yaml
Normal file
6
tests/components/network/test.esp8266.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
network:
|
||||
enable_ipv6: true
|
6
tests/components/network/test.rp2040.yaml
Normal file
6
tests/components/network/test.rp2040.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
network:
|
||||
enable_ipv6: true
|
60
tests/components/nextion/test.esp32-c3-idf.yaml
Normal file
60
tests/components/nextion/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,60 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
uart:
|
||||
- id: uart_nextion
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 115200
|
||||
|
||||
binary_sensor:
|
||||
- platform: nextion
|
||||
page_id: 0
|
||||
component_id: 2
|
||||
name: Nextion Touch Component
|
||||
- platform: nextion
|
||||
id: r0_sensor
|
||||
name: R0 Sensor
|
||||
component_name: page0.r0
|
||||
|
||||
sensor:
|
||||
- platform: nextion
|
||||
id: testnumber
|
||||
name: testnumber
|
||||
variable_name: testnumber
|
||||
- platform: nextion
|
||||
id: testwave
|
||||
name: testwave
|
||||
component_id: 2
|
||||
wave_channel_id: 1
|
||||
|
||||
switch:
|
||||
- platform: nextion
|
||||
id: r0
|
||||
name: R0 Switch
|
||||
component_name: page0.r0
|
||||
|
||||
text_sensor:
|
||||
- platform: nextion
|
||||
name: text0
|
||||
id: text0
|
||||
update_interval: 4s
|
||||
component_name: text0
|
||||
|
||||
display:
|
||||
- platform: nextion
|
||||
tft_url: http://esphome.io/default35.tft
|
||||
update_interval: 5s
|
||||
on_sleep:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display went to sleep");'
|
||||
on_wake:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display woke up");'
|
||||
on_setup:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display setup completed");'
|
||||
on_page:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display shows new page %u", x);'
|
60
tests/components/nextion/test.esp32-c3.yaml
Normal file
60
tests/components/nextion/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,60 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
uart:
|
||||
- id: uart_nextion
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 115200
|
||||
|
||||
binary_sensor:
|
||||
- platform: nextion
|
||||
page_id: 0
|
||||
component_id: 2
|
||||
name: Nextion Touch Component
|
||||
- platform: nextion
|
||||
id: r0_sensor
|
||||
name: R0 Sensor
|
||||
component_name: page0.r0
|
||||
|
||||
sensor:
|
||||
- platform: nextion
|
||||
id: testnumber
|
||||
name: testnumber
|
||||
variable_name: testnumber
|
||||
- platform: nextion
|
||||
id: testwave
|
||||
name: testwave
|
||||
component_id: 2
|
||||
wave_channel_id: 1
|
||||
|
||||
switch:
|
||||
- platform: nextion
|
||||
id: r0
|
||||
name: R0 Switch
|
||||
component_name: page0.r0
|
||||
|
||||
text_sensor:
|
||||
- platform: nextion
|
||||
name: text0
|
||||
id: text0
|
||||
update_interval: 4s
|
||||
component_name: text0
|
||||
|
||||
display:
|
||||
- platform: nextion
|
||||
tft_url: http://esphome.io/default35.tft
|
||||
update_interval: 5s
|
||||
on_sleep:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display went to sleep");'
|
||||
on_wake:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display woke up");'
|
||||
on_setup:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display setup completed");'
|
||||
on_page:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display shows new page %u", x);'
|
60
tests/components/nextion/test.esp32-idf.yaml
Normal file
60
tests/components/nextion/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,60 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
uart:
|
||||
- id: uart_nextion
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 115200
|
||||
|
||||
binary_sensor:
|
||||
- platform: nextion
|
||||
page_id: 0
|
||||
component_id: 2
|
||||
name: Nextion Touch Component
|
||||
- platform: nextion
|
||||
id: r0_sensor
|
||||
name: R0 Sensor
|
||||
component_name: page0.r0
|
||||
|
||||
sensor:
|
||||
- platform: nextion
|
||||
id: testnumber
|
||||
name: testnumber
|
||||
variable_name: testnumber
|
||||
- platform: nextion
|
||||
id: testwave
|
||||
name: testwave
|
||||
component_id: 2
|
||||
wave_channel_id: 1
|
||||
|
||||
switch:
|
||||
- platform: nextion
|
||||
id: r0
|
||||
name: R0 Switch
|
||||
component_name: page0.r0
|
||||
|
||||
text_sensor:
|
||||
- platform: nextion
|
||||
name: text0
|
||||
id: text0
|
||||
update_interval: 4s
|
||||
component_name: text0
|
||||
|
||||
display:
|
||||
- platform: nextion
|
||||
tft_url: http://esphome.io/default35.tft
|
||||
update_interval: 5s
|
||||
on_sleep:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display went to sleep");'
|
||||
on_wake:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display woke up");'
|
||||
on_setup:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display setup completed");'
|
||||
on_page:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display shows new page %u", x);'
|
60
tests/components/nextion/test.esp32.yaml
Normal file
60
tests/components/nextion/test.esp32.yaml
Normal file
|
@ -0,0 +1,60 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
uart:
|
||||
- id: uart_nextion
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 115200
|
||||
|
||||
binary_sensor:
|
||||
- platform: nextion
|
||||
page_id: 0
|
||||
component_id: 2
|
||||
name: Nextion Touch Component
|
||||
- platform: nextion
|
||||
id: r0_sensor
|
||||
name: R0 Sensor
|
||||
component_name: page0.r0
|
||||
|
||||
sensor:
|
||||
- platform: nextion
|
||||
id: testnumber
|
||||
name: testnumber
|
||||
variable_name: testnumber
|
||||
- platform: nextion
|
||||
id: testwave
|
||||
name: testwave
|
||||
component_id: 2
|
||||
wave_channel_id: 1
|
||||
|
||||
switch:
|
||||
- platform: nextion
|
||||
id: r0
|
||||
name: R0 Switch
|
||||
component_name: page0.r0
|
||||
|
||||
text_sensor:
|
||||
- platform: nextion
|
||||
name: text0
|
||||
id: text0
|
||||
update_interval: 4s
|
||||
component_name: text0
|
||||
|
||||
display:
|
||||
- platform: nextion
|
||||
tft_url: http://esphome.io/default35.tft
|
||||
update_interval: 5s
|
||||
on_sleep:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display went to sleep");'
|
||||
on_wake:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display woke up");'
|
||||
on_setup:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display setup completed");'
|
||||
on_page:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display shows new page %u", x);'
|
60
tests/components/nextion/test.esp8266.yaml
Normal file
60
tests/components/nextion/test.esp8266.yaml
Normal file
|
@ -0,0 +1,60 @@
|
|||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
uart:
|
||||
- id: uart_nextion
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 115200
|
||||
|
||||
binary_sensor:
|
||||
- platform: nextion
|
||||
page_id: 0
|
||||
component_id: 2
|
||||
name: Nextion Touch Component
|
||||
- platform: nextion
|
||||
id: r0_sensor
|
||||
name: R0 Sensor
|
||||
component_name: page0.r0
|
||||
|
||||
sensor:
|
||||
- platform: nextion
|
||||
id: testnumber
|
||||
name: testnumber
|
||||
variable_name: testnumber
|
||||
- platform: nextion
|
||||
id: testwave
|
||||
name: testwave
|
||||
component_id: 2
|
||||
wave_channel_id: 1
|
||||
|
||||
switch:
|
||||
- platform: nextion
|
||||
id: r0
|
||||
name: R0 Switch
|
||||
component_name: page0.r0
|
||||
|
||||
text_sensor:
|
||||
- platform: nextion
|
||||
name: text0
|
||||
id: text0
|
||||
update_interval: 4s
|
||||
component_name: text0
|
||||
|
||||
display:
|
||||
- platform: nextion
|
||||
tft_url: http://esphome.io/default35.tft
|
||||
update_interval: 5s
|
||||
on_sleep:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display went to sleep");'
|
||||
on_wake:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display woke up");'
|
||||
on_setup:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display setup completed");'
|
||||
on_page:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display shows new page %u", x);'
|
55
tests/components/nextion/test.rp2040.yaml
Normal file
55
tests/components/nextion/test.rp2040.yaml
Normal file
|
@ -0,0 +1,55 @@
|
|||
uart:
|
||||
- id: uart_nextion
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 115200
|
||||
|
||||
binary_sensor:
|
||||
- platform: nextion
|
||||
page_id: 0
|
||||
component_id: 2
|
||||
name: Nextion Touch Component
|
||||
- platform: nextion
|
||||
id: r0_sensor
|
||||
name: R0 Sensor
|
||||
component_name: page0.r0
|
||||
|
||||
sensor:
|
||||
- platform: nextion
|
||||
id: testnumber
|
||||
name: testnumber
|
||||
variable_name: testnumber
|
||||
- platform: nextion
|
||||
id: testwave
|
||||
name: testwave
|
||||
component_id: 2
|
||||
wave_channel_id: 1
|
||||
|
||||
switch:
|
||||
- platform: nextion
|
||||
id: r0
|
||||
name: R0 Switch
|
||||
component_name: page0.r0
|
||||
|
||||
text_sensor:
|
||||
- platform: nextion
|
||||
name: text0
|
||||
id: text0
|
||||
update_interval: 4s
|
||||
component_name: text0
|
||||
|
||||
display:
|
||||
- platform: nextion
|
||||
update_interval: 5s
|
||||
on_sleep:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display went to sleep");'
|
||||
on_wake:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display woke up");'
|
||||
on_setup:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display setup completed");'
|
||||
on_page:
|
||||
then:
|
||||
lambda: 'ESP_LOGD("display","Display shows new page %u", x);'
|
20
tests/components/noblex/test.esp32-c3-idf.yaml
Normal file
20
tests/components/noblex/test.esp32-c3-idf.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
remote_receiver:
|
||||
id: rcvr
|
||||
pin: 4
|
||||
dump: all
|
||||
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: noblex_ac_sensor
|
||||
lambda: "return 21;"
|
||||
|
||||
climate:
|
||||
- platform: noblex
|
||||
name: AC Living
|
||||
id: noblex_ac
|
||||
sensor: noblex_ac_sensor
|
||||
receiver_id: rcvr
|
20
tests/components/noblex/test.esp32-c3.yaml
Normal file
20
tests/components/noblex/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
remote_receiver:
|
||||
id: rcvr
|
||||
pin: 4
|
||||
dump: all
|
||||
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: noblex_ac_sensor
|
||||
lambda: "return 21;"
|
||||
|
||||
climate:
|
||||
- platform: noblex
|
||||
name: AC Living
|
||||
id: noblex_ac
|
||||
sensor: noblex_ac_sensor
|
||||
receiver_id: rcvr
|
20
tests/components/noblex/test.esp32-idf.yaml
Normal file
20
tests/components/noblex/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
remote_receiver:
|
||||
id: rcvr
|
||||
pin: 4
|
||||
dump: all
|
||||
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: noblex_ac_sensor
|
||||
lambda: "return 21;"
|
||||
|
||||
climate:
|
||||
- platform: noblex
|
||||
name: AC Living
|
||||
id: noblex_ac
|
||||
sensor: noblex_ac_sensor
|
||||
receiver_id: rcvr
|
20
tests/components/noblex/test.esp32.yaml
Normal file
20
tests/components/noblex/test.esp32.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
remote_receiver:
|
||||
id: rcvr
|
||||
pin: 4
|
||||
dump: all
|
||||
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: noblex_ac_sensor
|
||||
lambda: "return 21;"
|
||||
|
||||
climate:
|
||||
- platform: noblex
|
||||
name: AC Living
|
||||
id: noblex_ac
|
||||
sensor: noblex_ac_sensor
|
||||
receiver_id: rcvr
|
20
tests/components/noblex/test.esp8266.yaml
Normal file
20
tests/components/noblex/test.esp8266.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
remote_receiver:
|
||||
id: rcvr
|
||||
pin: 4
|
||||
dump: all
|
||||
|
||||
remote_transmitter:
|
||||
pin: 2
|
||||
carrier_duty_percent: 50%
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: noblex_ac_sensor
|
||||
lambda: "return 21;"
|
||||
|
||||
climate:
|
||||
- platform: noblex
|
||||
name: AC Living
|
||||
id: noblex_ac
|
||||
sensor: noblex_ac_sensor
|
||||
receiver_id: rcvr
|
26
tests/components/ntc/test.esp32-c3.yaml
Normal file
26
tests/components/ntc/test.esp32-c3.yaml
Normal file
|
@ -0,0 +1,26 @@
|
|||
sensor:
|
||||
- platform: adc
|
||||
id: my_sensor
|
||||
pin: 4
|
||||
attenuation: 11db
|
||||
- platform: resistance
|
||||
sensor: my_sensor
|
||||
configuration: DOWNSTREAM
|
||||
resistor: 10kΩ
|
||||
reference_voltage: 3.3V
|
||||
name: Resistance
|
||||
id: resist
|
||||
- platform: ntc
|
||||
sensor: resist
|
||||
name: NTC Sensor
|
||||
calibration:
|
||||
b_constant: 3950
|
||||
reference_resistance: 10k
|
||||
reference_temperature: 25°C
|
||||
- platform: ntc
|
||||
sensor: resist
|
||||
name: NTC Sensor2
|
||||
calibration:
|
||||
- 10.0kOhm -> 25°C
|
||||
- 27.219kOhm -> 0°C
|
||||
- 14.674kOhm -> 15°C
|
26
tests/components/ntc/test.esp32-idf.yaml
Normal file
26
tests/components/ntc/test.esp32-idf.yaml
Normal file
|
@ -0,0 +1,26 @@
|
|||
sensor:
|
||||
- platform: adc
|
||||
id: my_sensor
|
||||
pin: 32
|
||||
attenuation: 11db
|
||||
- platform: resistance
|
||||
sensor: my_sensor
|
||||
configuration: DOWNSTREAM
|
||||
resistor: 10kΩ
|
||||
reference_voltage: 3.3V
|
||||
name: Resistance
|
||||
id: resist
|
||||
- platform: ntc
|
||||
sensor: resist
|
||||
name: NTC Sensor
|
||||
calibration:
|
||||
b_constant: 3950
|
||||
reference_resistance: 10k
|
||||
reference_temperature: 25°C
|
||||
- platform: ntc
|
||||
sensor: resist
|
||||
name: NTC Sensor2
|
||||
calibration:
|
||||
- 10.0kOhm -> 25°C
|
||||
- 27.219kOhm -> 0°C
|
||||
- 14.674kOhm -> 15°C
|
26
tests/components/ntc/test.esp32-s2.yaml
Normal file
26
tests/components/ntc/test.esp32-s2.yaml
Normal file
|
@ -0,0 +1,26 @@
|
|||
sensor:
|
||||
- platform: adc
|
||||
id: my_sensor
|
||||
pin: 4
|
||||
attenuation: 11db
|
||||
- platform: resistance
|
||||
sensor: my_sensor
|
||||
configuration: DOWNSTREAM
|
||||
resistor: 10kΩ
|
||||
reference_voltage: 3.3V
|
||||
name: Resistance
|
||||
id: resist
|
||||
- platform: ntc
|
||||
sensor: resist
|
||||
name: NTC Sensor
|
||||
calibration:
|
||||
b_constant: 3950
|
||||
reference_resistance: 10k
|
||||
reference_temperature: 25°C
|
||||
- platform: ntc
|
||||
sensor: resist
|
||||
name: NTC Sensor2
|
||||
calibration:
|
||||
- 10.0kOhm -> 25°C
|
||||
- 27.219kOhm -> 0°C
|
||||
- 14.674kOhm -> 15°C
|
26
tests/components/ntc/test.esp32-s3.yaml
Normal file
26
tests/components/ntc/test.esp32-s3.yaml
Normal file
|
@ -0,0 +1,26 @@
|
|||
sensor:
|
||||
- platform: adc
|
||||
id: my_sensor
|
||||
pin: 4
|
||||
attenuation: 11db
|
||||
- platform: resistance
|
||||
sensor: my_sensor
|
||||
configuration: DOWNSTREAM
|
||||
resistor: 10kΩ
|
||||
reference_voltage: 3.3V
|
||||
name: Resistance
|
||||
id: resist
|
||||
- platform: ntc
|
||||
sensor: resist
|
||||
name: NTC Sensor
|
||||
calibration:
|
||||
b_constant: 3950
|
||||
reference_resistance: 10k
|
||||
reference_temperature: 25°C
|
||||
- platform: ntc
|
||||
sensor: resist
|
||||
name: NTC Sensor2
|
||||
calibration:
|
||||
- 10.0kOhm -> 25°C
|
||||
- 27.219kOhm -> 0°C
|
||||
- 14.674kOhm -> 15°C
|
26
tests/components/ntc/test.esp32.yaml
Normal file
26
tests/components/ntc/test.esp32.yaml
Normal file
|
@ -0,0 +1,26 @@
|
|||
sensor:
|
||||
- platform: adc
|
||||
id: my_sensor
|
||||
pin: 32
|
||||
attenuation: 11db
|
||||
- platform: resistance
|
||||
sensor: my_sensor
|
||||
configuration: DOWNSTREAM
|
||||
resistor: 10kΩ
|
||||
reference_voltage: 3.3V
|
||||
name: Resistance
|
||||
id: resist
|
||||
- platform: ntc
|
||||
sensor: resist
|
||||
name: NTC Sensor
|
||||
calibration:
|
||||
b_constant: 3950
|
||||
reference_resistance: 10k
|
||||
reference_temperature: 25°C
|
||||
- platform: ntc
|
||||
sensor: resist
|
||||
name: NTC Sensor2
|
||||
calibration:
|
||||
- 10.0kOhm -> 25°C
|
||||
- 27.219kOhm -> 0°C
|
||||
- 14.674kOhm -> 15°C
|
25
tests/components/ntc/test.esp8266.yaml
Normal file
25
tests/components/ntc/test.esp8266.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
sensor:
|
||||
- platform: adc
|
||||
id: my_sensor
|
||||
pin: A0
|
||||
- platform: resistance
|
||||
sensor: my_sensor
|
||||
configuration: DOWNSTREAM
|
||||
resistor: 10kΩ
|
||||
reference_voltage: 3.3V
|
||||
name: Resistance
|
||||
id: resist
|
||||
- platform: ntc
|
||||
sensor: resist
|
||||
name: NTC Sensor
|
||||
calibration:
|
||||
b_constant: 3950
|
||||
reference_resistance: 10k
|
||||
reference_temperature: 25°C
|
||||
- platform: ntc
|
||||
sensor: resist
|
||||
name: NTC Sensor2
|
||||
calibration:
|
||||
- 10.0kOhm -> 25°C
|
||||
- 27.219kOhm -> 0°C
|
||||
- 14.674kOhm -> 15°C
|
25
tests/components/ntc/test.rp2040.yaml
Normal file
25
tests/components/ntc/test.rp2040.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
sensor:
|
||||
- platform: adc
|
||||
id: my_sensor
|
||||
pin: 26
|
||||
- platform: resistance
|
||||
sensor: my_sensor
|
||||
configuration: DOWNSTREAM
|
||||
resistor: 10kΩ
|
||||
reference_voltage: 3.3V
|
||||
name: Resistance
|
||||
id: resist
|
||||
- platform: ntc
|
||||
sensor: resist
|
||||
name: NTC Sensor
|
||||
calibration:
|
||||
b_constant: 3950
|
||||
reference_resistance: 10k
|
||||
reference_temperature: 25°C
|
||||
- platform: ntc
|
||||
sensor: resist
|
||||
name: NTC Sensor2
|
||||
calibration:
|
||||
- 10.0kOhm -> 25°C
|
||||
- 27.219kOhm -> 0°C
|
||||
- 14.674kOhm -> 15°C
|
Loading…
Reference in a new issue