mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 19:02:18 +01:00
Merge branch 'dev' into vornado-ir
This commit is contained in:
39
tests/components/hbridge/common.yaml
Normal file
39
tests/components/hbridge/common.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
output:
|
||||
- platform: ${pwm_platform}
|
||||
pin: ${output1_pin}
|
||||
id: gpio_output1
|
||||
- platform: ${pwm_platform}
|
||||
pin: ${output2_pin}
|
||||
id: gpio_output2
|
||||
- platform: ${pwm_platform}
|
||||
pin: ${output3_pin}
|
||||
id: gpio_output3
|
||||
- platform: ${pwm_platform}
|
||||
pin: ${output4_pin}
|
||||
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!
|
||||
|
||||
switch:
|
||||
- platform: hbridge
|
||||
id: switch_hbridge
|
||||
on_pin: ${hbridge_on_pin}
|
||||
off_pin: ${hbridge_off_pin}
|
@@ -1,33 +1,17 @@
|
||||
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
|
||||
substitutions:
|
||||
pwm_platform: ledc
|
||||
output1_pin: "14"
|
||||
output2_pin: "15"
|
||||
output3_pin: "12"
|
||||
output4_pin: "13"
|
||||
hbridge_on_pin: "4"
|
||||
hbridge_off_pin: "5"
|
||||
|
||||
light:
|
||||
- platform: hbridge
|
||||
name: Icicle Lights
|
||||
pin_a: gpio_output3
|
||||
pin_b: gpio_output4
|
||||
packages:
|
||||
common: !include common.yaml
|
||||
|
||||
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!
|
||||
switch:
|
||||
- id: !extend switch_hbridge
|
||||
pulse_length: 60ms
|
||||
wait_time: 10ms
|
||||
optimistic: false
|
||||
|
@@ -1,33 +1,16 @@
|
||||
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
|
||||
substitutions:
|
||||
pwm_platform: "ledc"
|
||||
output1_pin: "4"
|
||||
output2_pin: "5"
|
||||
output3_pin: "6"
|
||||
output4_pin: "7"
|
||||
hbridge_on_pin: "2"
|
||||
hbridge_off_pin: "3"
|
||||
|
||||
light:
|
||||
- platform: hbridge
|
||||
name: Icicle Lights
|
||||
pin_a: gpio_output3
|
||||
pin_b: gpio_output4
|
||||
packages:
|
||||
common: !include common.yaml
|
||||
|
||||
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!
|
||||
switch:
|
||||
- id: !extend switch_hbridge
|
||||
wait_time: 10ms
|
||||
optimistic: true
|
||||
|
@@ -1,33 +1,15 @@
|
||||
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
|
||||
substitutions:
|
||||
pwm_platform: "ledc"
|
||||
output1_pin: "4"
|
||||
output2_pin: "5"
|
||||
output3_pin: "6"
|
||||
output4_pin: "7"
|
||||
hbridge_on_pin: "2"
|
||||
hbridge_off_pin: "3"
|
||||
|
||||
light:
|
||||
- platform: hbridge
|
||||
name: Icicle Lights
|
||||
pin_a: gpio_output3
|
||||
pin_b: gpio_output4
|
||||
packages:
|
||||
common: !include common.yaml
|
||||
|
||||
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!
|
||||
switch:
|
||||
- id: !extend switch_hbridge
|
||||
pulse_length: 60ms
|
||||
|
@@ -1,33 +1,16 @@
|
||||
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
|
||||
substitutions:
|
||||
pwm_platform: "ledc"
|
||||
output1_pin: "14"
|
||||
output2_pin: "15"
|
||||
output3_pin: "12"
|
||||
output4_pin: "13"
|
||||
hbridge_on_pin: "4"
|
||||
hbridge_off_pin: "5"
|
||||
|
||||
light:
|
||||
- platform: hbridge
|
||||
name: Icicle Lights
|
||||
pin_a: gpio_output3
|
||||
pin_b: gpio_output4
|
||||
packages:
|
||||
common: !include common.yaml
|
||||
|
||||
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!
|
||||
switch:
|
||||
- id: !extend switch_hbridge
|
||||
pulse_length: 60ms
|
||||
wait_time: 10ms
|
||||
|
@@ -1,33 +1,16 @@
|
||||
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
|
||||
substitutions:
|
||||
pwm_platform: "esp8266_pwm"
|
||||
output1_pin: "4"
|
||||
output2_pin: "5"
|
||||
output3_pin: "12"
|
||||
output4_pin: "13"
|
||||
hbridge_on_pin: "14"
|
||||
hbridge_off_pin: "15"
|
||||
|
||||
light:
|
||||
- platform: hbridge
|
||||
name: Icicle Lights
|
||||
pin_a: gpio_output3
|
||||
pin_b: gpio_output4
|
||||
packages:
|
||||
common: !include common.yaml
|
||||
|
||||
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!
|
||||
switch:
|
||||
- id: !extend switch_hbridge
|
||||
pulse_length: 60ms
|
||||
wait_time: 10ms
|
||||
|
@@ -1,33 +1,16 @@
|
||||
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
|
||||
substitutions:
|
||||
pwm_platform: "rp2040_pwm"
|
||||
output1_pin: "4"
|
||||
output2_pin: "5"
|
||||
output3_pin: "6"
|
||||
output4_pin: "7"
|
||||
hbridge_on_pin: "2"
|
||||
hbridge_off_pin: "3"
|
||||
|
||||
light:
|
||||
- platform: hbridge
|
||||
name: Icicle Lights
|
||||
pin_a: gpio_output3
|
||||
pin_b: gpio_output4
|
||||
packages:
|
||||
common: !include common.yaml
|
||||
|
||||
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!
|
||||
switch:
|
||||
- id: !extend switch_hbridge
|
||||
wait_time: 10ms
|
||||
optimistic: true
|
||||
|
@@ -109,6 +109,10 @@ lvgl:
|
||||
close_button: true
|
||||
title: Messagebox
|
||||
bg_color: 0xffff
|
||||
widgets:
|
||||
- label:
|
||||
text: Hello Msgbox
|
||||
id: msgbox_label
|
||||
body:
|
||||
text: This is a sample messagebox
|
||||
bg_color: 0x808080
|
||||
@@ -137,6 +141,9 @@ lvgl:
|
||||
- lvgl.widget.focus: mark
|
||||
- lvgl.widget.redraw: hello_label
|
||||
- lvgl.widget.redraw:
|
||||
- lvgl.label.update:
|
||||
id: msgbox_label
|
||||
text: Unloaded
|
||||
on_all_events:
|
||||
logger.log:
|
||||
format: "Event %s"
|
||||
@@ -337,7 +344,7 @@ lvgl:
|
||||
id: button_button
|
||||
width: 20%
|
||||
height: 10%
|
||||
transform_angle: !lambda return 180*100;
|
||||
transform_angle: !lambda return(180*100);
|
||||
arc_width: !lambda return 4;
|
||||
border_width: !lambda return 6;
|
||||
shadow_ofs_x: !lambda return 6;
|
||||
@@ -581,7 +588,7 @@ lvgl:
|
||||
- 180, 60
|
||||
- 240, 10
|
||||
on_click:
|
||||
- lvgl.widget.update:
|
||||
- lvgl.line.update:
|
||||
id: lv_line_id
|
||||
line_color: 0xFFFF
|
||||
- lvgl.page.next:
|
||||
|
@@ -60,6 +60,7 @@ mqtt:
|
||||
- mqtt.publish:
|
||||
topic: some/topic
|
||||
payload: Good-bye
|
||||
publish_nan_as_none: false
|
||||
|
||||
binary_sensor:
|
||||
- platform: template
|
||||
|
Reference in New Issue
Block a user