mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 14:43:51 +00:00
Merge branch 'dev' into gsm
This commit is contained in:
@@ -26,8 +26,16 @@ climate:
|
||||
name: My Bedjet
|
||||
bedjet_id: bedjet_hub
|
||||
heat_mode: extended
|
||||
temperature_source: ambient
|
||||
|
||||
fan:
|
||||
- platform: bedjet
|
||||
name: My Bedjet fan
|
||||
bedjet_id: bedjet_hub
|
||||
|
||||
sensor:
|
||||
- platform: bedjet
|
||||
ambient_temperature:
|
||||
name: My BedJet Ambient Temperature
|
||||
outlet_temperature:
|
||||
name: My BedJet Outlet Temperature
|
||||
|
||||
7
tests/components/beken_spi_led_strip/test.bk72xx.yaml
Normal file
7
tests/components/beken_spi_led_strip/test.bk72xx.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
light:
|
||||
- platform: beken_spi_led_strip
|
||||
rgb_order: GRB
|
||||
pin: P16
|
||||
num_leds: 30
|
||||
chipset: ws2812
|
||||
name: "My Light"
|
||||
@@ -1,13 +0,0 @@
|
||||
i2c:
|
||||
- id: i2c_ens160
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ens160
|
||||
eco2:
|
||||
name: ENS160 eCO2
|
||||
tvoc:
|
||||
name: ENS160 Total Volatile Organic Compounds
|
||||
aqi:
|
||||
name: ENS160 Air Quality Index
|
||||
@@ -1,13 +0,0 @@
|
||||
i2c:
|
||||
- id: i2c_ens160
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ens160
|
||||
eco2:
|
||||
name: ENS160 eCO2
|
||||
tvoc:
|
||||
name: ENS160 Total Volatile Organic Compounds
|
||||
aqi:
|
||||
name: ENS160 Air Quality Index
|
||||
@@ -1,13 +0,0 @@
|
||||
i2c:
|
||||
- id: i2c_ens160
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: ens160
|
||||
eco2:
|
||||
name: ENS160 eCO2
|
||||
tvoc:
|
||||
name: ENS160 Total Volatile Organic Compounds
|
||||
aqi:
|
||||
name: ENS160 Air Quality Index
|
||||
@@ -1,13 +0,0 @@
|
||||
i2c:
|
||||
- id: i2c_ens160
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: ens160
|
||||
eco2:
|
||||
name: ENS160 eCO2
|
||||
tvoc:
|
||||
name: ENS160 Total Volatile Organic Compounds
|
||||
aqi:
|
||||
name: ENS160 Air Quality Index
|
||||
@@ -1,13 +0,0 @@
|
||||
i2c:
|
||||
- id: i2c_ens160
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ens160
|
||||
eco2:
|
||||
name: ENS160 eCO2
|
||||
tvoc:
|
||||
name: ENS160 Total Volatile Organic Compounds
|
||||
aqi:
|
||||
name: ENS160 Air Quality Index
|
||||
@@ -1,13 +0,0 @@
|
||||
i2c:
|
||||
- id: i2c_ens160
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: ens160
|
||||
eco2:
|
||||
name: ENS160 eCO2
|
||||
tvoc:
|
||||
name: ENS160 Total Volatile Organic Compounds
|
||||
aqi:
|
||||
name: ENS160 Air Quality Index
|
||||
15
tests/components/ens160_i2c/common.yaml
Normal file
15
tests/components/ens160_i2c/common.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
i2c:
|
||||
- id: i2c_ens160
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: ens160_i2c
|
||||
i2c_id: i2c_ens160
|
||||
address: 0x53
|
||||
eco2:
|
||||
name: "ENS160 eCO2"
|
||||
tvoc:
|
||||
name: "ENS160 Total Volatile Organic Compounds"
|
||||
aqi:
|
||||
name: "ENS160 Air Quality Index"
|
||||
5
tests/components/ens160_i2c/test.esp32-c3-idf.yaml
Normal file
5
tests/components/ens160_i2c/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
||||
5
tests/components/ens160_i2c/test.esp32-c3.yaml
Normal file
5
tests/components/ens160_i2c/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
||||
5
tests/components/ens160_i2c/test.esp32-idf.yaml
Normal file
5
tests/components/ens160_i2c/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
||||
5
tests/components/ens160_i2c/test.esp32.yaml
Normal file
5
tests/components/ens160_i2c/test.esp32.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
||||
5
tests/components/ens160_i2c/test.esp8266.yaml
Normal file
5
tests/components/ens160_i2c/test.esp8266.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
||||
5
tests/components/ens160_i2c/test.rp2040.yaml
Normal file
5
tests/components/ens160_i2c/test.rp2040.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
||||
17
tests/components/ens160_spi/common.yaml
Normal file
17
tests/components/ens160_spi/common.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
spi:
|
||||
- id: spi_ens160
|
||||
clk_pin: ${clk_pin}
|
||||
mosi_pin: ${mosi_pin}
|
||||
miso_pin: ${miso_pin}
|
||||
|
||||
sensor:
|
||||
- platform: ens160_spi
|
||||
spi_id: spi_ens160
|
||||
cs_pin: ${cs_pin}
|
||||
eco2:
|
||||
name: "ENS160 eCO2"
|
||||
tvoc:
|
||||
name: "ENS160 Total Volatile Organic Compounds"
|
||||
aqi:
|
||||
name: "ENS160 Air Quality Index"
|
||||
|
||||
7
tests/components/ens160_spi/test.esp32-c3-idf.yaml
Normal file
7
tests/components/ens160_spi/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
miso_pin: GPIO5
|
||||
cs_pin: GPIO8
|
||||
|
||||
<<: !include common.yaml
|
||||
7
tests/components/ens160_spi/test.esp32-c3.yaml
Normal file
7
tests/components/ens160_spi/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
miso_pin: GPIO5
|
||||
cs_pin: GPIO8
|
||||
|
||||
<<: !include common.yaml
|
||||
7
tests/components/ens160_spi/test.esp32-idf.yaml
Normal file
7
tests/components/ens160_spi/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO16
|
||||
mosi_pin: GPIO17
|
||||
miso_pin: GPIO15
|
||||
cs_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
||||
7
tests/components/ens160_spi/test.esp32.yaml
Normal file
7
tests/components/ens160_spi/test.esp32.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO16
|
||||
mosi_pin: GPIO17
|
||||
miso_pin: GPIO15
|
||||
cs_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
||||
7
tests/components/ens160_spi/test.esp8266.yaml
Normal file
7
tests/components/ens160_spi/test.esp8266.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO14
|
||||
mosi_pin: GPIO13
|
||||
miso_pin: GPIO12
|
||||
cs_pin: GPIO15
|
||||
|
||||
<<: !include common.yaml
|
||||
7
tests/components/ens160_spi/test.rp2040.yaml
Normal file
7
tests/components/ens160_spi/test.rp2040.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO2
|
||||
mosi_pin: GPIO3
|
||||
miso_pin: GPIO4
|
||||
cs_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
||||
@@ -93,3 +93,21 @@ binary_sensor:
|
||||
name: Haier Indoor Fan Status
|
||||
outdoor_fan_status:
|
||||
name: Haier Outdoor Fan Status
|
||||
|
||||
button:
|
||||
- platform: haier
|
||||
haier_id: haier_ac
|
||||
self_cleaning:
|
||||
name: Haier start self cleaning
|
||||
steri_cleaning:
|
||||
name: Haier start 56°C steri-cleaning
|
||||
|
||||
text_sensor:
|
||||
- platform: haier
|
||||
haier_id: haier_ac
|
||||
appliance_name:
|
||||
name: Haier appliance name
|
||||
cleaning_status:
|
||||
name: Haier cleaning status
|
||||
protocol_version:
|
||||
name: Haier protocol version
|
||||
|
||||
@@ -93,3 +93,21 @@ binary_sensor:
|
||||
name: Haier Indoor Fan Status
|
||||
outdoor_fan_status:
|
||||
name: Haier Outdoor Fan Status
|
||||
|
||||
button:
|
||||
- platform: haier
|
||||
haier_id: haier_ac
|
||||
self_cleaning:
|
||||
name: Haier start self cleaning
|
||||
steri_cleaning:
|
||||
name: Haier start 56°C steri-cleaning
|
||||
|
||||
text_sensor:
|
||||
- platform: haier
|
||||
haier_id: haier_ac
|
||||
appliance_name:
|
||||
name: Haier appliance name
|
||||
cleaning_status:
|
||||
name: Haier cleaning status
|
||||
protocol_version:
|
||||
name: Haier protocol version
|
||||
|
||||
@@ -93,3 +93,21 @@ binary_sensor:
|
||||
name: Haier Indoor Fan Status
|
||||
outdoor_fan_status:
|
||||
name: Haier Outdoor Fan Status
|
||||
|
||||
button:
|
||||
- platform: haier
|
||||
haier_id: haier_ac
|
||||
self_cleaning:
|
||||
name: Haier start self cleaning
|
||||
steri_cleaning:
|
||||
name: Haier start 56°C steri-cleaning
|
||||
|
||||
text_sensor:
|
||||
- platform: haier
|
||||
haier_id: haier_ac
|
||||
appliance_name:
|
||||
name: Haier appliance name
|
||||
cleaning_status:
|
||||
name: Haier cleaning status
|
||||
protocol_version:
|
||||
name: Haier protocol version
|
||||
|
||||
@@ -93,3 +93,21 @@ binary_sensor:
|
||||
name: Haier Indoor Fan Status
|
||||
outdoor_fan_status:
|
||||
name: Haier Outdoor Fan Status
|
||||
|
||||
button:
|
||||
- platform: haier
|
||||
haier_id: haier_ac
|
||||
self_cleaning:
|
||||
name: Haier start self cleaning
|
||||
steri_cleaning:
|
||||
name: Haier start 56°C steri-cleaning
|
||||
|
||||
text_sensor:
|
||||
- platform: haier
|
||||
haier_id: haier_ac
|
||||
appliance_name:
|
||||
name: Haier appliance name
|
||||
cleaning_status:
|
||||
name: Haier cleaning status
|
||||
protocol_version:
|
||||
name: Haier protocol version
|
||||
|
||||
@@ -93,3 +93,21 @@ binary_sensor:
|
||||
name: Haier Indoor Fan Status
|
||||
outdoor_fan_status:
|
||||
name: Haier Outdoor Fan Status
|
||||
|
||||
button:
|
||||
- platform: haier
|
||||
haier_id: haier_ac
|
||||
self_cleaning:
|
||||
name: Haier start self cleaning
|
||||
steri_cleaning:
|
||||
name: Haier start 56°C steri-cleaning
|
||||
|
||||
text_sensor:
|
||||
- platform: haier
|
||||
haier_id: haier_ac
|
||||
appliance_name:
|
||||
name: Haier appliance name
|
||||
cleaning_status:
|
||||
name: Haier cleaning status
|
||||
protocol_version:
|
||||
name: Haier protocol version
|
||||
|
||||
@@ -93,3 +93,21 @@ binary_sensor:
|
||||
name: Haier Indoor Fan Status
|
||||
outdoor_fan_status:
|
||||
name: Haier Outdoor Fan Status
|
||||
|
||||
button:
|
||||
- platform: haier
|
||||
haier_id: haier_ac
|
||||
self_cleaning:
|
||||
name: Haier start self cleaning
|
||||
steri_cleaning:
|
||||
name: Haier start 56°C steri-cleaning
|
||||
|
||||
text_sensor:
|
||||
- platform: haier
|
||||
haier_id: haier_ac
|
||||
appliance_name:
|
||||
name: Haier appliance name
|
||||
cleaning_status:
|
||||
name: Haier cleaning status
|
||||
protocol_version:
|
||||
name: Haier protocol version
|
||||
|
||||
@@ -12,24 +12,12 @@ display:
|
||||
swap_xy: true
|
||||
mirror_x: true
|
||||
mirror_y: false
|
||||
model: TFT 2.4
|
||||
color_palette: GRAYSCALE
|
||||
model: custom
|
||||
cs_pin: 12
|
||||
dc_pin: 13
|
||||
reset_pin: 14
|
||||
init_sequence:
|
||||
- [0xFF, 0x77, 0x01, 0x00, 0x00, 0x10]
|
||||
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- platform: ili9xxx
|
||||
dimensions:
|
||||
width: 320
|
||||
height: 240
|
||||
offset_width: 20
|
||||
offset_height: 10
|
||||
model: TFT 2.4
|
||||
cs_pin: 25
|
||||
dc_pin: 26
|
||||
reset_pin: 27
|
||||
auto_clear_enabled: false
|
||||
rotation: 90
|
||||
lambda: |-
|
||||
it.fill(Color::WHITE);
|
||||
|
||||
20
tests/components/ina2xx_i2c/common.yaml
Normal file
20
tests/components/ina2xx_i2c/common.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
i2c:
|
||||
- id: i2c_ina2xx
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: ina2xx_i2c
|
||||
i2c_id: i2c_ina2xx
|
||||
address: 0x40
|
||||
model: INA228
|
||||
shunt_resistance: 0.001130 ohm
|
||||
max_current: 40 A
|
||||
adc_range: 1
|
||||
temperature_coefficient: 50
|
||||
shunt_voltage: "INA2xx Shunt Voltage"
|
||||
bus_voltage: "INA2xx Bus Voltage"
|
||||
current: "INA2xx Current"
|
||||
power: "INA2xx Power"
|
||||
energy: "INA2xx Energy"
|
||||
charge: "INA2xx Charge"
|
||||
5
tests/components/ina2xx_i2c/test.esp32-c3-idf.yaml
Normal file
5
tests/components/ina2xx_i2c/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
||||
5
tests/components/ina2xx_i2c/test.esp32-c3.yaml
Normal file
5
tests/components/ina2xx_i2c/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
||||
5
tests/components/ina2xx_i2c/test.esp32-idf.yaml
Normal file
5
tests/components/ina2xx_i2c/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
||||
5
tests/components/ina2xx_i2c/test.esp32.yaml
Normal file
5
tests/components/ina2xx_i2c/test.esp32.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
||||
5
tests/components/ina2xx_i2c/test.esp8266.yaml
Normal file
5
tests/components/ina2xx_i2c/test.esp8266.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
||||
5
tests/components/ina2xx_i2c/test.rp2040.yaml
Normal file
5
tests/components/ina2xx_i2c/test.rp2040.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
||||
21
tests/components/ina2xx_spi/common.yaml
Normal file
21
tests/components/ina2xx_spi/common.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
spi:
|
||||
- id: spi_ina2xx
|
||||
clk_pin: ${clk_pin}
|
||||
mosi_pin: ${mosi_pin}
|
||||
miso_pin: ${miso_pin}
|
||||
|
||||
sensor:
|
||||
- platform: ina2xx_spi
|
||||
spi_id: spi_ina2xx
|
||||
cs_pin: ${cs_pin}
|
||||
model: INA229
|
||||
shunt_resistance: 0.001130 ohm
|
||||
max_current: 40 A
|
||||
adc_range: 1
|
||||
temperature_coefficient: 50
|
||||
shunt_voltage: "INA2xx Shunt Voltage"
|
||||
bus_voltage: "INA2xx Bus Voltage"
|
||||
current: "INA2xx Current"
|
||||
power: "INA2xx Power"
|
||||
energy: "INA2xx Energy"
|
||||
charge: "INA2xx Charge"
|
||||
7
tests/components/ina2xx_spi/test.esp32-c3-idf.yaml
Normal file
7
tests/components/ina2xx_spi/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
miso_pin: GPIO5
|
||||
cs_pin: GPIO8
|
||||
|
||||
<<: !include common.yaml
|
||||
7
tests/components/ina2xx_spi/test.esp32-c3.yaml
Normal file
7
tests/components/ina2xx_spi/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
miso_pin: GPIO5
|
||||
cs_pin: GPIO8
|
||||
|
||||
<<: !include common.yaml
|
||||
7
tests/components/ina2xx_spi/test.esp32-idf.yaml
Normal file
7
tests/components/ina2xx_spi/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO16
|
||||
mosi_pin: GPIO17
|
||||
miso_pin: GPIO15
|
||||
cs_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
||||
7
tests/components/ina2xx_spi/test.esp32.yaml
Normal file
7
tests/components/ina2xx_spi/test.esp32.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO16
|
||||
mosi_pin: GPIO17
|
||||
miso_pin: GPIO15
|
||||
cs_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
||||
7
tests/components/ina2xx_spi/test.esp8266.yaml
Normal file
7
tests/components/ina2xx_spi/test.esp8266.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO14
|
||||
mosi_pin: GPIO13
|
||||
miso_pin: GPIO12
|
||||
cs_pin: GPIO15
|
||||
|
||||
<<: !include common.yaml
|
||||
7
tests/components/ina2xx_spi/test.rp2040.yaml
Normal file
7
tests/components/ina2xx_spi/test.rp2040.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO2
|
||||
mosi_pin: GPIO3
|
||||
miso_pin: GPIO4
|
||||
cs_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
||||
@@ -1,14 +1,30 @@
|
||||
uart:
|
||||
- id: uart_modbus
|
||||
- id: uart_modbus_client
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 9600
|
||||
- id: uart_modbus_server
|
||||
tx_pin: 1
|
||||
rx_pin: 3
|
||||
baud_rate: 9600
|
||||
|
||||
modbus:
|
||||
id: mod_bus1
|
||||
flow_control_pin: 15
|
||||
- id: mod_bus1
|
||||
uart_id: uart_modbus_client
|
||||
flow_control_pin: 15
|
||||
- id: mod_bus2
|
||||
uart_id: uart_modbus_server
|
||||
role: server
|
||||
|
||||
modbus_controller:
|
||||
- id: modbus_controller1
|
||||
address: 0x2
|
||||
modbus_id: mod_bus1
|
||||
- id: modbus_controller2
|
||||
address: 0x2
|
||||
modbus_id: mod_bus2
|
||||
server_registers:
|
||||
- address: 0x0000
|
||||
value_type: S_DWORD_R
|
||||
read_lambda: |-
|
||||
return 42.3;
|
||||
|
||||
41
tests/components/mpr121/common.yaml
Normal file
41
tests/components/mpr121/common.yaml
Normal file
@@ -0,0 +1,41 @@
|
||||
i2c:
|
||||
- id: i2c_mpr121
|
||||
scl: ${i2c_scl}
|
||||
sda: ${i2c_sda}
|
||||
|
||||
mpr121:
|
||||
id: mpr121_first
|
||||
address: 0x5A
|
||||
|
||||
binary_sensor:
|
||||
- platform: mpr121
|
||||
id: touchkey0
|
||||
name: touchkey0
|
||||
channel: 0
|
||||
- platform: mpr121
|
||||
id: bin1
|
||||
name: touchkey1
|
||||
channel: 1
|
||||
- platform: mpr121
|
||||
id: bin2
|
||||
name: touchkey2
|
||||
channel: 2
|
||||
- platform: mpr121
|
||||
id: bin3
|
||||
name: touchkey3
|
||||
channel: 6
|
||||
|
||||
output:
|
||||
- platform: gpio
|
||||
id: gpio1
|
||||
pin:
|
||||
mpr121: mpr121_first
|
||||
number: 7
|
||||
mode: OUTPUT
|
||||
- platform: gpio
|
||||
id: gpio2
|
||||
pin:
|
||||
mpr121: mpr121_first
|
||||
number: 11
|
||||
mode: OUTPUT
|
||||
inverted: true
|
||||
@@ -1,26 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_mpr121
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
i2c_scl: GPIO5
|
||||
i2c_sda: GPIO4
|
||||
|
||||
mpr121:
|
||||
id: mpr121_first
|
||||
address: 0x5A
|
||||
|
||||
binary_sensor:
|
||||
- platform: mpr121
|
||||
id: touchkey0
|
||||
name: touchkey0
|
||||
channel: 0
|
||||
- platform: mpr121
|
||||
id: bin1
|
||||
name: touchkey1
|
||||
channel: 1
|
||||
- platform: mpr121
|
||||
id: bin2
|
||||
name: touchkey2
|
||||
channel: 2
|
||||
- platform: mpr121
|
||||
id: bin3
|
||||
name: touchkey3
|
||||
channel: 3
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,26 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_mpr121
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
i2c_scl: GPIO5
|
||||
i2c_sda: GPIO4
|
||||
|
||||
mpr121:
|
||||
id: mpr121_first
|
||||
address: 0x5A
|
||||
|
||||
binary_sensor:
|
||||
- platform: mpr121
|
||||
id: touchkey0
|
||||
name: touchkey0
|
||||
channel: 0
|
||||
- platform: mpr121
|
||||
id: bin1
|
||||
name: touchkey1
|
||||
channel: 1
|
||||
- platform: mpr121
|
||||
id: bin2
|
||||
name: touchkey2
|
||||
channel: 2
|
||||
- platform: mpr121
|
||||
id: bin3
|
||||
name: touchkey3
|
||||
channel: 3
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,26 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_mpr121
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
i2c_scl: GPIO16
|
||||
i2c_sda: GPIO17
|
||||
|
||||
mpr121:
|
||||
id: mpr121_first
|
||||
address: 0x5A
|
||||
|
||||
binary_sensor:
|
||||
- platform: mpr121
|
||||
id: touchkey0
|
||||
name: touchkey0
|
||||
channel: 0
|
||||
- platform: mpr121
|
||||
id: bin1
|
||||
name: touchkey1
|
||||
channel: 1
|
||||
- platform: mpr121
|
||||
id: bin2
|
||||
name: touchkey2
|
||||
channel: 2
|
||||
- platform: mpr121
|
||||
id: bin3
|
||||
name: touchkey3
|
||||
channel: 3
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,26 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_mpr121
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
i2c_scl: GPIO16
|
||||
i2c_sda: GPIO17
|
||||
|
||||
mpr121:
|
||||
id: mpr121_first
|
||||
address: 0x5A
|
||||
|
||||
binary_sensor:
|
||||
- platform: mpr121
|
||||
id: touchkey0
|
||||
name: touchkey0
|
||||
channel: 0
|
||||
- platform: mpr121
|
||||
id: bin1
|
||||
name: touchkey1
|
||||
channel: 1
|
||||
- platform: mpr121
|
||||
id: bin2
|
||||
name: touchkey2
|
||||
channel: 2
|
||||
- platform: mpr121
|
||||
id: bin3
|
||||
name: touchkey3
|
||||
channel: 3
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,26 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_mpr121
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
i2c_scl: GPIO5
|
||||
i2c_sda: GPIO4
|
||||
|
||||
mpr121:
|
||||
id: mpr121_first
|
||||
address: 0x5A
|
||||
|
||||
binary_sensor:
|
||||
- platform: mpr121
|
||||
id: touchkey0
|
||||
name: touchkey0
|
||||
channel: 0
|
||||
- platform: mpr121
|
||||
id: bin1
|
||||
name: touchkey1
|
||||
channel: 1
|
||||
- platform: mpr121
|
||||
id: bin2
|
||||
name: touchkey2
|
||||
channel: 2
|
||||
- platform: mpr121
|
||||
id: bin3
|
||||
name: touchkey3
|
||||
channel: 3
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,26 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_mpr121
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
i2c_scl: GPIO5
|
||||
i2c_sda: GPIO4
|
||||
|
||||
mpr121:
|
||||
id: mpr121_first
|
||||
address: 0x5A
|
||||
|
||||
binary_sensor:
|
||||
- platform: mpr121
|
||||
id: touchkey0
|
||||
name: touchkey0
|
||||
channel: 0
|
||||
- platform: mpr121
|
||||
id: bin1
|
||||
name: touchkey1
|
||||
channel: 1
|
||||
- platform: mpr121
|
||||
id: bin2
|
||||
name: touchkey2
|
||||
channel: 2
|
||||
- platform: mpr121
|
||||
id: bin3
|
||||
name: touchkey3
|
||||
channel: 3
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -3,28 +3,26 @@ wifi:
|
||||
password: password1
|
||||
|
||||
ota:
|
||||
safe_mode: true
|
||||
password: "superlongpasswordthatnoonewillknow"
|
||||
port: 3286
|
||||
reboot_timeout: 2min
|
||||
num_attempts: 5
|
||||
on_begin:
|
||||
then:
|
||||
- logger.log: "OTA start"
|
||||
on_progress:
|
||||
then:
|
||||
- logger.log:
|
||||
format: "OTA progress %0.1f%%"
|
||||
args: ["x"]
|
||||
on_end:
|
||||
then:
|
||||
- logger.log: "OTA end"
|
||||
on_error:
|
||||
then:
|
||||
- logger.log:
|
||||
format: "OTA update error %d"
|
||||
args: ["x"]
|
||||
on_state_change:
|
||||
then:
|
||||
lambda: >-
|
||||
ESP_LOGD("ota", "State %d", state);
|
||||
- platform: esphome
|
||||
password: "superlongpasswordthatnoonewillknow"
|
||||
port: 3286
|
||||
on_begin:
|
||||
then:
|
||||
- logger.log: "OTA start"
|
||||
on_progress:
|
||||
then:
|
||||
- logger.log:
|
||||
format: "OTA progress %0.1f%%"
|
||||
args: ["x"]
|
||||
on_end:
|
||||
then:
|
||||
- logger.log: "OTA end"
|
||||
on_error:
|
||||
then:
|
||||
- logger.log:
|
||||
format: "OTA update error %d"
|
||||
args: ["x"]
|
||||
on_state_change:
|
||||
then:
|
||||
lambda: >-
|
||||
ESP_LOGD("ota", "State %d", state);
|
||||
|
||||
@@ -3,6 +3,7 @@ remote_receiver:
|
||||
pin: ${pin}
|
||||
rmt_channel: ${rmt_channel}
|
||||
dump: all
|
||||
tolerance: 25%
|
||||
on_abbwelcome:
|
||||
then:
|
||||
- logger.log:
|
||||
@@ -143,6 +144,10 @@ remote_receiver:
|
||||
- logger.log:
|
||||
format: "on_toshiba_ac: %llu %llu"
|
||||
args: ["x.rc_code_1", "x.rc_code_2"]
|
||||
on_mirage:
|
||||
then:
|
||||
- lambda: |-
|
||||
ESP_LOGD("mirage", "Mirage data: %s", format_hex(x.data).c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: remote_receiver
|
||||
|
||||
@@ -142,6 +142,10 @@ remote_receiver:
|
||||
- logger.log:
|
||||
format: "on_toshiba_ac: %llu %llu"
|
||||
args: ["x.rc_code_1", "x.rc_code_2"]
|
||||
on_mirage:
|
||||
then:
|
||||
- lambda: |-
|
||||
ESP_LOGD("mirage", "Mirage data: %s", format_hex(x.data).c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: remote_receiver
|
||||
|
||||
@@ -176,6 +176,11 @@ button:
|
||||
0x00,
|
||||
0x05,
|
||||
]
|
||||
- platform: template
|
||||
name: Mirage
|
||||
on_press:
|
||||
remote_transmitter.transmit_mirage:
|
||||
code: [0x56, 0x77, 0x00, 0x00, 0x22, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
|
||||
- platform: template
|
||||
name: Dooya
|
||||
on_press:
|
||||
|
||||
@@ -2,7 +2,11 @@ wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
ota:
|
||||
safe_mode:
|
||||
num_attempts: 3
|
||||
reboot_timeout: 2min
|
||||
on_safe_mode:
|
||||
- logger.log: Time for safe mode
|
||||
|
||||
button:
|
||||
- platform: safe_mode
|
||||
|
||||
@@ -13,3 +13,21 @@ binary_sensor:
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 3
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Open Drain
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 0
|
||||
mode:
|
||||
output: true
|
||||
open_drain: true
|
||||
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Standard
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 1
|
||||
mode:
|
||||
output: true
|
||||
|
||||
@@ -13,3 +13,21 @@ binary_sensor:
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 3
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Open Drain
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 0
|
||||
mode:
|
||||
output: true
|
||||
open_drain: true
|
||||
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Standard
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 1
|
||||
mode:
|
||||
output: true
|
||||
|
||||
@@ -13,3 +13,21 @@ binary_sensor:
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 3
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Open Drain
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 0
|
||||
mode:
|
||||
output: true
|
||||
open_drain: true
|
||||
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Standard
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 1
|
||||
mode:
|
||||
output: true
|
||||
|
||||
@@ -13,3 +13,21 @@ binary_sensor:
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 3
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Open Drain
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 0
|
||||
mode:
|
||||
output: true
|
||||
open_drain: true
|
||||
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Standard
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 1
|
||||
mode:
|
||||
output: true
|
||||
|
||||
@@ -13,3 +13,21 @@ binary_sensor:
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 3
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Open Drain
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 0
|
||||
mode:
|
||||
output: true
|
||||
open_drain: true
|
||||
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Standard
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 1
|
||||
mode:
|
||||
output: true
|
||||
|
||||
@@ -13,3 +13,21 @@ binary_sensor:
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 3
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Open Drain
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 0
|
||||
mode:
|
||||
output: true
|
||||
open_drain: true
|
||||
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Standard
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 1
|
||||
mode:
|
||||
output: true
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include <esphome/components/gpio/switch/gpio_switch.h>
|
||||
#include <esphome/components/logger/logger.h>
|
||||
#include <esphome/components/ota/ota_component.h>
|
||||
#include <esphome/components/esphome/ota/ota_esphome.h>
|
||||
#include <esphome/components/wifi/wifi_component.h>
|
||||
#include <esphome/core/application.h>
|
||||
|
||||
@@ -25,7 +25,7 @@ void setup() {
|
||||
ap.set_password("password1");
|
||||
wifi->add_sta(ap);
|
||||
|
||||
auto *ota = new ota::OTAComponent(); // NOLINT
|
||||
auto *ota = new esphome::ESPHomeOTAComponent(); // NOLINT
|
||||
ota->set_port(8266);
|
||||
|
||||
App.setup();
|
||||
|
||||
@@ -264,30 +264,32 @@ uart:
|
||||
parity: EVEN
|
||||
baud_rate: 9600
|
||||
|
||||
ota:
|
||||
safe_mode: true
|
||||
password: "superlongpasswordthatnoonewillknow"
|
||||
port: 3286
|
||||
safe_mode:
|
||||
num_attempts: 3
|
||||
reboot_timeout: 2min
|
||||
num_attempts: 5
|
||||
on_state_change:
|
||||
then:
|
||||
lambda: >-
|
||||
ESP_LOGD("ota", "State %d", state);
|
||||
on_begin:
|
||||
then:
|
||||
logger.log: OTA begin
|
||||
on_progress:
|
||||
then:
|
||||
lambda: >-
|
||||
ESP_LOGD("ota", "Got progress %f", x);
|
||||
on_end:
|
||||
then:
|
||||
logger.log: OTA end
|
||||
on_error:
|
||||
then:
|
||||
lambda: >-
|
||||
ESP_LOGD("ota", "Got error code %d", x);
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: "superlongpasswordthatnoonewillknow"
|
||||
port: 3286
|
||||
on_state_change:
|
||||
then:
|
||||
lambda: >-
|
||||
ESP_LOGD("ota", "State %d", state);
|
||||
on_begin:
|
||||
then:
|
||||
logger.log: OTA begin
|
||||
on_progress:
|
||||
then:
|
||||
lambda: >-
|
||||
ESP_LOGD("ota", "Got progress %f", x);
|
||||
on_end:
|
||||
then:
|
||||
logger.log: OTA end
|
||||
on_error:
|
||||
then:
|
||||
lambda: >-
|
||||
ESP_LOGD("ota", "Got error code %d", x);
|
||||
|
||||
logger:
|
||||
baud_rate: 0
|
||||
|
||||
@@ -31,6 +31,7 @@ network:
|
||||
api:
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
|
||||
logger:
|
||||
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
---
|
||||
esphome:
|
||||
name: $devicename
|
||||
platform: ESP32
|
||||
board: nodemcu-32s
|
||||
build_path: build/test2
|
||||
|
||||
esp32:
|
||||
board: esp32dev
|
||||
flash_size: 8MB
|
||||
|
||||
globals:
|
||||
- id: my_global_string
|
||||
type: std::string
|
||||
@@ -77,10 +79,11 @@ uart:
|
||||
sequence:
|
||||
- lambda: UARTDebug::log_hex(direction, bytes, ':');
|
||||
|
||||
safe_mode:
|
||||
|
||||
ota:
|
||||
safe_mode: true
|
||||
port: 3286
|
||||
num_attempts: 15
|
||||
- platform: esphome
|
||||
port: 3286
|
||||
|
||||
logger:
|
||||
level: DEBUG
|
||||
|
||||
@@ -49,7 +49,8 @@ spi:
|
||||
number: GPIO14
|
||||
|
||||
ota:
|
||||
version: 2
|
||||
- platform: esphome
|
||||
version: 2
|
||||
|
||||
logger:
|
||||
|
||||
@@ -244,13 +245,6 @@ sensor:
|
||||
name: "ADE7953 Reactive Power B"
|
||||
update_interval: 1s
|
||||
|
||||
- platform: ens160
|
||||
eco2:
|
||||
name: "ENS160 eCO2"
|
||||
tvoc:
|
||||
name: "ENS160 Total Volatile Organic Compounds"
|
||||
aqi:
|
||||
name: "ENS160 Air Quality Index"
|
||||
- platform: tmp102
|
||||
name: TMP102 Temperature
|
||||
- platform: hm3301
|
||||
@@ -350,10 +344,6 @@ apds9960:
|
||||
address: 0x20
|
||||
update_interval: 60s
|
||||
|
||||
mpr121:
|
||||
id: mpr121_first
|
||||
address: 0x5A
|
||||
|
||||
binary_sensor:
|
||||
- platform: apds9960
|
||||
direction: up
|
||||
@@ -377,25 +367,6 @@ binary_sensor:
|
||||
direction: right
|
||||
name: APDS9960 Right
|
||||
|
||||
- platform: mpr121
|
||||
id: touchkey0
|
||||
channel: 0
|
||||
name: touchkey0
|
||||
- platform: mpr121
|
||||
channel: 1
|
||||
name: touchkey1
|
||||
id: bin1
|
||||
- platform: mpr121
|
||||
channel: 2
|
||||
name: touchkey2
|
||||
id: bin2
|
||||
- platform: mpr121
|
||||
channel: 3
|
||||
name: touchkey3
|
||||
id: bin3
|
||||
on_press:
|
||||
then:
|
||||
- switch.toggle: mpr121_toggle
|
||||
- platform: ttp229_lsf
|
||||
channel: 1
|
||||
name: TTP229 LSF Test
|
||||
@@ -449,10 +420,6 @@ grove_tb6612fng:
|
||||
address: 0x14
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
name: mpr121_toggle
|
||||
id: mpr121_toggle
|
||||
optimistic: true
|
||||
- platform: gpio
|
||||
id: gpio_switch1
|
||||
pin:
|
||||
|
||||
@@ -327,10 +327,13 @@ modbus:
|
||||
vbus:
|
||||
uart_id: uart_4
|
||||
|
||||
safe_mode:
|
||||
num_attempts: 5
|
||||
reboot_timeout: 10min
|
||||
|
||||
ota:
|
||||
safe_mode: true
|
||||
port: 3286
|
||||
reboot_timeout: 15min
|
||||
- platform: esphome
|
||||
port: 3286
|
||||
|
||||
logger:
|
||||
hardware_uart: UART1
|
||||
|
||||
@@ -102,9 +102,11 @@ uart:
|
||||
baud_rate: 1200
|
||||
parity: EVEN
|
||||
|
||||
safe_mode:
|
||||
|
||||
ota:
|
||||
safe_mode: true
|
||||
port: 3286
|
||||
- platform: esphome
|
||||
port: 3286
|
||||
|
||||
logger:
|
||||
level: DEBUG
|
||||
|
||||
@@ -28,6 +28,7 @@ network:
|
||||
api:
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
|
||||
logger:
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ network:
|
||||
api:
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
|
||||
logger:
|
||||
|
||||
|
||||
@@ -38,6 +38,11 @@ light:
|
||||
id: rgb_led
|
||||
name: "RGB LED"
|
||||
data_rate: 8MHz
|
||||
- platform: binary
|
||||
name: "Red Info Light"
|
||||
output: board_info_ed
|
||||
entity_category: diagnostic
|
||||
restore_mode: ALWAYS_OFF
|
||||
|
||||
spi:
|
||||
id: spi_id_1
|
||||
@@ -73,6 +78,14 @@ i2c:
|
||||
scl: GPIO18
|
||||
sda: GPIO8
|
||||
|
||||
output:
|
||||
- platform: gpio
|
||||
id: board_info_ed
|
||||
pin:
|
||||
# This pin is reserved on the ESP32S3!
|
||||
number: 26
|
||||
ignore_pin_validation_error: true
|
||||
|
||||
touchscreen:
|
||||
- platform: tt21100
|
||||
display: displ8
|
||||
|
||||
@@ -12,6 +12,7 @@ esphome:
|
||||
logger:
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
|
||||
captive_portal:
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ esphome:
|
||||
logger:
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
|
||||
captive_portal:
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ esphome:
|
||||
friendly_name: $component_name
|
||||
|
||||
bk72xx:
|
||||
board: cb3s
|
||||
board: generic-bk7231n-qfn32-tuya
|
||||
|
||||
logger:
|
||||
level: VERY_VERBOSE
|
||||
|
||||
Reference in New Issue
Block a user