mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 10:52:19 +01:00
Add some components to the new testing framework (H) (#6179)
* Add some components to the new testing framework (H) * Remove C3 * Fix indentation --------- Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
33
tests/components/hbridge/test.esp32-c3-idf.yaml
Normal file
33
tests/components/hbridge/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
pin: 4
|
||||
id: gpio_output1
|
||||
- platform: ledc
|
||||
pin: 5
|
||||
id: gpio_output2
|
||||
- platform: ledc
|
||||
pin: 6
|
||||
id: gpio_output3
|
||||
- platform: ledc
|
||||
pin: 7
|
||||
id: gpio_output4
|
||||
|
||||
light:
|
||||
- platform: hbridge
|
||||
name: Icicle Lights
|
||||
pin_a: gpio_output3
|
||||
pin_b: gpio_output4
|
||||
|
||||
fan:
|
||||
- platform: hbridge
|
||||
id: fan_hbridge
|
||||
speed_count: 4
|
||||
name: H-bridge Fan with Presets
|
||||
pin_a: gpio_output1
|
||||
pin_b: gpio_output2
|
||||
preset_modes:
|
||||
- Preset 1
|
||||
- Preset 2
|
||||
on_preset_set:
|
||||
then:
|
||||
- logger.log: Preset mode was changed!
|
33
tests/components/hbridge/test.esp32-c3.yaml
Normal file
33
tests/components/hbridge/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
pin: 4
|
||||
id: gpio_output1
|
||||
- platform: ledc
|
||||
pin: 5
|
||||
id: gpio_output2
|
||||
- platform: ledc
|
||||
pin: 6
|
||||
id: gpio_output3
|
||||
- platform: ledc
|
||||
pin: 7
|
||||
id: gpio_output4
|
||||
|
||||
light:
|
||||
- platform: hbridge
|
||||
name: Icicle Lights
|
||||
pin_a: gpio_output3
|
||||
pin_b: gpio_output4
|
||||
|
||||
fan:
|
||||
- platform: hbridge
|
||||
id: fan_hbridge
|
||||
speed_count: 4
|
||||
name: H-bridge Fan with Presets
|
||||
pin_a: gpio_output1
|
||||
pin_b: gpio_output2
|
||||
preset_modes:
|
||||
- Preset 1
|
||||
- Preset 2
|
||||
on_preset_set:
|
||||
then:
|
||||
- logger.log: Preset mode was changed!
|
33
tests/components/hbridge/test.esp32-idf.yaml
Normal file
33
tests/components/hbridge/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
pin: 14
|
||||
id: gpio_output1
|
||||
- platform: ledc
|
||||
pin: 15
|
||||
id: gpio_output2
|
||||
- platform: ledc
|
||||
pin: 12
|
||||
id: gpio_output3
|
||||
- platform: ledc
|
||||
pin: 13
|
||||
id: gpio_output4
|
||||
|
||||
light:
|
||||
- platform: hbridge
|
||||
name: Icicle Lights
|
||||
pin_a: gpio_output3
|
||||
pin_b: gpio_output4
|
||||
|
||||
fan:
|
||||
- platform: hbridge
|
||||
id: fan_hbridge
|
||||
speed_count: 4
|
||||
name: H-bridge Fan with Presets
|
||||
pin_a: gpio_output1
|
||||
pin_b: gpio_output2
|
||||
preset_modes:
|
||||
- Preset 1
|
||||
- Preset 2
|
||||
on_preset_set:
|
||||
then:
|
||||
- logger.log: Preset mode was changed!
|
33
tests/components/hbridge/test.esp32.yaml
Normal file
33
tests/components/hbridge/test.esp32.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
pin: 14
|
||||
id: gpio_output1
|
||||
- platform: ledc
|
||||
pin: 15
|
||||
id: gpio_output2
|
||||
- platform: ledc
|
||||
pin: 12
|
||||
id: gpio_output3
|
||||
- platform: ledc
|
||||
pin: 13
|
||||
id: gpio_output4
|
||||
|
||||
light:
|
||||
- platform: hbridge
|
||||
name: Icicle Lights
|
||||
pin_a: gpio_output3
|
||||
pin_b: gpio_output4
|
||||
|
||||
fan:
|
||||
- platform: hbridge
|
||||
id: fan_hbridge
|
||||
speed_count: 4
|
||||
name: H-bridge Fan with Presets
|
||||
pin_a: gpio_output1
|
||||
pin_b: gpio_output2
|
||||
preset_modes:
|
||||
- Preset 1
|
||||
- Preset 2
|
||||
on_preset_set:
|
||||
then:
|
||||
- logger.log: Preset mode was changed!
|
33
tests/components/hbridge/test.esp8266.yaml
Normal file
33
tests/components/hbridge/test.esp8266.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
pin: 4
|
||||
id: gpio_output1
|
||||
- platform: esp8266_pwm
|
||||
pin: 5
|
||||
id: gpio_output2
|
||||
- platform: esp8266_pwm
|
||||
pin: 12
|
||||
id: gpio_output3
|
||||
- platform: esp8266_pwm
|
||||
pin: 13
|
||||
id: gpio_output4
|
||||
|
||||
light:
|
||||
- platform: hbridge
|
||||
name: Icicle Lights
|
||||
pin_a: gpio_output3
|
||||
pin_b: gpio_output4
|
||||
|
||||
fan:
|
||||
- platform: hbridge
|
||||
id: fan_hbridge
|
||||
speed_count: 4
|
||||
name: H-bridge Fan with Presets
|
||||
pin_a: gpio_output1
|
||||
pin_b: gpio_output2
|
||||
preset_modes:
|
||||
- Preset 1
|
||||
- Preset 2
|
||||
on_preset_set:
|
||||
then:
|
||||
- logger.log: Preset mode was changed!
|
33
tests/components/hbridge/test.rp2040.yaml
Normal file
33
tests/components/hbridge/test.rp2040.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
output:
|
||||
- platform: rp2040_pwm
|
||||
pin: 4
|
||||
id: gpio_output1
|
||||
- platform: rp2040_pwm
|
||||
pin: 5
|
||||
id: gpio_output2
|
||||
- platform: rp2040_pwm
|
||||
pin: 6
|
||||
id: gpio_output3
|
||||
- platform: rp2040_pwm
|
||||
pin: 7
|
||||
id: gpio_output4
|
||||
|
||||
light:
|
||||
- platform: hbridge
|
||||
name: Icicle Lights
|
||||
pin_a: gpio_output3
|
||||
pin_b: gpio_output4
|
||||
|
||||
fan:
|
||||
- platform: hbridge
|
||||
id: fan_hbridge
|
||||
speed_count: 4
|
||||
name: H-bridge Fan with Presets
|
||||
pin_a: gpio_output1
|
||||
pin_b: gpio_output2
|
||||
preset_modes:
|
||||
- Preset 1
|
||||
- Preset 2
|
||||
on_preset_set:
|
||||
then:
|
||||
- logger.log: Preset mode was changed!
|
Reference in New Issue
Block a user