mirror of
https://github.com/esphome/esphome.git
synced 2026-05-29 23:07:16 +08:00
Add some components to the new testing framework (R) (#6219)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
esp32_ble_tracker:
|
||||
|
||||
radon_eye_ble:
|
||||
@@ -0,0 +1,3 @@
|
||||
esp32_ble_tracker:
|
||||
|
||||
radon_eye_ble:
|
||||
@@ -0,0 +1,3 @@
|
||||
esp32_ble_tracker:
|
||||
|
||||
radon_eye_ble:
|
||||
@@ -0,0 +1,3 @@
|
||||
esp32_ble_tracker:
|
||||
|
||||
radon_eye_ble:
|
||||
@@ -0,0 +1,14 @@
|
||||
esp32_ble_tracker:
|
||||
|
||||
ble_client:
|
||||
- mac_address: 01:02:03:04:05:06
|
||||
id: radon_eye_blec
|
||||
|
||||
sensor:
|
||||
- platform: radon_eye_rd200
|
||||
ble_client_id: radon_eye_blec
|
||||
radon:
|
||||
name: RD200 Radon
|
||||
radon_long_term:
|
||||
name: RD200 Radon Long Term
|
||||
update_interval: 10min
|
||||
@@ -0,0 +1,14 @@
|
||||
esp32_ble_tracker:
|
||||
|
||||
ble_client:
|
||||
- mac_address: 01:02:03:04:05:06
|
||||
id: radon_eye_blec
|
||||
|
||||
sensor:
|
||||
- platform: radon_eye_rd200
|
||||
ble_client_id: radon_eye_blec
|
||||
radon:
|
||||
name: RD200 Radon
|
||||
radon_long_term:
|
||||
name: RD200 Radon Long Term
|
||||
update_interval: 10min
|
||||
@@ -0,0 +1,14 @@
|
||||
esp32_ble_tracker:
|
||||
|
||||
ble_client:
|
||||
- mac_address: 01:02:03:04:05:06
|
||||
id: radon_eye_blec
|
||||
|
||||
sensor:
|
||||
- platform: radon_eye_rd200
|
||||
ble_client_id: radon_eye_blec
|
||||
radon:
|
||||
name: RD200 Radon
|
||||
radon_long_term:
|
||||
name: RD200 Radon Long Term
|
||||
update_interval: 10min
|
||||
@@ -0,0 +1,14 @@
|
||||
esp32_ble_tracker:
|
||||
|
||||
ble_client:
|
||||
- mac_address: 01:02:03:04:05:06
|
||||
id: radon_eye_blec
|
||||
|
||||
sensor:
|
||||
- platform: radon_eye_rd200
|
||||
ble_client_id: radon_eye_blec
|
||||
radon:
|
||||
name: RD200 Radon
|
||||
radon_long_term:
|
||||
name: RD200 Radon Long Term
|
||||
update_interval: 10min
|
||||
@@ -0,0 +1,17 @@
|
||||
i2c:
|
||||
- id: i2c_rc522
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
rc522_i2c:
|
||||
- id: rc522_nfcc
|
||||
update_interval: 1s
|
||||
on_tag:
|
||||
- lambda: |-
|
||||
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: RC522 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
@@ -0,0 +1,17 @@
|
||||
i2c:
|
||||
- id: i2c_rc522
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
rc522_i2c:
|
||||
- id: rc522_nfcc
|
||||
update_interval: 1s
|
||||
on_tag:
|
||||
- lambda: |-
|
||||
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: RC522 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
@@ -0,0 +1,17 @@
|
||||
i2c:
|
||||
- id: i2c_rc522
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
rc522_i2c:
|
||||
- id: rc522_nfcc
|
||||
update_interval: 1s
|
||||
on_tag:
|
||||
- lambda: |-
|
||||
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: RC522 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
@@ -0,0 +1,17 @@
|
||||
i2c:
|
||||
- id: i2c_rc522
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
rc522_i2c:
|
||||
- id: rc522_nfcc
|
||||
update_interval: 1s
|
||||
on_tag:
|
||||
- lambda: |-
|
||||
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: RC522 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
@@ -0,0 +1,17 @@
|
||||
i2c:
|
||||
- id: i2c_rc522
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
rc522_i2c:
|
||||
- id: rc522_nfcc
|
||||
update_interval: 1s
|
||||
on_tag:
|
||||
- lambda: |-
|
||||
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: RC522 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
@@ -0,0 +1,17 @@
|
||||
i2c:
|
||||
- id: i2c_rc522
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
rc522_i2c:
|
||||
- id: rc522_nfcc
|
||||
update_interval: 1s
|
||||
on_tag:
|
||||
- lambda: |-
|
||||
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: RC522 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
@@ -0,0 +1,15 @@
|
||||
spi:
|
||||
- id: spi_rc522
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
rc522_spi:
|
||||
id: rc522_nfcc
|
||||
cs_pin: 4
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: PN532 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
@@ -0,0 +1,15 @@
|
||||
spi:
|
||||
- id: spi_rc522
|
||||
clk_pin: 6
|
||||
mosi_pin: 7
|
||||
miso_pin: 5
|
||||
|
||||
rc522_spi:
|
||||
id: rc522_nfcc
|
||||
cs_pin: 4
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: PN532 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
@@ -0,0 +1,15 @@
|
||||
spi:
|
||||
- id: spi_rc522
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
rc522_spi:
|
||||
id: rc522_nfcc
|
||||
cs_pin: 12
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: PN532 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
@@ -0,0 +1,15 @@
|
||||
spi:
|
||||
- id: spi_rc522
|
||||
clk_pin: 16
|
||||
mosi_pin: 17
|
||||
miso_pin: 15
|
||||
|
||||
rc522_spi:
|
||||
id: rc522_nfcc
|
||||
cs_pin: 12
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: PN532 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
@@ -0,0 +1,15 @@
|
||||
spi:
|
||||
- id: spi_rc522
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
miso_pin: 12
|
||||
|
||||
rc522_spi:
|
||||
id: rc522_nfcc
|
||||
cs_pin: 15
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: PN532 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
@@ -0,0 +1,15 @@
|
||||
spi:
|
||||
- id: spi_rc522
|
||||
clk_pin: 2
|
||||
mosi_pin: 3
|
||||
miso_pin: 4
|
||||
|
||||
rc522_spi:
|
||||
id: rc522_nfcc
|
||||
cs_pin: 6
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: PN532 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
@@ -0,0 +1,12 @@
|
||||
uart:
|
||||
- id: uart_rdm6300
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 115200
|
||||
|
||||
rdm6300:
|
||||
|
||||
binary_sensor:
|
||||
- platform: rdm6300
|
||||
uid: 7616525
|
||||
name: RDM6300 NFC Tag
|
||||
@@ -0,0 +1,12 @@
|
||||
uart:
|
||||
- id: uart_rdm6300
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 115200
|
||||
|
||||
rdm6300:
|
||||
|
||||
binary_sensor:
|
||||
- platform: rdm6300
|
||||
uid: 7616525
|
||||
name: RDM6300 NFC Tag
|
||||
@@ -0,0 +1,12 @@
|
||||
uart:
|
||||
- id: uart_rdm6300
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 115200
|
||||
|
||||
rdm6300:
|
||||
|
||||
binary_sensor:
|
||||
- platform: rdm6300
|
||||
uid: 7616525
|
||||
name: RDM6300 NFC Tag
|
||||
@@ -0,0 +1,12 @@
|
||||
uart:
|
||||
- id: uart_rdm6300
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 115200
|
||||
|
||||
rdm6300:
|
||||
|
||||
binary_sensor:
|
||||
- platform: rdm6300
|
||||
uid: 7616525
|
||||
name: RDM6300 NFC Tag
|
||||
@@ -0,0 +1,12 @@
|
||||
uart:
|
||||
- id: uart_rdm6300
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 115200
|
||||
|
||||
rdm6300:
|
||||
|
||||
binary_sensor:
|
||||
- platform: rdm6300
|
||||
uid: 7616525
|
||||
name: RDM6300 NFC Tag
|
||||
@@ -0,0 +1,12 @@
|
||||
uart:
|
||||
- id: uart_rdm6300
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 115200
|
||||
|
||||
rdm6300:
|
||||
|
||||
binary_sensor:
|
||||
- platform: rdm6300
|
||||
uid: 7616525
|
||||
name: RDM6300 NFC Tag
|
||||
@@ -0,0 +1,12 @@
|
||||
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
|
||||
@@ -0,0 +1,12 @@
|
||||
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
|
||||
@@ -0,0 +1,12 @@
|
||||
sensor:
|
||||
- platform: adc
|
||||
id: my_sensor
|
||||
pin: 1
|
||||
attenuation: 11db
|
||||
- platform: resistance
|
||||
sensor: my_sensor
|
||||
configuration: DOWNSTREAM
|
||||
resistor: 10kΩ
|
||||
reference_voltage: 3.3V
|
||||
name: Resistance
|
||||
id: resist
|
||||
@@ -0,0 +1,12 @@
|
||||
sensor:
|
||||
- platform: adc
|
||||
id: my_sensor
|
||||
pin: 1
|
||||
attenuation: 11db
|
||||
- platform: resistance
|
||||
sensor: my_sensor
|
||||
configuration: DOWNSTREAM
|
||||
resistor: 10kΩ
|
||||
reference_voltage: 3.3V
|
||||
name: Resistance
|
||||
id: resist
|
||||
@@ -0,0 +1,12 @@
|
||||
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
|
||||
@@ -0,0 +1,11 @@
|
||||
sensor:
|
||||
- platform: adc
|
||||
id: my_sensor
|
||||
pin: VCC
|
||||
- platform: resistance
|
||||
sensor: my_sensor
|
||||
configuration: DOWNSTREAM
|
||||
resistor: 10kΩ
|
||||
reference_voltage: 3.3V
|
||||
name: Resistance
|
||||
id: resist
|
||||
@@ -0,0 +1,12 @@
|
||||
sensor:
|
||||
- platform: adc
|
||||
id: my_sensor
|
||||
name: VSYS
|
||||
pin: VCC
|
||||
- platform: resistance
|
||||
sensor: my_sensor
|
||||
configuration: DOWNSTREAM
|
||||
resistor: 10kΩ
|
||||
reference_voltage: 3.3V
|
||||
name: Resistance
|
||||
id: resist
|
||||
@@ -0,0 +1,7 @@
|
||||
button:
|
||||
- platform: restart
|
||||
name: Restart Button
|
||||
|
||||
switch:
|
||||
- platform: restart
|
||||
name: Restart Switch
|
||||
@@ -0,0 +1,7 @@
|
||||
button:
|
||||
- platform: restart
|
||||
name: Restart Button
|
||||
|
||||
switch:
|
||||
- platform: restart
|
||||
name: Restart Switch
|
||||
@@ -0,0 +1,7 @@
|
||||
button:
|
||||
- platform: restart
|
||||
name: Restart Button
|
||||
|
||||
switch:
|
||||
- platform: restart
|
||||
name: Restart Switch
|
||||
@@ -0,0 +1,7 @@
|
||||
button:
|
||||
- platform: restart
|
||||
name: Restart Button
|
||||
|
||||
switch:
|
||||
- platform: restart
|
||||
name: Restart Switch
|
||||
@@ -0,0 +1,7 @@
|
||||
button:
|
||||
- platform: restart
|
||||
name: Restart Button
|
||||
|
||||
switch:
|
||||
- platform: restart
|
||||
name: Restart Switch
|
||||
@@ -0,0 +1,7 @@
|
||||
button:
|
||||
- platform: restart
|
||||
name: Restart Button
|
||||
|
||||
switch:
|
||||
- platform: restart
|
||||
name: Restart Switch
|
||||
@@ -0,0 +1,35 @@
|
||||
uart:
|
||||
- id: uart_rf_bridge
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 115200
|
||||
|
||||
rf_bridge:
|
||||
on_code_received:
|
||||
- lambda: |-
|
||||
uint32_t test;
|
||||
test = data.sync;
|
||||
test = data.low;
|
||||
test = data.high;
|
||||
test = data.code;
|
||||
- rf_bridge.send_code:
|
||||
sync: 0x1234
|
||||
low: 0x1234
|
||||
high: 0x1234
|
||||
code: 0x123456
|
||||
- rf_bridge.learn
|
||||
on_advanced_code_received:
|
||||
- lambda: |-
|
||||
uint32_t test;
|
||||
std::string test_code;
|
||||
test = data.length;
|
||||
test = data.protocol;
|
||||
test_code = data.code;
|
||||
- rf_bridge.start_advanced_sniffing:
|
||||
- rf_bridge.stop_advanced_sniffing:
|
||||
- rf_bridge.send_advanced_code:
|
||||
length: 0x04
|
||||
protocol: 0x01
|
||||
code: "ABC123"
|
||||
- rf_bridge.send_raw:
|
||||
raw: "AAA5070008001000ABC12355"
|
||||
@@ -0,0 +1,35 @@
|
||||
uart:
|
||||
- id: uart_rf_bridge
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 115200
|
||||
|
||||
rf_bridge:
|
||||
on_code_received:
|
||||
- lambda: |-
|
||||
uint32_t test;
|
||||
test = data.sync;
|
||||
test = data.low;
|
||||
test = data.high;
|
||||
test = data.code;
|
||||
- rf_bridge.send_code:
|
||||
sync: 0x1234
|
||||
low: 0x1234
|
||||
high: 0x1234
|
||||
code: 0x123456
|
||||
- rf_bridge.learn
|
||||
on_advanced_code_received:
|
||||
- lambda: |-
|
||||
uint32_t test;
|
||||
std::string test_code;
|
||||
test = data.length;
|
||||
test = data.protocol;
|
||||
test_code = data.code;
|
||||
- rf_bridge.start_advanced_sniffing:
|
||||
- rf_bridge.stop_advanced_sniffing:
|
||||
- rf_bridge.send_advanced_code:
|
||||
length: 0x04
|
||||
protocol: 0x01
|
||||
code: "ABC123"
|
||||
- rf_bridge.send_raw:
|
||||
raw: "AAA5070008001000ABC12355"
|
||||
@@ -0,0 +1,35 @@
|
||||
uart:
|
||||
- id: uart_rf_bridge
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 115200
|
||||
|
||||
rf_bridge:
|
||||
on_code_received:
|
||||
- lambda: |-
|
||||
uint32_t test;
|
||||
test = data.sync;
|
||||
test = data.low;
|
||||
test = data.high;
|
||||
test = data.code;
|
||||
- rf_bridge.send_code:
|
||||
sync: 0x1234
|
||||
low: 0x1234
|
||||
high: 0x1234
|
||||
code: 0x123456
|
||||
- rf_bridge.learn
|
||||
on_advanced_code_received:
|
||||
- lambda: |-
|
||||
uint32_t test;
|
||||
std::string test_code;
|
||||
test = data.length;
|
||||
test = data.protocol;
|
||||
test_code = data.code;
|
||||
- rf_bridge.start_advanced_sniffing:
|
||||
- rf_bridge.stop_advanced_sniffing:
|
||||
- rf_bridge.send_advanced_code:
|
||||
length: 0x04
|
||||
protocol: 0x01
|
||||
code: "ABC123"
|
||||
- rf_bridge.send_raw:
|
||||
raw: "AAA5070008001000ABC12355"
|
||||
@@ -0,0 +1,35 @@
|
||||
uart:
|
||||
- id: uart_rf_bridge
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 115200
|
||||
|
||||
rf_bridge:
|
||||
on_code_received:
|
||||
- lambda: |-
|
||||
uint32_t test;
|
||||
test = data.sync;
|
||||
test = data.low;
|
||||
test = data.high;
|
||||
test = data.code;
|
||||
- rf_bridge.send_code:
|
||||
sync: 0x1234
|
||||
low: 0x1234
|
||||
high: 0x1234
|
||||
code: 0x123456
|
||||
- rf_bridge.learn
|
||||
on_advanced_code_received:
|
||||
- lambda: |-
|
||||
uint32_t test;
|
||||
std::string test_code;
|
||||
test = data.length;
|
||||
test = data.protocol;
|
||||
test_code = data.code;
|
||||
- rf_bridge.start_advanced_sniffing:
|
||||
- rf_bridge.stop_advanced_sniffing:
|
||||
- rf_bridge.send_advanced_code:
|
||||
length: 0x04
|
||||
protocol: 0x01
|
||||
code: "ABC123"
|
||||
- rf_bridge.send_raw:
|
||||
raw: "AAA5070008001000ABC12355"
|
||||
@@ -0,0 +1,35 @@
|
||||
uart:
|
||||
- id: uart_rf_bridge
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 115200
|
||||
|
||||
rf_bridge:
|
||||
on_code_received:
|
||||
- lambda: |-
|
||||
uint32_t test;
|
||||
test = data.sync;
|
||||
test = data.low;
|
||||
test = data.high;
|
||||
test = data.code;
|
||||
- rf_bridge.send_code:
|
||||
sync: 0x1234
|
||||
low: 0x1234
|
||||
high: 0x1234
|
||||
code: 0x123456
|
||||
- rf_bridge.learn
|
||||
on_advanced_code_received:
|
||||
- lambda: |-
|
||||
uint32_t test;
|
||||
std::string test_code;
|
||||
test = data.length;
|
||||
test = data.protocol;
|
||||
test_code = data.code;
|
||||
- rf_bridge.start_advanced_sniffing:
|
||||
- rf_bridge.stop_advanced_sniffing:
|
||||
- rf_bridge.send_advanced_code:
|
||||
length: 0x04
|
||||
protocol: 0x01
|
||||
code: "ABC123"
|
||||
- rf_bridge.send_raw:
|
||||
raw: "AAA5070008001000ABC12355"
|
||||
@@ -0,0 +1,35 @@
|
||||
uart:
|
||||
- id: uart_rf_bridge
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 115200
|
||||
|
||||
rf_bridge:
|
||||
on_code_received:
|
||||
- lambda: |-
|
||||
uint32_t test;
|
||||
test = data.sync;
|
||||
test = data.low;
|
||||
test = data.high;
|
||||
test = data.code;
|
||||
- rf_bridge.send_code:
|
||||
sync: 0x1234
|
||||
low: 0x1234
|
||||
high: 0x1234
|
||||
code: 0x123456
|
||||
- rf_bridge.learn
|
||||
on_advanced_code_received:
|
||||
- lambda: |-
|
||||
uint32_t test;
|
||||
std::string test_code;
|
||||
test = data.length;
|
||||
test = data.protocol;
|
||||
test_code = data.code;
|
||||
- rf_bridge.start_advanced_sniffing:
|
||||
- rf_bridge.stop_advanced_sniffing:
|
||||
- rf_bridge.send_advanced_code:
|
||||
length: 0x04
|
||||
protocol: 0x01
|
||||
code: "ABC123"
|
||||
- rf_bridge.send_raw:
|
||||
raw: "AAA5070008001000ABC12355"
|
||||
@@ -0,0 +1,18 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 1
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 2
|
||||
- platform: ledc
|
||||
id: light_output_3
|
||||
pin: 3
|
||||
|
||||
light:
|
||||
- platform: rgb
|
||||
name: RGB Light
|
||||
id: rgb_light
|
||||
red: light_output_1
|
||||
green: light_output_2
|
||||
blue: light_output_3
|
||||
@@ -0,0 +1,18 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 1
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 2
|
||||
- platform: ledc
|
||||
id: light_output_3
|
||||
pin: 3
|
||||
|
||||
light:
|
||||
- platform: rgb
|
||||
name: RGB Light
|
||||
id: rgb_light
|
||||
red: light_output_1
|
||||
green: light_output_2
|
||||
blue: light_output_3
|
||||
@@ -0,0 +1,18 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 12
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 13
|
||||
- platform: ledc
|
||||
id: light_output_3
|
||||
pin: 14
|
||||
|
||||
light:
|
||||
- platform: rgb
|
||||
name: RGB Light
|
||||
id: rgb_light
|
||||
red: light_output_1
|
||||
green: light_output_2
|
||||
blue: light_output_3
|
||||
@@ -0,0 +1,18 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 12
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 13
|
||||
- platform: ledc
|
||||
id: light_output_3
|
||||
pin: 14
|
||||
|
||||
light:
|
||||
- platform: rgb
|
||||
name: RGB Light
|
||||
id: rgb_light
|
||||
red: light_output_1
|
||||
green: light_output_2
|
||||
blue: light_output_3
|
||||
@@ -0,0 +1,18 @@
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
id: light_output_1
|
||||
pin: 12
|
||||
- platform: esp8266_pwm
|
||||
id: light_output_2
|
||||
pin: 13
|
||||
- platform: esp8266_pwm
|
||||
id: light_output_3
|
||||
pin: 14
|
||||
|
||||
light:
|
||||
- platform: rgb
|
||||
name: RGB Light
|
||||
id: rgb_light
|
||||
red: light_output_1
|
||||
green: light_output_2
|
||||
blue: light_output_3
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user