mirror of
https://github.com/esphome/esphome.git
synced 2026-05-30 23:54:04 +08:00
[CI] Consolidate some tests (N, O, P) (#8204)
This commit is contained in:
@@ -0,0 +1,25 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: adc
|
||||||
|
id: my_sensor
|
||||||
|
pin: ${pin}
|
||||||
|
- 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
|
||||||
@@ -1,26 +1,4 @@
|
|||||||
sensor:
|
substitutions:
|
||||||
- platform: adc
|
pin: GPIO32
|
||||||
id: my_sensor
|
|
||||||
pin: 32
|
<<: !include common.yaml
|
||||||
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
|
|
||||||
|
|||||||
@@ -1,26 +1,4 @@
|
|||||||
sensor:
|
substitutions:
|
||||||
- platform: adc
|
pin: GPIO4
|
||||||
id: my_sensor
|
|
||||||
pin: 4
|
<<: !include common.yaml
|
||||||
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
|
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
substitutions:
|
||||||
|
pin: GPIO4
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
||||||
@@ -1,26 +1,4 @@
|
|||||||
sensor:
|
substitutions:
|
||||||
- platform: adc
|
pin: GPIO32
|
||||||
id: my_sensor
|
|
||||||
pin: 32
|
<<: !include common.yaml
|
||||||
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
|
|
||||||
|
|||||||
@@ -1,26 +1,4 @@
|
|||||||
sensor:
|
substitutions:
|
||||||
- platform: adc
|
pin: GPIO4
|
||||||
id: my_sensor
|
|
||||||
pin: 4
|
<<: !include common.yaml
|
||||||
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
|
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
substitutions:
|
||||||
|
pin: GPIO4
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
||||||
@@ -1,26 +1,4 @@
|
|||||||
sensor:
|
substitutions:
|
||||||
- platform: adc
|
pin: GPIO4
|
||||||
id: my_sensor
|
|
||||||
pin: 4
|
<<: !include common.yaml
|
||||||
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
|
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
substitutions:
|
||||||
|
pin: GPIO4
|
||||||
|
|
||||||
|
<<: !include common.yaml
|
||||||
@@ -1,25 +1,4 @@
|
|||||||
sensor:
|
substitutions:
|
||||||
- platform: adc
|
pin: A0
|
||||||
id: my_sensor
|
|
||||||
pin: A0
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
|||||||
@@ -1,25 +1,4 @@
|
|||||||
sensor:
|
substitutions:
|
||||||
- platform: adc
|
pin: GPIO26
|
||||||
id: my_sensor
|
|
||||||
pin: 26
|
<<: !include common.yaml
|
||||||
- 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
|
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
esphome:
|
||||||
|
on_boot:
|
||||||
|
then:
|
||||||
|
- output.turn_off: light_output_1
|
||||||
|
- output.turn_on: light_output_1
|
||||||
|
- output.set_level:
|
||||||
|
id: light_output_1
|
||||||
|
level: 50%
|
||||||
|
|
||||||
|
output:
|
||||||
|
- platform: ${output_platform}
|
||||||
|
id: light_output_1
|
||||||
|
pin: ${pin}
|
||||||
@@ -1,13 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
output_platform: ledc
|
||||||
then:
|
pin: GPIO12
|
||||||
- output.turn_off: light_output_1
|
|
||||||
- output.turn_on: light_output_1
|
|
||||||
- output.set_level:
|
|
||||||
id: light_output_1
|
|
||||||
level: 50%
|
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- platform: ledc
|
|
||||||
id: light_output_1
|
|
||||||
pin: 12
|
|
||||||
|
|||||||
@@ -1,13 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
output_platform: ledc
|
||||||
then:
|
pin: GPIO1
|
||||||
- output.turn_off: light_output_1
|
|
||||||
- output.turn_on: light_output_1
|
|
||||||
- output.set_level:
|
|
||||||
id: light_output_1
|
|
||||||
level: 50%
|
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- platform: ledc
|
|
||||||
id: light_output_1
|
|
||||||
pin: 1
|
|
||||||
|
|||||||
@@ -1,13 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
output_platform: ledc
|
||||||
then:
|
pin: GPIO1
|
||||||
- output.turn_off: light_output_1
|
|
||||||
- output.turn_on: light_output_1
|
|
||||||
- output.set_level:
|
|
||||||
id: light_output_1
|
|
||||||
level: 50%
|
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- platform: ledc
|
|
||||||
id: light_output_1
|
|
||||||
pin: 1
|
|
||||||
|
|||||||
@@ -1,13 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
output_platform: ledc
|
||||||
then:
|
pin: GPIO12
|
||||||
- output.turn_off: light_output_1
|
|
||||||
- output.turn_on: light_output_1
|
|
||||||
- output.set_level:
|
|
||||||
id: light_output_1
|
|
||||||
level: 50%
|
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- platform: ledc
|
|
||||||
id: light_output_1
|
|
||||||
pin: 12
|
|
||||||
|
|||||||
@@ -1,13 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
output_platform: esp8266_pwm
|
||||||
then:
|
pin: GPIO12
|
||||||
- output.turn_off: light_output_1
|
|
||||||
- output.turn_on: light_output_1
|
|
||||||
- output.set_level:
|
|
||||||
id: light_output_1
|
|
||||||
level: 50%
|
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- platform: esp8266_pwm
|
|
||||||
id: light_output_1
|
|
||||||
pin: 12
|
|
||||||
|
|||||||
@@ -1,13 +1,5 @@
|
|||||||
esphome:
|
substitutions:
|
||||||
on_boot:
|
output_platform: rp2040_pwm
|
||||||
then:
|
pin: GPIO12
|
||||||
- output.turn_off: light_output_1
|
|
||||||
- output.turn_on: light_output_1
|
|
||||||
- output.set_level:
|
|
||||||
id: light_output_1
|
|
||||||
level: 50%
|
|
||||||
|
|
||||||
output:
|
<<: !include common.yaml
|
||||||
- platform: rp2040_pwm
|
|
||||||
id: light_output_1
|
|
||||||
pin: 12
|
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
light:
|
||||||
|
- platform: ${light_platform}
|
||||||
|
id: part_leds
|
||||||
|
default_transition_length: 500ms
|
||||||
|
chipset: ws2812
|
||||||
|
num_leds: 256
|
||||||
|
rgb_order: GRB
|
||||||
|
rmt_channel: 1
|
||||||
|
pin: ${pin}
|
||||||
|
- platform: partition
|
||||||
|
name: Partition Light
|
||||||
|
segments:
|
||||||
|
- id: part_leds
|
||||||
|
from: 0
|
||||||
|
to: 0
|
||||||
|
- id: part_leds
|
||||||
|
from: 1
|
||||||
|
to: 10
|
||||||
|
- id: part_leds
|
||||||
|
from: 20
|
||||||
|
to: 25
|
||||||
|
- single_light_id: part_leds
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
light:
|
||||||
|
- platform: ${light_platform}
|
||||||
|
id: part_leds
|
||||||
|
default_transition_length: 500ms
|
||||||
|
chipset: ws2812
|
||||||
|
num_leds: 256
|
||||||
|
rgb_order: GRB
|
||||||
|
pin: ${pin}
|
||||||
|
- platform: partition
|
||||||
|
name: Partition Light
|
||||||
|
segments:
|
||||||
|
- id: part_leds
|
||||||
|
from: 0
|
||||||
|
to: 0
|
||||||
|
- id: part_leds
|
||||||
|
from: 1
|
||||||
|
to: 10
|
||||||
|
- id: part_leds
|
||||||
|
from: 20
|
||||||
|
to: 25
|
||||||
|
- single_light_id: part_leds
|
||||||
@@ -1,22 +1,5 @@
|
|||||||
light:
|
substitutions:
|
||||||
- platform: fastled_clockless
|
light_platform: esp32_rmt_led_strip
|
||||||
id: part_leds
|
pin: GPIO2
|
||||||
chipset: WS2812B
|
|
||||||
pin: 2
|
<<: !include common-ard.yaml
|
||||||
num_leds: 256
|
|
||||||
rgb_order: GRB
|
|
||||||
default_transition_length: 0s
|
|
||||||
color_correct: [50%, 50%, 50%]
|
|
||||||
- platform: partition
|
|
||||||
name: Partition Light
|
|
||||||
segments:
|
|
||||||
- id: part_leds
|
|
||||||
from: 0
|
|
||||||
to: 0
|
|
||||||
- id: part_leds
|
|
||||||
from: 1
|
|
||||||
to: 10
|
|
||||||
- id: part_leds
|
|
||||||
from: 20
|
|
||||||
to: 25
|
|
||||||
- single_light_id: part_leds
|
|
||||||
|
|||||||
@@ -1,22 +1,5 @@
|
|||||||
light:
|
substitutions:
|
||||||
- platform: esp32_rmt_led_strip
|
light_platform: esp32_rmt_led_strip
|
||||||
id: part_leds
|
pin: GPIO2
|
||||||
default_transition_length: 500ms
|
|
||||||
chipset: ws2812
|
<<: !include common-ard.yaml
|
||||||
rgb_order: GRB
|
|
||||||
num_leds: 256
|
|
||||||
pin: 2
|
|
||||||
rmt_channel: 0
|
|
||||||
- platform: partition
|
|
||||||
name: Partition Light
|
|
||||||
segments:
|
|
||||||
- id: part_leds
|
|
||||||
from: 0
|
|
||||||
to: 0
|
|
||||||
- id: part_leds
|
|
||||||
from: 1
|
|
||||||
to: 10
|
|
||||||
- id: part_leds
|
|
||||||
from: 20
|
|
||||||
to: 25
|
|
||||||
- single_light_id: part_leds
|
|
||||||
|
|||||||
@@ -1,21 +1,5 @@
|
|||||||
light:
|
substitutions:
|
||||||
- platform: esp32_rmt_led_strip
|
light_platform: esp32_rmt_led_strip
|
||||||
id: part_leds
|
pin: GPIO2
|
||||||
default_transition_length: 500ms
|
|
||||||
chipset: ws2812
|
<<: !include common-idf.yaml
|
||||||
rgb_order: GRB
|
|
||||||
num_leds: 256
|
|
||||||
pin: 2
|
|
||||||
- platform: partition
|
|
||||||
name: Partition Light
|
|
||||||
segments:
|
|
||||||
- id: part_leds
|
|
||||||
from: 0
|
|
||||||
to: 0
|
|
||||||
- id: part_leds
|
|
||||||
from: 1
|
|
||||||
to: 10
|
|
||||||
- id: part_leds
|
|
||||||
from: 20
|
|
||||||
to: 25
|
|
||||||
- single_light_id: part_leds
|
|
||||||
|
|||||||
@@ -1,21 +1,5 @@
|
|||||||
light:
|
substitutions:
|
||||||
- platform: esp32_rmt_led_strip
|
light_platform: esp32_rmt_led_strip
|
||||||
id: part_leds
|
pin: GPIO12
|
||||||
default_transition_length: 500ms
|
|
||||||
chipset: ws2812
|
<<: !include common-idf.yaml
|
||||||
rgb_order: GRB
|
|
||||||
num_leds: 256
|
|
||||||
pin: 2
|
|
||||||
- platform: partition
|
|
||||||
name: Partition Light
|
|
||||||
segments:
|
|
||||||
- id: part_leds
|
|
||||||
from: 0
|
|
||||||
to: 0
|
|
||||||
- id: part_leds
|
|
||||||
from: 1
|
|
||||||
to: 10
|
|
||||||
- id: part_leds
|
|
||||||
from: 20
|
|
||||||
to: 25
|
|
||||||
- single_light_id: part_leds
|
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_pca6416a
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
pca6416a:
|
||||||
|
- id: pca6416a_hub
|
||||||
|
address: 0x21
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: gpio
|
||||||
|
name: PCA6416A Binary Sensor
|
||||||
|
pin:
|
||||||
|
pca6416a: pca6416a_hub
|
||||||
|
number: 15
|
||||||
|
mode: INPUT
|
||||||
|
inverted: true
|
||||||
@@ -1,17 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_pca6416a
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
pca6416a:
|
<<: !include common.yaml
|
||||||
- id: pca6416a_hub
|
|
||||||
address: 0x21
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: gpio
|
|
||||||
name: PCA6416A Binary Sensor
|
|
||||||
pin:
|
|
||||||
pca6416a: pca6416a_hub
|
|
||||||
number: 15
|
|
||||||
mode: INPUT
|
|
||||||
inverted: true
|
|
||||||
|
|||||||
@@ -1,17 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_pca6416a
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
pca6416a:
|
<<: !include common.yaml
|
||||||
- id: pca6416a_hub
|
|
||||||
address: 0x21
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: gpio
|
|
||||||
name: PCA6416A Binary Sensor
|
|
||||||
pin:
|
|
||||||
pca6416a: pca6416a_hub
|
|
||||||
number: 15
|
|
||||||
mode: INPUT
|
|
||||||
inverted: true
|
|
||||||
|
|||||||
@@ -1,17 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_pca6416a
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
pca6416a:
|
<<: !include common.yaml
|
||||||
- id: pca6416a_hub
|
|
||||||
address: 0x21
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: gpio
|
|
||||||
name: PCA6416A Binary Sensor
|
|
||||||
pin:
|
|
||||||
pca6416a: pca6416a_hub
|
|
||||||
number: 15
|
|
||||||
mode: INPUT
|
|
||||||
inverted: true
|
|
||||||
|
|||||||
@@ -1,17 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_pca6416a
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
pca6416a:
|
<<: !include common.yaml
|
||||||
- id: pca6416a_hub
|
|
||||||
address: 0x21
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: gpio
|
|
||||||
name: PCA6416A Binary Sensor
|
|
||||||
pin:
|
|
||||||
pca6416a: pca6416a_hub
|
|
||||||
number: 15
|
|
||||||
mode: INPUT
|
|
||||||
inverted: true
|
|
||||||
|
|||||||
@@ -1,17 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_pca6416a
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
pca6416a:
|
<<: !include common.yaml
|
||||||
- id: pca6416a_hub
|
|
||||||
address: 0x21
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: gpio
|
|
||||||
name: PCA6416A Binary Sensor
|
|
||||||
pin:
|
|
||||||
pca6416a: pca6416a_hub
|
|
||||||
number: 15
|
|
||||||
mode: INPUT
|
|
||||||
inverted: true
|
|
||||||
|
|||||||
@@ -1,17 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_pca6416a
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
pca6416a:
|
<<: !include common.yaml
|
||||||
- id: pca6416a_hub
|
|
||||||
address: 0x21
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: gpio
|
|
||||||
name: PCA6416A Binary Sensor
|
|
||||||
pin:
|
|
||||||
pca6416a: pca6416a_hub
|
|
||||||
number: 15
|
|
||||||
mode: INPUT
|
|
||||||
inverted: true
|
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_pca9554
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
pca9554:
|
||||||
|
- id: pca9554_hub
|
||||||
|
pin_count: 8
|
||||||
|
address: 0x3F
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: gpio
|
||||||
|
id: pca9554_input
|
||||||
|
name: PCA9554 Binary Sensor
|
||||||
|
pin:
|
||||||
|
pca9554: pca9554_hub
|
||||||
|
number: 1
|
||||||
|
mode: INPUT
|
||||||
|
inverted: true
|
||||||
|
- platform: gpio
|
||||||
|
id: pca9554_output
|
||||||
|
pin:
|
||||||
|
pca9554: pca9554_hub
|
||||||
|
number: 0
|
||||||
|
mode: OUTPUT
|
||||||
|
inverted: false
|
||||||
@@ -1,26 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_pca9554
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
pca9554:
|
<<: !include common.yaml
|
||||||
- id: pca9554_hub
|
|
||||||
pin_count: 8
|
|
||||||
address: 0x3F
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: gpio
|
|
||||||
id: pca9554_input
|
|
||||||
name: PCA9554 Binary Sensor
|
|
||||||
pin:
|
|
||||||
pca9554: pca9554_hub
|
|
||||||
number: 1
|
|
||||||
mode: INPUT
|
|
||||||
inverted: true
|
|
||||||
- platform: gpio
|
|
||||||
id: pca9554_output
|
|
||||||
pin:
|
|
||||||
pca9554: pca9554_hub
|
|
||||||
number: 0
|
|
||||||
mode: OUTPUT
|
|
||||||
inverted: false
|
|
||||||
|
|||||||
@@ -1,26 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_pca9554
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
pca9554:
|
<<: !include common.yaml
|
||||||
- id: pca9554_hub
|
|
||||||
pin_count: 8
|
|
||||||
address: 0x3F
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: gpio
|
|
||||||
id: pca9554_input
|
|
||||||
name: PCA9554 Binary Sensor
|
|
||||||
pin:
|
|
||||||
pca9554: pca9554_hub
|
|
||||||
number: 1
|
|
||||||
mode: INPUT
|
|
||||||
inverted: true
|
|
||||||
- platform: gpio
|
|
||||||
id: pca9554_output
|
|
||||||
pin:
|
|
||||||
pca9554: pca9554_hub
|
|
||||||
number: 0
|
|
||||||
mode: OUTPUT
|
|
||||||
inverted: false
|
|
||||||
|
|||||||
@@ -1,26 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_pca9554
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
pca9554:
|
<<: !include common.yaml
|
||||||
- id: pca9554_hub
|
|
||||||
pin_count: 8
|
|
||||||
address: 0x3F
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: gpio
|
|
||||||
id: pca9554_input
|
|
||||||
name: PCA9554 Binary Sensor
|
|
||||||
pin:
|
|
||||||
pca9554: pca9554_hub
|
|
||||||
number: 1
|
|
||||||
mode: INPUT
|
|
||||||
inverted: true
|
|
||||||
- platform: gpio
|
|
||||||
id: pca9554_output
|
|
||||||
pin:
|
|
||||||
pca9554: pca9554_hub
|
|
||||||
number: 0
|
|
||||||
mode: OUTPUT
|
|
||||||
inverted: false
|
|
||||||
|
|||||||
@@ -1,26 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_pca9554
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
pca9554:
|
<<: !include common.yaml
|
||||||
- id: pca9554_hub
|
|
||||||
pin_count: 8
|
|
||||||
address: 0x3F
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: gpio
|
|
||||||
id: pca9554_input
|
|
||||||
name: PCA9554 Binary Sensor
|
|
||||||
pin:
|
|
||||||
pca9554: pca9554_hub
|
|
||||||
number: 1
|
|
||||||
mode: INPUT
|
|
||||||
inverted: true
|
|
||||||
- platform: gpio
|
|
||||||
id: pca9554_output
|
|
||||||
pin:
|
|
||||||
pca9554: pca9554_hub
|
|
||||||
number: 0
|
|
||||||
mode: OUTPUT
|
|
||||||
inverted: false
|
|
||||||
|
|||||||
@@ -1,26 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_pca9554
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
pca9554:
|
<<: !include common.yaml
|
||||||
- id: pca9554_hub
|
|
||||||
pin_count: 8
|
|
||||||
address: 0x3F
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: gpio
|
|
||||||
id: pca9554_input
|
|
||||||
name: PCA9554 Binary Sensor
|
|
||||||
pin:
|
|
||||||
pca9554: pca9554_hub
|
|
||||||
number: 1
|
|
||||||
mode: INPUT
|
|
||||||
inverted: true
|
|
||||||
- platform: gpio
|
|
||||||
id: pca9554_output
|
|
||||||
pin:
|
|
||||||
pca9554: pca9554_hub
|
|
||||||
number: 0
|
|
||||||
mode: OUTPUT
|
|
||||||
inverted: false
|
|
||||||
|
|||||||
@@ -1,26 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_pca9554
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
pca9554:
|
<<: !include common.yaml
|
||||||
- id: pca9554_hub
|
|
||||||
pin_count: 8
|
|
||||||
address: 0x3F
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: gpio
|
|
||||||
id: pca9554_input
|
|
||||||
name: PCA9554 Binary Sensor
|
|
||||||
pin:
|
|
||||||
pca9554: pca9554_hub
|
|
||||||
number: 1
|
|
||||||
mode: INPUT
|
|
||||||
inverted: true
|
|
||||||
- platform: gpio
|
|
||||||
id: pca9554_output
|
|
||||||
pin:
|
|
||||||
pca9554: pca9554_hub
|
|
||||||
number: 0
|
|
||||||
mode: OUTPUT
|
|
||||||
inverted: false
|
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
i2c:
|
||||||
|
- id: i2c_pca9685
|
||||||
|
scl: ${scl_pin}
|
||||||
|
sda: ${sda_pin}
|
||||||
|
|
||||||
|
pca9685:
|
||||||
|
frequency: 500
|
||||||
|
address: 0x0
|
||||||
|
|
||||||
|
output:
|
||||||
|
- platform: pca9685
|
||||||
|
id: pca_0
|
||||||
|
channel: 0
|
||||||
|
- platform: pca9685
|
||||||
|
id: pca_1
|
||||||
|
channel: 1
|
||||||
|
- platform: pca9685
|
||||||
|
id: pca_2
|
||||||
|
channel: 2
|
||||||
|
- platform: pca9685
|
||||||
|
id: pca_3
|
||||||
|
channel: 3
|
||||||
|
- platform: pca9685
|
||||||
|
id: pca_4
|
||||||
|
channel: 4
|
||||||
|
- platform: pca9685
|
||||||
|
id: pca_5
|
||||||
|
channel: 5
|
||||||
|
- platform: pca9685
|
||||||
|
id: pca_6
|
||||||
|
channel: 6
|
||||||
|
- platform: pca9685
|
||||||
|
id: pca_7
|
||||||
|
channel: 7
|
||||||
@@ -1,34 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_pca9685
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
pca9685:
|
<<: !include common.yaml
|
||||||
frequency: 500
|
|
||||||
address: 0x0
|
|
||||||
|
|
||||||
output:
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_0
|
|
||||||
channel: 0
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_1
|
|
||||||
channel: 1
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_2
|
|
||||||
channel: 2
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_3
|
|
||||||
channel: 3
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_4
|
|
||||||
channel: 4
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_5
|
|
||||||
channel: 5
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_6
|
|
||||||
channel: 6
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_7
|
|
||||||
channel: 7
|
|
||||||
|
|||||||
@@ -1,34 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_pca9685
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
pca9685:
|
<<: !include common.yaml
|
||||||
frequency: 500
|
|
||||||
address: 0x0
|
|
||||||
|
|
||||||
output:
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_0
|
|
||||||
channel: 0
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_1
|
|
||||||
channel: 1
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_2
|
|
||||||
channel: 2
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_3
|
|
||||||
channel: 3
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_4
|
|
||||||
channel: 4
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_5
|
|
||||||
channel: 5
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_6
|
|
||||||
channel: 6
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_7
|
|
||||||
channel: 7
|
|
||||||
|
|||||||
@@ -1,34 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_pca9685
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
pca9685:
|
<<: !include common.yaml
|
||||||
frequency: 500
|
|
||||||
address: 0x0
|
|
||||||
|
|
||||||
output:
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_0
|
|
||||||
channel: 0
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_1
|
|
||||||
channel: 1
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_2
|
|
||||||
channel: 2
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_3
|
|
||||||
channel: 3
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_4
|
|
||||||
channel: 4
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_5
|
|
||||||
channel: 5
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_6
|
|
||||||
channel: 6
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_7
|
|
||||||
channel: 7
|
|
||||||
|
|||||||
@@ -1,34 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_pca9685
|
scl_pin: GPIO16
|
||||||
scl: 16
|
sda_pin: GPIO17
|
||||||
sda: 17
|
|
||||||
|
|
||||||
pca9685:
|
<<: !include common.yaml
|
||||||
frequency: 500
|
|
||||||
address: 0x0
|
|
||||||
|
|
||||||
output:
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_0
|
|
||||||
channel: 0
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_1
|
|
||||||
channel: 1
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_2
|
|
||||||
channel: 2
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_3
|
|
||||||
channel: 3
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_4
|
|
||||||
channel: 4
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_5
|
|
||||||
channel: 5
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_6
|
|
||||||
channel: 6
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_7
|
|
||||||
channel: 7
|
|
||||||
|
|||||||
@@ -1,34 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_pca9685
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
pca9685:
|
<<: !include common.yaml
|
||||||
frequency: 500
|
|
||||||
address: 0x0
|
|
||||||
|
|
||||||
output:
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_0
|
|
||||||
channel: 0
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_1
|
|
||||||
channel: 1
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_2
|
|
||||||
channel: 2
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_3
|
|
||||||
channel: 3
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_4
|
|
||||||
channel: 4
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_5
|
|
||||||
channel: 5
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_6
|
|
||||||
channel: 6
|
|
||||||
- platform: pca9685
|
|
||||||
id: pca_7
|
|
||||||
channel: 7
|
|
||||||
|
|||||||
@@ -1,26 +1,5 @@
|
|||||||
i2c:
|
substitutions:
|
||||||
- id: i2c_pca9554
|
scl_pin: GPIO5
|
||||||
scl: 5
|
sda_pin: GPIO4
|
||||||
sda: 4
|
|
||||||
|
|
||||||
pca9554:
|
<<: !include common.yaml
|
||||||
- id: pca9554_hub
|
|
||||||
pin_count: 8
|
|
||||||
address: 0x3F
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: gpio
|
|
||||||
id: pca9554_input
|
|
||||||
name: PCA9554 Binary Sensor
|
|
||||||
pin:
|
|
||||||
pca9554: pca9554_hub
|
|
||||||
number: 1
|
|
||||||
mode: INPUT
|
|
||||||
inverted: true
|
|
||||||
- platform: gpio
|
|
||||||
id: pca9554_output
|
|
||||||
pin:
|
|
||||||
pca9554: pca9554_hub
|
|
||||||
number: 0
|
|
||||||
mode: OUTPUT
|
|
||||||
inverted: false
|
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
spi:
|
||||||
|
- id: spi_pcd8544
|
||||||
|
clk_pin: ${clk_pin}
|
||||||
|
mosi_pin: ${mosi_pin}
|
||||||
|
miso_pin: ${miso_pin}
|
||||||
|
|
||||||
|
display:
|
||||||
|
- platform: pcd8544
|
||||||
|
cs_pin: ${cs_pin}
|
||||||
|
dc_pin: ${dc_pin}
|
||||||
|
reset_pin: ${reset_pin}
|
||||||
|
contrast: 60
|
||||||
|
lambda: |-
|
||||||
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
@@ -1,14 +1,9 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_pcd8544
|
clk_pin: GPIO16
|
||||||
clk_pin: 16
|
mosi_pin: GPIO17
|
||||||
mosi_pin: 17
|
miso_pin: GPIO18
|
||||||
miso_pin: 15
|
cs_pin: GPIO12
|
||||||
|
dc_pin: GPIO13
|
||||||
|
reset_pin: GPIO14
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- platform: pcd8544
|
|
||||||
cs_pin: 12
|
|
||||||
dc_pin: 13
|
|
||||||
reset_pin: 14
|
|
||||||
contrast: 60
|
|
||||||
lambda: |-
|
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
||||||
|
|||||||
@@ -1,14 +1,9 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_pcd8544
|
clk_pin: GPIO6
|
||||||
clk_pin: 6
|
mosi_pin: GPIO7
|
||||||
mosi_pin: 7
|
miso_pin: GPIO5
|
||||||
miso_pin: 5
|
cs_pin: GPIO8
|
||||||
|
dc_pin: GPIO9
|
||||||
|
reset_pin: GPIO10
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- platform: pcd8544
|
|
||||||
cs_pin: 2
|
|
||||||
dc_pin: 3
|
|
||||||
reset_pin: 1
|
|
||||||
contrast: 60
|
|
||||||
lambda: |-
|
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
||||||
|
|||||||
@@ -1,14 +1,9 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_pcd8544
|
clk_pin: GPIO6
|
||||||
clk_pin: 6
|
mosi_pin: GPIO7
|
||||||
mosi_pin: 7
|
miso_pin: GPIO5
|
||||||
miso_pin: 5
|
cs_pin: GPIO8
|
||||||
|
dc_pin: GPIO9
|
||||||
|
reset_pin: GPIO10
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- platform: pcd8544
|
|
||||||
cs_pin: 2
|
|
||||||
dc_pin: 3
|
|
||||||
reset_pin: 1
|
|
||||||
contrast: 60
|
|
||||||
lambda: |-
|
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
||||||
|
|||||||
@@ -1,14 +1,9 @@
|
|||||||
spi:
|
substitutions:
|
||||||
- id: spi_pcd8544
|
clk_pin: GPIO16
|
||||||
clk_pin: 16
|
mosi_pin: GPIO17
|
||||||
mosi_pin: 17
|
miso_pin: GPIO18
|
||||||
miso_pin: 15
|
cs_pin: GPIO12
|
||||||
|
dc_pin: GPIO13
|
||||||
|
reset_pin: GPIO14
|
||||||
|
|
||||||
display:
|
<<: !include common.yaml
|
||||||
- platform: pcd8544
|
|
||||||
cs_pin: 12
|
|
||||||
dc_pin: 13
|
|
||||||
reset_pin: 14
|
|
||||||
contrast: 60
|
|
||||||
lambda: |-
|
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user