mirror of
https://github.com/esphome/esphome.git
synced 2026-05-21 15:15:11 +08:00
Add some components to the new testing framework (P) (#6213)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
light:
|
||||
- platform: esp32_rmt_led_strip
|
||||
id: part_leds
|
||||
default_transition_length: 500ms
|
||||
chipset: ws2812
|
||||
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
|
||||
@@ -0,0 +1,22 @@
|
||||
light:
|
||||
- platform: esp32_rmt_led_strip
|
||||
id: part_leds
|
||||
default_transition_length: 500ms
|
||||
chipset: ws2812
|
||||
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
|
||||
@@ -0,0 +1,22 @@
|
||||
light:
|
||||
- platform: esp32_rmt_led_strip
|
||||
id: part_leds
|
||||
default_transition_length: 500ms
|
||||
chipset: ws2812
|
||||
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
|
||||
@@ -0,0 +1,22 @@
|
||||
light:
|
||||
- platform: fastled_clockless
|
||||
id: part_leds
|
||||
chipset: WS2812B
|
||||
pin: 2
|
||||
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
|
||||
@@ -0,0 +1,17 @@
|
||||
i2c:
|
||||
- id: i2c_pca6416a
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
pca6416a:
|
||||
- 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,17 @@
|
||||
i2c:
|
||||
- id: i2c_pca6416a
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
pca6416a:
|
||||
- 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,17 @@
|
||||
i2c:
|
||||
- id: i2c_pca6416a
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
pca6416a:
|
||||
- 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,17 @@
|
||||
i2c:
|
||||
- id: i2c_pca6416a
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
pca6416a:
|
||||
- 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,17 @@
|
||||
i2c:
|
||||
- id: i2c_pca6416a
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
pca6416a:
|
||||
- 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,17 @@
|
||||
i2c:
|
||||
- id: i2c_pca6416a
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
pca6416a:
|
||||
- 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: 5
|
||||
sda: 4
|
||||
|
||||
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
|
||||
@@ -0,0 +1,26 @@
|
||||
i2c:
|
||||
- id: i2c_pca9554
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
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
|
||||
@@ -0,0 +1,26 @@
|
||||
i2c:
|
||||
- id: i2c_pca9554
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
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
|
||||
@@ -0,0 +1,26 @@
|
||||
i2c:
|
||||
- id: i2c_pca9554
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
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
|
||||
@@ -0,0 +1,26 @@
|
||||
i2c:
|
||||
- id: i2c_pca9554
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
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
|
||||
@@ -0,0 +1,26 @@
|
||||
i2c:
|
||||
- id: i2c_pca9554
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
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
|
||||
@@ -0,0 +1,34 @@
|
||||
i2c:
|
||||
- id: i2c_pca9685
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
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
|
||||
@@ -0,0 +1,34 @@
|
||||
i2c:
|
||||
- id: i2c_pca9685
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
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
|
||||
@@ -0,0 +1,34 @@
|
||||
i2c:
|
||||
- id: i2c_pca9685
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
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
|
||||
@@ -0,0 +1,34 @@
|
||||
i2c:
|
||||
- id: i2c_pca9685
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
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
|
||||
@@ -0,0 +1,34 @@
|
||||
i2c:
|
||||
- id: i2c_pca9685
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
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
|
||||
@@ -0,0 +1,26 @@
|
||||
i2c:
|
||||
- id: i2c_pca9554
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
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
|
||||
@@ -0,0 +1,14 @@
|
||||
spi:
|
||||
- id: spi_pcd8544
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
display:
|
||||
- platform: pcd8544
|
||||
cs_pin: 2
|
||||
dc_pin: 3
|
||||
reset_pin: 1
|
||||
contrast: 60
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
@@ -0,0 +1,14 @@
|
||||
spi:
|
||||
- id: spi_pcd8544
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
display:
|
||||
- platform: pcd8544
|
||||
cs_pin: 2
|
||||
dc_pin: 3
|
||||
reset_pin: 1
|
||||
contrast: 60
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
@@ -0,0 +1,14 @@
|
||||
spi:
|
||||
- id: spi_pcd8544
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
display:
|
||||
- platform: pcd8544
|
||||
cs_pin: 12
|
||||
dc_pin: 13
|
||||
reset_pin: 14
|
||||
contrast: 60
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
@@ -0,0 +1,14 @@
|
||||
spi:
|
||||
- id: spi_pcd8544
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
display:
|
||||
- platform: pcd8544
|
||||
cs_pin: 12
|
||||
dc_pin: 13
|
||||
reset_pin: 14
|
||||
contrast: 60
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
@@ -0,0 +1,14 @@
|
||||
spi:
|
||||
- id: spi_pcd8544
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
miso_pin: 12
|
||||
|
||||
display:
|
||||
- platform: pcd8544
|
||||
cs_pin: 15
|
||||
dc_pin: 16
|
||||
reset_pin: 5
|
||||
contrast: 60
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
@@ -0,0 +1,14 @@
|
||||
spi:
|
||||
- id: spi_pcd8544
|
||||
clk_pin: 2
|
||||
mosi_pin: 3
|
||||
miso_pin: 4
|
||||
|
||||
display:
|
||||
- platform: pcd8544
|
||||
cs_pin: 6
|
||||
dc_pin: 5
|
||||
reset_pin: 7
|
||||
contrast: 60
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
@@ -0,0 +1,12 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
- pcf85063.read_time
|
||||
- pcf85063.write_time
|
||||
|
||||
i2c:
|
||||
- id: i2c_pcf85063
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
time:
|
||||
- platform: pcf85063
|
||||
@@ -0,0 +1,12 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
- pcf85063.read_time
|
||||
- pcf85063.write_time
|
||||
|
||||
i2c:
|
||||
- id: i2c_pcf85063
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
time:
|
||||
- platform: pcf85063
|
||||
@@ -0,0 +1,12 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
- pcf85063.read_time
|
||||
- pcf85063.write_time
|
||||
|
||||
i2c:
|
||||
- id: i2c_pcf85063
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
time:
|
||||
- platform: pcf85063
|
||||
@@ -0,0 +1,12 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
- pcf85063.read_time
|
||||
- pcf85063.write_time
|
||||
|
||||
i2c:
|
||||
- id: i2c_pcf85063
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
time:
|
||||
- platform: pcf85063
|
||||
@@ -0,0 +1,12 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
- pcf85063.read_time
|
||||
- pcf85063.write_time
|
||||
|
||||
i2c:
|
||||
- id: i2c_pcf85063
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
time:
|
||||
- platform: pcf85063
|
||||
@@ -0,0 +1,12 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
- pcf85063.read_time
|
||||
- pcf85063.write_time
|
||||
|
||||
i2c:
|
||||
- id: i2c_pcf85063
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
time:
|
||||
- platform: pcf85063
|
||||
@@ -0,0 +1,12 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
- pcf8563.read_time
|
||||
- pcf8563.write_time
|
||||
|
||||
i2c:
|
||||
- id: i2c_pcf8563
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
time:
|
||||
- platform: pcf8563
|
||||
@@ -0,0 +1,12 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
- pcf8563.read_time
|
||||
- pcf8563.write_time
|
||||
|
||||
i2c:
|
||||
- id: i2c_pcf8563
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
time:
|
||||
- platform: pcf8563
|
||||
@@ -0,0 +1,12 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
- pcf8563.read_time
|
||||
- pcf8563.write_time
|
||||
|
||||
i2c:
|
||||
- id: i2c_pcf8563
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
time:
|
||||
- platform: pcf8563
|
||||
@@ -0,0 +1,12 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
- pcf8563.read_time
|
||||
- pcf8563.write_time
|
||||
|
||||
i2c:
|
||||
- id: i2c_pcf8563
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
time:
|
||||
- platform: pcf8563
|
||||
@@ -0,0 +1,12 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
- pcf8563.read_time
|
||||
- pcf8563.write_time
|
||||
|
||||
i2c:
|
||||
- id: i2c_pcf8563
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
time:
|
||||
- platform: pcf8563
|
||||
@@ -0,0 +1,12 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
- pcf8563.read_time
|
||||
- pcf8563.write_time
|
||||
|
||||
i2c:
|
||||
- id: i2c_pcf8563
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
time:
|
||||
- platform: pcf8563
|
||||
@@ -0,0 +1,28 @@
|
||||
i2c:
|
||||
- id: i2c_pcf8563
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
pcf8574:
|
||||
- id: pcf8574_hub
|
||||
address: 0x21
|
||||
pcf8575: false
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: pcf8574_binary_sensor
|
||||
name: PCF Binary Sensor
|
||||
pin:
|
||||
pcf8574: pcf8574_hub
|
||||
number: 1
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
|
||||
output:
|
||||
- platform: gpio
|
||||
id: pcf8574_output
|
||||
pin:
|
||||
pcf8574: pcf8574_hub
|
||||
number: 0
|
||||
mode: OUTPUT
|
||||
inverted: false
|
||||
@@ -0,0 +1,28 @@
|
||||
i2c:
|
||||
- id: i2c_pcf8563
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
pcf8574:
|
||||
- id: pcf8574_hub
|
||||
address: 0x21
|
||||
pcf8575: false
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: pcf8574_binary_sensor
|
||||
name: PCF Binary Sensor
|
||||
pin:
|
||||
pcf8574: pcf8574_hub
|
||||
number: 1
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
|
||||
output:
|
||||
- platform: gpio
|
||||
id: pcf8574_output
|
||||
pin:
|
||||
pcf8574: pcf8574_hub
|
||||
number: 0
|
||||
mode: OUTPUT
|
||||
inverted: false
|
||||
@@ -0,0 +1,28 @@
|
||||
i2c:
|
||||
- id: i2c_pcf8563
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
pcf8574:
|
||||
- id: pcf8574_hub
|
||||
address: 0x21
|
||||
pcf8575: false
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: pcf8574_binary_sensor
|
||||
name: PCF Binary Sensor
|
||||
pin:
|
||||
pcf8574: pcf8574_hub
|
||||
number: 1
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
|
||||
output:
|
||||
- platform: gpio
|
||||
id: pcf8574_output
|
||||
pin:
|
||||
pcf8574: pcf8574_hub
|
||||
number: 0
|
||||
mode: OUTPUT
|
||||
inverted: false
|
||||
@@ -0,0 +1,28 @@
|
||||
i2c:
|
||||
- id: i2c_pcf8563
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
pcf8574:
|
||||
- id: pcf8574_hub
|
||||
address: 0x21
|
||||
pcf8575: false
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: pcf8574_binary_sensor
|
||||
name: PCF Binary Sensor
|
||||
pin:
|
||||
pcf8574: pcf8574_hub
|
||||
number: 1
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
|
||||
output:
|
||||
- platform: gpio
|
||||
id: pcf8574_output
|
||||
pin:
|
||||
pcf8574: pcf8574_hub
|
||||
number: 0
|
||||
mode: OUTPUT
|
||||
inverted: false
|
||||
@@ -0,0 +1,28 @@
|
||||
i2c:
|
||||
- id: i2c_pcf8563
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
pcf8574:
|
||||
- id: pcf8574_hub
|
||||
address: 0x21
|
||||
pcf8575: false
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: pcf8574_binary_sensor
|
||||
name: PCF Binary Sensor
|
||||
pin:
|
||||
pcf8574: pcf8574_hub
|
||||
number: 1
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
|
||||
output:
|
||||
- platform: gpio
|
||||
id: pcf8574_output
|
||||
pin:
|
||||
pcf8574: pcf8574_hub
|
||||
number: 0
|
||||
mode: OUTPUT
|
||||
inverted: false
|
||||
@@ -0,0 +1,28 @@
|
||||
i2c:
|
||||
- id: i2c_pcf8563
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
pcf8574:
|
||||
- id: pcf8574_hub
|
||||
address: 0x21
|
||||
pcf8575: false
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: pcf8574_binary_sensor
|
||||
name: PCF Binary Sensor
|
||||
pin:
|
||||
pcf8574: pcf8574_hub
|
||||
number: 1
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
|
||||
output:
|
||||
- platform: gpio
|
||||
id: pcf8574_output
|
||||
pin:
|
||||
pcf8574: pcf8574_hub
|
||||
number: 0
|
||||
mode: OUTPUT
|
||||
inverted: false
|
||||
@@ -0,0 +1,56 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- climate.pid.autotune: pid_climate
|
||||
- climate.pid.autotune:
|
||||
id: pid_climate
|
||||
noiseband: 0.25
|
||||
positive_output: 25%
|
||||
negative_output: -25%
|
||||
- climate.pid.set_control_parameters:
|
||||
id: pid_climate
|
||||
kp: 0.0
|
||||
ki: 0.0
|
||||
kd: 0.0
|
||||
- climate.pid.reset_integral_term: pid_climate
|
||||
|
||||
output:
|
||||
- platform: slow_pwm
|
||||
pin: 4
|
||||
id: pid_slow_pwm
|
||||
period: 15s
|
||||
restart_cycle_on_state_change: false
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: template_sensor1
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 42.0;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
update_interval: 60s
|
||||
|
||||
climate:
|
||||
- platform: pid
|
||||
id: pid_climate
|
||||
name: PID Climate Controller
|
||||
sensor: template_sensor1
|
||||
humidity_sensor: template_sensor1
|
||||
default_target_temperature: 21°C
|
||||
heat_output: pid_slow_pwm
|
||||
control_parameters:
|
||||
kp: 0.0
|
||||
ki: 0.0
|
||||
kd: 0.0
|
||||
max_integral: 0.0
|
||||
output_averaging_samples: 1
|
||||
derivative_averaging_samples: 1
|
||||
deadband_parameters:
|
||||
threshold_high: 0.4
|
||||
threshold_low: -2.0
|
||||
kp_multiplier: 0.0
|
||||
ki_multiplier: 0.0
|
||||
kd_multiplier: 0.0
|
||||
deadband_output_averaging_samples: 1
|
||||
@@ -0,0 +1,56 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- climate.pid.autotune: pid_climate
|
||||
- climate.pid.autotune:
|
||||
id: pid_climate
|
||||
noiseband: 0.25
|
||||
positive_output: 25%
|
||||
negative_output: -25%
|
||||
- climate.pid.set_control_parameters:
|
||||
id: pid_climate
|
||||
kp: 0.0
|
||||
ki: 0.0
|
||||
kd: 0.0
|
||||
- climate.pid.reset_integral_term: pid_climate
|
||||
|
||||
output:
|
||||
- platform: slow_pwm
|
||||
pin: 4
|
||||
id: pid_slow_pwm
|
||||
period: 15s
|
||||
restart_cycle_on_state_change: false
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: template_sensor1
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 42.0;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
update_interval: 60s
|
||||
|
||||
climate:
|
||||
- platform: pid
|
||||
id: pid_climate
|
||||
name: PID Climate Controller
|
||||
sensor: template_sensor1
|
||||
humidity_sensor: template_sensor1
|
||||
default_target_temperature: 21°C
|
||||
heat_output: pid_slow_pwm
|
||||
control_parameters:
|
||||
kp: 0.0
|
||||
ki: 0.0
|
||||
kd: 0.0
|
||||
max_integral: 0.0
|
||||
output_averaging_samples: 1
|
||||
derivative_averaging_samples: 1
|
||||
deadband_parameters:
|
||||
threshold_high: 0.4
|
||||
threshold_low: -2.0
|
||||
kp_multiplier: 0.0
|
||||
ki_multiplier: 0.0
|
||||
kd_multiplier: 0.0
|
||||
deadband_output_averaging_samples: 1
|
||||
@@ -0,0 +1,56 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- climate.pid.autotune: pid_climate
|
||||
- climate.pid.autotune:
|
||||
id: pid_climate
|
||||
noiseband: 0.25
|
||||
positive_output: 25%
|
||||
negative_output: -25%
|
||||
- climate.pid.set_control_parameters:
|
||||
id: pid_climate
|
||||
kp: 0.0
|
||||
ki: 0.0
|
||||
kd: 0.0
|
||||
- climate.pid.reset_integral_term: pid_climate
|
||||
|
||||
output:
|
||||
- platform: slow_pwm
|
||||
pin: 4
|
||||
id: pid_slow_pwm
|
||||
period: 15s
|
||||
restart_cycle_on_state_change: false
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: template_sensor1
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 42.0;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
update_interval: 60s
|
||||
|
||||
climate:
|
||||
- platform: pid
|
||||
id: pid_climate
|
||||
name: PID Climate Controller
|
||||
sensor: template_sensor1
|
||||
humidity_sensor: template_sensor1
|
||||
default_target_temperature: 21°C
|
||||
heat_output: pid_slow_pwm
|
||||
control_parameters:
|
||||
kp: 0.0
|
||||
ki: 0.0
|
||||
kd: 0.0
|
||||
max_integral: 0.0
|
||||
output_averaging_samples: 1
|
||||
derivative_averaging_samples: 1
|
||||
deadband_parameters:
|
||||
threshold_high: 0.4
|
||||
threshold_low: -2.0
|
||||
kp_multiplier: 0.0
|
||||
ki_multiplier: 0.0
|
||||
kd_multiplier: 0.0
|
||||
deadband_output_averaging_samples: 1
|
||||
@@ -0,0 +1,56 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- climate.pid.autotune: pid_climate
|
||||
- climate.pid.autotune:
|
||||
id: pid_climate
|
||||
noiseband: 0.25
|
||||
positive_output: 25%
|
||||
negative_output: -25%
|
||||
- climate.pid.set_control_parameters:
|
||||
id: pid_climate
|
||||
kp: 0.0
|
||||
ki: 0.0
|
||||
kd: 0.0
|
||||
- climate.pid.reset_integral_term: pid_climate
|
||||
|
||||
output:
|
||||
- platform: slow_pwm
|
||||
pin: 4
|
||||
id: pid_slow_pwm
|
||||
period: 15s
|
||||
restart_cycle_on_state_change: false
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: template_sensor1
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 42.0;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
update_interval: 60s
|
||||
|
||||
climate:
|
||||
- platform: pid
|
||||
id: pid_climate
|
||||
name: PID Climate Controller
|
||||
sensor: template_sensor1
|
||||
humidity_sensor: template_sensor1
|
||||
default_target_temperature: 21°C
|
||||
heat_output: pid_slow_pwm
|
||||
control_parameters:
|
||||
kp: 0.0
|
||||
ki: 0.0
|
||||
kd: 0.0
|
||||
max_integral: 0.0
|
||||
output_averaging_samples: 1
|
||||
derivative_averaging_samples: 1
|
||||
deadband_parameters:
|
||||
threshold_high: 0.4
|
||||
threshold_low: -2.0
|
||||
kp_multiplier: 0.0
|
||||
ki_multiplier: 0.0
|
||||
kd_multiplier: 0.0
|
||||
deadband_output_averaging_samples: 1
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user