2022-09-06 05:48:01 +02:00
|
|
|
---
|
2019-02-13 16:54:02 +01:00
|
|
|
esphome:
|
2021-05-31 00:06:45 +02:00
|
|
|
name: $device_name
|
|
|
|
comment: $device_comment
|
2019-02-13 11:20:22 +01:00
|
|
|
build_path: build/test3
|
2023-02-26 20:39:09 +01:00
|
|
|
platformio_options:
|
|
|
|
board_build.partitions: huge_app.csv5
|
2019-04-22 21:56:30 +02:00
|
|
|
on_boot:
|
2021-10-12 21:23:24 +02:00
|
|
|
- if:
|
|
|
|
condition:
|
|
|
|
- api.connected
|
|
|
|
- wifi.connected
|
|
|
|
- time.has_time
|
|
|
|
then:
|
2022-09-06 05:48:01 +02:00
|
|
|
- logger.log: Have time
|
2019-05-08 11:31:06 +02:00
|
|
|
includes:
|
|
|
|
- custom.h
|
2019-02-13 11:20:22 +01:00
|
|
|
|
2022-05-09 07:21:43 +02:00
|
|
|
esp8266:
|
|
|
|
board: d1_mini
|
2022-09-06 05:48:01 +02:00
|
|
|
early_pin_init: true
|
2022-05-09 07:21:43 +02:00
|
|
|
|
2019-02-13 11:20:22 +01:00
|
|
|
substitutions:
|
2021-05-31 00:06:45 +02:00
|
|
|
device_name: test3
|
|
|
|
device_comment: test3 device
|
2022-09-06 05:48:01 +02:00
|
|
|
min_sub: "0.03"
|
|
|
|
max_sub: "12.0%"
|
2019-02-13 11:20:22 +01:00
|
|
|
|
|
|
|
api:
|
2019-04-22 21:56:30 +02:00
|
|
|
port: 8000
|
2022-09-06 05:48:01 +02:00
|
|
|
password: pwd
|
2019-04-22 21:56:30 +02:00
|
|
|
reboot_timeout: 0min
|
2021-09-08 23:22:47 +02:00
|
|
|
encryption:
|
2022-09-06 05:48:01 +02:00
|
|
|
key: bOFFzzvfpg5DB94DuBGLXD/hMnhpDKgP9UQyBulwWVU=
|
2019-04-22 21:56:30 +02:00
|
|
|
services:
|
|
|
|
- service: hello_world
|
|
|
|
variables:
|
|
|
|
name: string
|
|
|
|
then:
|
|
|
|
- logger.log:
|
2022-09-06 05:48:01 +02:00
|
|
|
format: Hello World %s!
|
2019-04-22 21:56:30 +02:00
|
|
|
args:
|
|
|
|
- name.c_str()
|
|
|
|
- service: empty_service
|
|
|
|
then:
|
2022-09-06 05:48:01 +02:00
|
|
|
- logger.log: Service Called
|
2019-04-22 21:56:30 +02:00
|
|
|
- service: all_types
|
|
|
|
variables:
|
|
|
|
bool_: bool
|
|
|
|
int_: int
|
|
|
|
float_: float
|
|
|
|
string_: string
|
|
|
|
then:
|
2022-09-06 05:48:01 +02:00
|
|
|
- logger.log: Something happened
|
2019-04-22 21:56:30 +02:00
|
|
|
- stepper.set_target:
|
|
|
|
id: my_stepper2
|
|
|
|
target: !lambda 'return int_;'
|
2019-06-18 19:31:22 +02:00
|
|
|
- service: array_types
|
|
|
|
variables:
|
|
|
|
bool_arr: bool[]
|
|
|
|
int_arr: int[]
|
|
|
|
float_arr: float[]
|
|
|
|
string_arr: string[]
|
|
|
|
then:
|
|
|
|
- logger.log:
|
2022-09-06 05:48:01 +02:00
|
|
|
# yamllint disable rule:line-length
|
2019-06-18 19:31:22 +02:00
|
|
|
format: 'Bool: %s (%u), Int: %d (%u), Float: %f (%u), String: %s (%u)'
|
2022-09-06 05:48:01 +02:00
|
|
|
# yamllint enable rule:line-length
|
2019-06-18 19:31:22 +02:00
|
|
|
args:
|
|
|
|
- YESNO(bool_arr[0])
|
|
|
|
- bool_arr.size()
|
|
|
|
- int_arr[0]
|
|
|
|
- int_arr.size()
|
|
|
|
- float_arr[0]
|
|
|
|
- float_arr.size()
|
|
|
|
- string_arr[0].c_str()
|
|
|
|
- string_arr.size()
|
2019-10-19 21:37:05 +02:00
|
|
|
- service: dfplayer_next
|
|
|
|
then:
|
|
|
|
- dfplayer.play_next:
|
|
|
|
- service: dfplayer_previous
|
|
|
|
then:
|
|
|
|
- dfplayer.play_previous:
|
|
|
|
- service: dfplayer_play
|
|
|
|
variables:
|
|
|
|
file: int
|
|
|
|
then:
|
|
|
|
- dfplayer.play: !lambda 'return file;'
|
|
|
|
- service: dfplayer_play_loop
|
|
|
|
variables:
|
|
|
|
file: int
|
|
|
|
loop_: bool
|
|
|
|
then:
|
|
|
|
- dfplayer.play:
|
|
|
|
file: !lambda 'return file;'
|
|
|
|
loop: !lambda 'return loop_;'
|
|
|
|
- service: dfplayer_play_folder
|
|
|
|
variables:
|
|
|
|
folder: int
|
|
|
|
file: int
|
|
|
|
then:
|
|
|
|
- dfplayer.play_folder:
|
|
|
|
folder: !lambda 'return folder;'
|
|
|
|
file: !lambda 'return file;'
|
|
|
|
|
|
|
|
- service: dfplayer_play_loo_folder
|
|
|
|
variables:
|
|
|
|
folder: int
|
|
|
|
then:
|
|
|
|
- dfplayer.play_folder:
|
|
|
|
folder: !lambda 'return folder;'
|
2022-09-06 05:48:01 +02:00
|
|
|
loop: true
|
2019-10-19 21:37:05 +02:00
|
|
|
|
|
|
|
- service: dfplayer_set_device
|
|
|
|
variables:
|
|
|
|
device: int
|
|
|
|
then:
|
|
|
|
- dfplayer.set_device:
|
|
|
|
device: TF_CARD
|
|
|
|
|
|
|
|
- service: dfplayer_set_volume
|
|
|
|
variables:
|
|
|
|
volume: int
|
|
|
|
then:
|
|
|
|
- dfplayer.set_volume: !lambda 'return volume;'
|
|
|
|
- service: dfplayer_set_eq
|
|
|
|
variables:
|
|
|
|
preset: int
|
|
|
|
then:
|
2022-09-06 05:48:01 +02:00
|
|
|
# yamllint disable rule:line-length
|
2019-10-19 21:37:05 +02:00
|
|
|
- dfplayer.set_eq: !lambda 'return static_cast<dfplayer::EqPreset>(preset);'
|
2022-09-06 05:48:01 +02:00
|
|
|
# yamllint enable rule:line-length
|
2019-10-19 21:37:05 +02:00
|
|
|
|
|
|
|
- service: dfplayer_sleep
|
|
|
|
then:
|
|
|
|
- dfplayer.sleep
|
|
|
|
|
|
|
|
- service: dfplayer_reset
|
|
|
|
then:
|
|
|
|
- dfplayer.reset
|
|
|
|
|
|
|
|
- service: dfplayer_start
|
|
|
|
then:
|
|
|
|
- dfplayer.start
|
|
|
|
|
|
|
|
- service: dfplayer_pause
|
|
|
|
then:
|
|
|
|
- dfplayer.pause
|
|
|
|
|
|
|
|
- service: dfplayer_stop
|
|
|
|
then:
|
|
|
|
- dfplayer.stop
|
|
|
|
|
|
|
|
- service: dfplayer_random
|
|
|
|
then:
|
|
|
|
- dfplayer.random
|
2019-04-22 21:56:30 +02:00
|
|
|
|
2021-06-03 00:12:23 +02:00
|
|
|
- service: dfplayer_volume_up
|
|
|
|
then:
|
|
|
|
- dfplayer.volume_up
|
|
|
|
|
|
|
|
- service: dfplayer_volume_down
|
|
|
|
then:
|
|
|
|
- dfplayer.volume_down
|
|
|
|
|
2020-02-16 00:52:20 +01:00
|
|
|
- service: battery_level_percent
|
|
|
|
variables:
|
|
|
|
level_percent: int
|
|
|
|
then:
|
|
|
|
- tm1651.set_level_percent:
|
|
|
|
id: tm1651_battery
|
|
|
|
level_percent: !lambda 'return level_percent;'
|
2019-12-04 13:11:53 +01:00
|
|
|
- service: battery_level
|
|
|
|
variables:
|
|
|
|
level: int
|
|
|
|
then:
|
|
|
|
- tm1651.set_level:
|
|
|
|
id: tm1651_battery
|
|
|
|
level: !lambda 'return level;'
|
|
|
|
- service: battery_brightness
|
|
|
|
variables:
|
|
|
|
brightness: int
|
|
|
|
then:
|
|
|
|
- tm1651.set_brightness:
|
|
|
|
id: tm1651_battery
|
|
|
|
brightness: !lambda 'return brightness;'
|
2020-02-16 00:52:20 +01:00
|
|
|
- service: battery_turn_on
|
|
|
|
then:
|
|
|
|
- tm1651.turn_on:
|
|
|
|
id: tm1651_battery
|
|
|
|
- service: battery_turn_on
|
|
|
|
then:
|
|
|
|
- tm1651.turn_off:
|
|
|
|
id: tm1651_battery
|
2020-07-13 22:30:17 +02:00
|
|
|
- service: pid_set_control_parameters
|
|
|
|
then:
|
|
|
|
- climate.pid.set_control_parameters:
|
|
|
|
id: pid_climate
|
|
|
|
kp: 1.0
|
|
|
|
kd: 1.0
|
|
|
|
ki: 1.0
|
2021-04-29 00:08:27 +02:00
|
|
|
- service: fingerprint_grow_enroll
|
|
|
|
variables:
|
|
|
|
finger_id: int
|
|
|
|
num_scans: int
|
|
|
|
then:
|
|
|
|
- fingerprint_grow.enroll:
|
|
|
|
finger_id: !lambda 'return finger_id;'
|
|
|
|
num_scans: !lambda 'return num_scans;'
|
|
|
|
- service: fingerprint_grow_cancel_enroll
|
|
|
|
then:
|
|
|
|
- fingerprint_grow.cancel_enroll:
|
|
|
|
- service: fingerprint_grow_delete
|
|
|
|
variables:
|
|
|
|
finger_id: int
|
|
|
|
then:
|
|
|
|
- fingerprint_grow.delete:
|
|
|
|
finger_id: !lambda 'return finger_id;'
|
|
|
|
- service: fingerprint_grow_delete_all
|
|
|
|
then:
|
|
|
|
- fingerprint_grow.delete_all:
|
2019-12-04 13:11:53 +01:00
|
|
|
|
2019-04-22 21:56:30 +02:00
|
|
|
wifi:
|
|
|
|
ssid: 'MySSID'
|
|
|
|
password: 'password1'
|
2019-02-13 11:20:22 +01:00
|
|
|
|
|
|
|
i2c:
|
|
|
|
sda: 4
|
|
|
|
scl: 5
|
2022-09-06 05:48:01 +02:00
|
|
|
scan: false
|
2019-02-13 11:20:22 +01:00
|
|
|
|
|
|
|
spi:
|
|
|
|
clk_pin: GPIO12
|
|
|
|
mosi_pin: GPIO13
|
|
|
|
miso_pin: GPIO14
|
|
|
|
|
|
|
|
uart:
|
2021-05-31 00:06:45 +02:00
|
|
|
- id: uart1
|
2021-12-01 20:31:04 +01:00
|
|
|
tx_pin:
|
|
|
|
number: GPIO1
|
2022-09-06 05:48:01 +02:00
|
|
|
inverted: true
|
2020-06-13 01:34:38 +02:00
|
|
|
rx_pin: GPIO3
|
|
|
|
baud_rate: 115200
|
2021-05-31 00:06:45 +02:00
|
|
|
- id: uart2
|
|
|
|
tx_pin: GPIO4
|
|
|
|
rx_pin: GPIO5
|
|
|
|
baud_rate: 9600
|
|
|
|
- id: uart3
|
|
|
|
tx_pin: GPIO4
|
|
|
|
rx_pin: GPIO5
|
|
|
|
baud_rate: 4800
|
|
|
|
- id: uart4
|
|
|
|
tx_pin: GPIO4
|
|
|
|
rx_pin: GPIO5
|
|
|
|
baud_rate: 9600
|
|
|
|
- id: uart5
|
|
|
|
tx_pin: GPIO4
|
|
|
|
rx_pin: GPIO5
|
|
|
|
baud_rate: 9600
|
|
|
|
- id: uart6
|
|
|
|
tx_pin: GPIO4
|
|
|
|
rx_pin: GPIO5
|
|
|
|
baud_rate: 9600
|
2021-10-28 20:58:48 +02:00
|
|
|
- id: uart7
|
|
|
|
tx_pin: GPIO4
|
|
|
|
rx_pin: GPIO5
|
|
|
|
baud_rate: 38400
|
2022-04-21 00:11:25 +02:00
|
|
|
- id: uart8
|
|
|
|
tx_pin: GPIO4
|
|
|
|
rx_pin: GPIO5
|
|
|
|
baud_rate: 4800
|
|
|
|
parity: NONE
|
|
|
|
stop_bits: 2
|
2021-11-24 23:51:56 +01:00
|
|
|
# Specifically added for testing debug with no options at all.
|
|
|
|
debug:
|
2022-05-10 12:02:58 +02:00
|
|
|
- id: uart9
|
2022-05-10 11:35:43 +02:00
|
|
|
tx_pin: GPIO4
|
|
|
|
rx_pin: GPIO5
|
|
|
|
baud_rate: 9600
|
2022-07-28 01:22:49 +02:00
|
|
|
- id: uart10
|
|
|
|
tx_pin: GPIO4
|
|
|
|
rx_pin: GPIO5
|
|
|
|
baud_rate: 9600
|
2022-11-20 23:49:30 +01:00
|
|
|
- id: uart11
|
|
|
|
tx_pin: GPIO4
|
|
|
|
rx_pin: GPIO5
|
|
|
|
baud_rate: 9600
|
2023-02-23 03:05:33 +01:00
|
|
|
- id: uart12
|
|
|
|
tx_pin: GPIO4
|
|
|
|
rx_pin: GPIO5
|
|
|
|
baud_rate: 9600
|
2021-05-31 00:06:45 +02:00
|
|
|
|
|
|
|
modbus:
|
|
|
|
uart_id: uart1
|
2020-06-13 01:34:38 +02:00
|
|
|
|
2023-02-07 00:17:17 +01:00
|
|
|
vbus:
|
|
|
|
uart_id: uart4
|
|
|
|
|
2019-02-13 11:20:22 +01:00
|
|
|
ota:
|
2022-09-06 05:48:01 +02:00
|
|
|
safe_mode: true
|
2019-02-13 11:20:22 +01:00
|
|
|
port: 3286
|
2020-12-01 23:41:39 +01:00
|
|
|
reboot_timeout: 15min
|
2019-02-13 11:20:22 +01:00
|
|
|
|
|
|
|
logger:
|
|
|
|
hardware_uart: UART1
|
|
|
|
level: DEBUG
|
2021-09-20 11:47:51 +02:00
|
|
|
esp8266_store_log_strings_in_flash: true
|
2019-02-13 11:20:22 +01:00
|
|
|
|
2021-11-10 20:55:45 +01:00
|
|
|
improv_serial:
|
2023-01-25 02:37:01 +01:00
|
|
|
next_url: https://esphome.io/?name={{device_name}}&version={{esphome_version}}&ip={{ip_address}}
|
2021-11-10 20:55:45 +01:00
|
|
|
|
2019-02-13 11:20:22 +01:00
|
|
|
deep_sleep:
|
|
|
|
run_duration: 20s
|
|
|
|
sleep_duration: 50s
|
|
|
|
|
2020-06-13 01:50:09 +02:00
|
|
|
wled:
|
|
|
|
|
2020-06-13 01:34:38 +02:00
|
|
|
adalight:
|
|
|
|
|
2021-07-15 02:51:15 +02:00
|
|
|
|
2019-02-13 11:20:22 +01:00
|
|
|
sensor:
|
2021-09-22 12:03:42 +02:00
|
|
|
- platform: daly_bms
|
|
|
|
voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Battery Voltage
|
2021-09-22 12:03:42 +02:00
|
|
|
current:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Battery Current
|
2021-09-22 12:03:42 +02:00
|
|
|
battery_level:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Battery Level
|
2021-09-22 12:03:42 +02:00
|
|
|
max_cell_voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Max Cell Voltage
|
2021-09-22 12:03:42 +02:00
|
|
|
max_cell_voltage_number:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Max Cell Voltage Number
|
2021-09-22 12:03:42 +02:00
|
|
|
min_cell_voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Min Cell Voltage
|
2021-09-22 12:03:42 +02:00
|
|
|
min_cell_voltage_number:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Min Cell Voltage Number
|
2021-09-22 12:03:42 +02:00
|
|
|
max_temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Max Temperature
|
2021-09-22 12:03:42 +02:00
|
|
|
max_temperature_probe_number:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Max Temperature Probe Number
|
2021-09-22 12:03:42 +02:00
|
|
|
min_temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Min Temperature
|
2021-09-22 12:03:42 +02:00
|
|
|
min_temperature_probe_number:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Min Temperature Probe Number
|
2021-09-22 12:03:42 +02:00
|
|
|
remaining_capacity:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Remaining Capacity
|
2021-09-22 12:03:42 +02:00
|
|
|
cells_number:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Cells Number
|
2021-09-22 12:03:42 +02:00
|
|
|
temperature_1:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Temperature 1
|
2021-09-22 12:03:42 +02:00
|
|
|
temperature_2:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Temperature 2
|
2019-02-13 11:20:22 +01:00
|
|
|
- platform: apds9960
|
|
|
|
type: proximity
|
|
|
|
name: APDS9960 Proximity
|
2020-06-28 23:47:43 +02:00
|
|
|
- platform: vl53l0x
|
2022-09-06 05:48:01 +02:00
|
|
|
name: VL53L0x Distance
|
2020-06-28 23:47:43 +02:00
|
|
|
address: 0x29
|
|
|
|
update_interval: 60s
|
2021-02-25 23:12:06 +01:00
|
|
|
enable_pin: GPIO13
|
|
|
|
timeout: 200us
|
2019-02-13 11:20:22 +01:00
|
|
|
- platform: apds9960
|
|
|
|
type: clear
|
|
|
|
name: APDS9960 Clear
|
|
|
|
- platform: apds9960
|
|
|
|
type: red
|
|
|
|
name: APDS9960 Red
|
|
|
|
- platform: apds9960
|
|
|
|
type: green
|
|
|
|
name: APDS9960 Green
|
|
|
|
- platform: apds9960
|
|
|
|
type: blue
|
|
|
|
name: APDS9960 Blue
|
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: sensor.hello_world
|
|
|
|
id: ha_hello_world
|
2020-05-20 02:13:50 +02:00
|
|
|
- platform: aht10
|
2020-03-21 19:31:07 +01:00
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Temperature
|
2020-03-21 19:31:07 +01:00
|
|
|
humidity:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Humidity
|
2019-05-27 20:00:32 +02:00
|
|
|
- platform: am2320
|
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Temperature
|
2019-05-27 20:00:32 +02:00
|
|
|
humidity:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Humidity
|
2022-04-11 04:50:56 +02:00
|
|
|
- platform: hydreon_rgxx
|
2022-09-06 05:48:01 +02:00
|
|
|
model: RG 9
|
2022-04-11 04:50:56 +02:00
|
|
|
uart_id: uart6
|
2022-09-06 05:48:01 +02:00
|
|
|
id: hydreon_rg9
|
2022-04-11 04:50:56 +02:00
|
|
|
moisture:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: hydreon_rain
|
2022-04-11 04:50:56 +02:00
|
|
|
id: hydreon_rain
|
|
|
|
- platform: hydreon_rgxx
|
2022-09-06 05:48:01 +02:00
|
|
|
model: RG_15
|
2022-04-11 04:50:56 +02:00
|
|
|
uart_id: uart6
|
|
|
|
acc:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: hydreon_acc
|
2022-04-11 04:50:56 +02:00
|
|
|
event_acc:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: hydreon_event_acc
|
2022-04-11 04:50:56 +02:00
|
|
|
total_acc:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: hydreon_total_acc
|
2022-04-11 04:50:56 +02:00
|
|
|
r_int:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: hydreon_r_int
|
2019-04-22 21:56:30 +02:00
|
|
|
- platform: adc
|
|
|
|
pin: VCC
|
|
|
|
id: my_sensor
|
|
|
|
filters:
|
|
|
|
- offset: 5.0
|
|
|
|
- multiply: 2.0
|
|
|
|
- filter_out: NAN
|
|
|
|
- sliding_window_moving_average:
|
|
|
|
- exponential_moving_average:
|
2021-12-14 19:43:42 +01:00
|
|
|
- quantile:
|
|
|
|
window_size: 5
|
|
|
|
send_every: 5
|
|
|
|
send_first_at: 3
|
|
|
|
quantile: .8
|
2019-04-22 21:56:30 +02:00
|
|
|
- lambda: 'return 0;'
|
|
|
|
- delta: 100
|
|
|
|
- throttle: 100ms
|
|
|
|
- debounce: 500s
|
|
|
|
- calibrate_linear:
|
|
|
|
- 0 -> 0
|
|
|
|
- 100 -> 100
|
2019-07-02 13:02:55 +02:00
|
|
|
- calibrate_polynomial:
|
|
|
|
degree: 3
|
|
|
|
datapoints:
|
|
|
|
- 0 -> 0
|
|
|
|
- 100 -> 200
|
|
|
|
- 400 -> 500
|
|
|
|
- -50 -> -1000
|
|
|
|
- -100 -> -10000
|
2022-01-11 04:59:57 +01:00
|
|
|
- platform: cd74hc4067
|
|
|
|
id: cd74hc4067_0
|
|
|
|
number: 0
|
|
|
|
sensor: my_sensor
|
2019-05-28 16:00:00 +02:00
|
|
|
- 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
|
2019-05-28 22:27:39 +02:00
|
|
|
- platform: ntc
|
|
|
|
sensor: resist
|
|
|
|
name: NTC Sensor2
|
|
|
|
calibration:
|
|
|
|
- 10.0kOhm -> 25°C
|
|
|
|
- 27.219kOhm -> 0°C
|
|
|
|
- 14.674kOhm -> 15°C
|
2019-05-29 11:15:08 +02:00
|
|
|
- platform: ct_clamp
|
|
|
|
sensor: my_sensor
|
|
|
|
name: CT Clamp
|
|
|
|
sample_duration: 500ms
|
|
|
|
update_interval: 5s
|
|
|
|
|
2019-04-22 21:56:30 +02:00
|
|
|
- platform: tcs34725
|
|
|
|
red_channel:
|
|
|
|
name: Red Channel
|
|
|
|
green_channel:
|
|
|
|
name: Green Channel
|
|
|
|
blue_channel:
|
|
|
|
name: Blue Channel
|
|
|
|
clear_channel:
|
|
|
|
name: Clear Channel
|
|
|
|
illuminance:
|
|
|
|
name: Illuminance
|
|
|
|
color_temperature:
|
|
|
|
name: Color Temperature
|
2021-10-13 18:45:41 +02:00
|
|
|
integration_time: 614ms
|
2019-04-22 21:56:30 +02:00
|
|
|
gain: 60x
|
2019-05-08 10:56:52 +02:00
|
|
|
- platform: custom
|
|
|
|
lambda: |-
|
2019-05-08 11:31:06 +02:00
|
|
|
auto s = new CustomSensor();
|
|
|
|
App.register_component(s);
|
2019-05-08 10:56:52 +02:00
|
|
|
return {s};
|
|
|
|
sensors:
|
|
|
|
- id: custom_sensor
|
|
|
|
name: Custom Sensor
|
2019-05-28 20:41:10 +02:00
|
|
|
- platform: binary_sensor_map
|
|
|
|
name: Binary Sensor Map
|
|
|
|
type: group
|
|
|
|
channels:
|
|
|
|
- binary_sensor: bin1
|
|
|
|
value: 10.0
|
|
|
|
- binary_sensor: bin2
|
|
|
|
value: 15.0
|
|
|
|
- binary_sensor: bin3
|
|
|
|
value: 100.0
|
2019-10-16 13:19:41 +02:00
|
|
|
- platform: ade7953
|
2020-11-15 21:30:14 +01:00
|
|
|
irq_pin: GPIO16
|
2019-10-16 13:19:41 +02:00
|
|
|
voltage:
|
|
|
|
name: ADE7953 Voltage
|
2021-09-27 22:22:45 +02:00
|
|
|
id: ade7953_voltage
|
2019-10-16 13:19:41 +02:00
|
|
|
current_a:
|
|
|
|
name: ADE7953 Current A
|
2021-09-27 22:22:45 +02:00
|
|
|
id: ade7953_current_a
|
2019-10-16 13:19:41 +02:00
|
|
|
current_b:
|
|
|
|
name: ADE7953 Current B
|
2021-09-27 22:22:45 +02:00
|
|
|
id: ade7953_current_b
|
2019-10-16 13:19:41 +02:00
|
|
|
active_power_a:
|
|
|
|
name: ADE7953 Active Power A
|
2021-09-27 22:22:45 +02:00
|
|
|
id: ade7953_active_power_a
|
2019-10-16 13:19:41 +02:00
|
|
|
active_power_b:
|
|
|
|
name: ADE7953 Active Power B
|
2021-09-27 22:22:45 +02:00
|
|
|
id: ade7953_active_power_b
|
2022-04-21 00:11:25 +02:00
|
|
|
- platform: bl0939
|
|
|
|
uart_id: uart8
|
|
|
|
voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: BL0939 Voltage
|
2022-04-21 00:11:25 +02:00
|
|
|
current_1:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: BL0939 Current 1
|
2022-04-21 00:11:25 +02:00
|
|
|
current_2:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: BL0939 Current 2
|
2022-04-21 00:11:25 +02:00
|
|
|
active_power_1:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: BL0939 Active Power 1
|
2022-04-21 00:11:25 +02:00
|
|
|
active_power_2:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: BL0939 Active Power 2
|
2022-04-21 00:11:25 +02:00
|
|
|
energy_1:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: BL0939 Energy 1
|
2022-04-21 00:11:25 +02:00
|
|
|
energy_2:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: BL0939 Energy 2
|
2022-04-21 00:11:25 +02:00
|
|
|
energy_total:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: BL0939 Total energy
|
2022-01-04 10:38:58 +01:00
|
|
|
- platform: bl0940
|
|
|
|
uart_id: uart3
|
|
|
|
voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: BL0940 Voltage
|
2022-01-04 10:38:58 +01:00
|
|
|
current:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: BL0940 Current
|
2022-01-04 10:38:58 +01:00
|
|
|
power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: BL0940 Power
|
2022-01-04 10:38:58 +01:00
|
|
|
energy:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: BL0940 Energy
|
2022-01-04 10:38:58 +01:00
|
|
|
internal_temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: BL0940 Internal temperature
|
2022-01-04 10:38:58 +01:00
|
|
|
external_temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: BL0940 External temperature
|
2022-09-11 23:36:09 +02:00
|
|
|
- platform: bl0942
|
|
|
|
uart_id: uart3
|
|
|
|
voltage:
|
|
|
|
name: 'BL0942 Voltage'
|
|
|
|
current:
|
|
|
|
name: 'BL0942 Current'
|
|
|
|
power:
|
|
|
|
name: 'BL0942 Power'
|
|
|
|
energy:
|
|
|
|
name: 'BL0942 Energy'
|
|
|
|
frequency:
|
|
|
|
name: "BL0942 Frequency"
|
2019-10-20 19:24:20 +02:00
|
|
|
- platform: pzem004t
|
2021-05-31 00:06:45 +02:00
|
|
|
uart_id: uart3
|
2019-10-20 19:24:20 +02:00
|
|
|
voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PZEM004T Voltage
|
2019-10-20 19:24:20 +02:00
|
|
|
current:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PZEM004T Current
|
2019-10-20 19:24:20 +02:00
|
|
|
power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PZEM004T Power
|
2019-10-20 19:24:20 +02:00
|
|
|
- platform: pzemac
|
2022-01-10 11:13:39 +01:00
|
|
|
id: pzemac1
|
2019-10-20 19:24:20 +02:00
|
|
|
voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PZEMAC Voltage
|
2019-10-20 19:24:20 +02:00
|
|
|
current:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PZEMAC Current
|
2019-10-20 19:24:20 +02:00
|
|
|
power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PZEMAC Power
|
2020-03-12 21:37:57 +01:00
|
|
|
energy:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PZEMAC Energy
|
2019-10-20 19:24:20 +02:00
|
|
|
frequency:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PZEMAC Frequency
|
2019-10-20 19:24:20 +02:00
|
|
|
power_factor:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PZEMAC Power Factor
|
2019-10-20 19:24:20 +02:00
|
|
|
- platform: pzemdc
|
|
|
|
voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PZEMDC Voltage
|
2019-10-20 19:24:20 +02:00
|
|
|
current:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PZEMDC Current
|
2019-10-20 19:24:20 +02:00
|
|
|
power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PZEMDC Power
|
2023-02-23 18:38:34 +01:00
|
|
|
energy:
|
|
|
|
name: PZEMDC Energy
|
2020-10-26 19:00:43 +01:00
|
|
|
- platform: tmp102
|
2022-09-06 05:48:01 +02:00
|
|
|
name: TMP102 Temperature
|
2020-04-06 19:11:41 +02:00
|
|
|
- platform: hm3301
|
|
|
|
pm_1_0:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PM1.0
|
2020-04-06 19:11:41 +02:00
|
|
|
pm_2_5:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PM2.5
|
2020-04-06 19:11:41 +02:00
|
|
|
pm_10_0:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PM10.0
|
2020-06-12 04:14:54 +02:00
|
|
|
aqi:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: AQI
|
|
|
|
calculation_type: AQI
|
2020-05-20 02:13:50 +02:00
|
|
|
- platform: pmsx003
|
2022-05-10 12:02:58 +02:00
|
|
|
uart_id: uart9
|
2020-05-20 02:13:50 +02:00
|
|
|
type: PMSX003
|
|
|
|
pm_1_0:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PM 1.0 Concentration
|
2020-05-20 02:13:50 +02:00
|
|
|
pm_2_5:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PM 2.5 Concentration
|
2020-05-20 02:13:50 +02:00
|
|
|
pm_10_0:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PM 10.0 Concentration
|
2021-08-02 10:32:08 +02:00
|
|
|
pm_1_0_std:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PM 1.0 Standard Atmospher Concentration
|
2021-08-02 10:32:08 +02:00
|
|
|
pm_2_5_std:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PM 2.5 Standard Atmospher Concentration
|
2021-08-02 10:32:08 +02:00
|
|
|
pm_10_0_std:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PM 10.0 Standard Atmospher Concentration
|
2021-08-02 10:32:08 +02:00
|
|
|
pm_0_3um:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Particulate Count >0.3um
|
2021-08-02 10:32:08 +02:00
|
|
|
pm_0_5um:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Particulate Count >0.5um
|
2021-08-02 10:32:08 +02:00
|
|
|
pm_1_0um:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Particulate Count >1.0um
|
2021-08-02 10:32:08 +02:00
|
|
|
pm_2_5um:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Particulate Count >2.5um
|
2021-08-02 10:32:08 +02:00
|
|
|
pm_5_0um:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Particulate Count >5.0um
|
2021-08-02 10:32:08 +02:00
|
|
|
pm_10_0um:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Particulate Count >10.0um
|
2022-05-10 11:35:43 +02:00
|
|
|
update_interval: 30s
|
2021-08-02 10:32:08 +02:00
|
|
|
- platform: pmsx003
|
2022-05-10 11:35:43 +02:00
|
|
|
uart_id: uart5
|
2021-08-02 10:32:08 +02:00
|
|
|
type: PMS5003T
|
|
|
|
pm_2_5:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PM 2.5 Concentration
|
2021-08-02 10:32:08 +02:00
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PMS Temperature
|
2021-08-02 10:32:08 +02:00
|
|
|
humidity:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PMS Humidity
|
2021-08-02 10:32:08 +02:00
|
|
|
- platform: pmsx003
|
2022-05-10 11:35:43 +02:00
|
|
|
uart_id: uart6
|
2021-08-02 10:32:08 +02:00
|
|
|
type: PMS5003ST
|
|
|
|
pm_1_0:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PM 1.0 Concentration
|
2021-08-02 10:32:08 +02:00
|
|
|
pm_2_5:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PM 2.5 Concentration
|
2021-08-02 10:32:08 +02:00
|
|
|
pm_10_0:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PM 10.0 Concentration
|
2021-08-02 10:32:08 +02:00
|
|
|
pm_1_0_std:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PM 1.0 Standard Atmospher Concentration
|
2021-08-02 10:32:08 +02:00
|
|
|
pm_2_5_std:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PM 2.5 Standard Atmospher Concentration
|
2021-08-02 10:32:08 +02:00
|
|
|
pm_10_0_std:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PM 10.0 Standard Atmospher Concentration
|
2021-08-02 10:32:08 +02:00
|
|
|
pm_0_3um:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Particulate Count >0.3um
|
2021-08-02 10:32:08 +02:00
|
|
|
pm_0_5um:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Particulate Count >0.5um
|
2021-08-02 10:32:08 +02:00
|
|
|
pm_1_0um:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Particulate Count >1.0um
|
2021-08-02 10:32:08 +02:00
|
|
|
pm_2_5um:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Particulate Count >2.5um
|
2021-08-02 10:32:08 +02:00
|
|
|
pm_5_0um:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Particulate Count >5.0um
|
2021-08-02 10:32:08 +02:00
|
|
|
pm_10_0um:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Particulate Count >10.0um
|
2021-08-02 10:32:08 +02:00
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PMS Temperature
|
2021-08-02 10:32:08 +02:00
|
|
|
humidity:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PMS Humidity
|
2021-08-02 10:32:08 +02:00
|
|
|
formaldehyde:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PMS Formaldehyde Concentration
|
2021-10-28 20:58:48 +02:00
|
|
|
- platform: cse7761
|
|
|
|
uart_id: uart7
|
|
|
|
voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: CSE7761 Voltage
|
2021-10-28 20:58:48 +02:00
|
|
|
current_1:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: CSE7761 Current 1
|
2021-10-28 20:58:48 +02:00
|
|
|
current_2:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: CSE7761 Current 2
|
2021-10-28 20:58:48 +02:00
|
|
|
active_power_1:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: CSE7761 Active Power 1
|
2021-10-28 20:58:48 +02:00
|
|
|
active_power_2:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: CSE7761 Active Power 2
|
2020-05-20 02:13:50 +02:00
|
|
|
- platform: cse7766
|
2021-05-31 00:06:45 +02:00
|
|
|
uart_id: uart3
|
2020-05-20 02:13:50 +02:00
|
|
|
voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: CSE7766 Voltage
|
2020-05-20 02:13:50 +02:00
|
|
|
current:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: CSE7766 Current
|
2020-05-20 02:13:50 +02:00
|
|
|
power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: CSE776 Power
|
2020-11-17 10:01:42 +01:00
|
|
|
- platform: ezo
|
|
|
|
id: ph_ezo
|
|
|
|
address: 99
|
2022-09-06 05:48:01 +02:00
|
|
|
unit_of_measurement: pH
|
2021-04-29 01:49:46 +02:00
|
|
|
- platform: tof10120
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Distance sensor
|
2021-04-29 01:49:46 +02:00
|
|
|
update_interval: 5s
|
2021-04-29 00:08:27 +02:00
|
|
|
- platform: fingerprint_grow
|
|
|
|
fingerprint_count:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Fingerprint Count
|
2021-04-29 00:08:27 +02:00
|
|
|
status:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Fingerprint Status
|
2021-04-29 00:08:27 +02:00
|
|
|
capacity:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Fingerprint Capacity
|
2021-04-29 00:08:27 +02:00
|
|
|
security_level:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Fingerprint Security Level
|
2021-04-29 00:08:27 +02:00
|
|
|
last_finger_id:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Fingerprint Last Finger ID
|
2021-04-29 00:08:27 +02:00
|
|
|
last_confidence:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Fingerprint Last Confidence
|
2021-05-31 06:05:49 +02:00
|
|
|
- platform: sdm_meter
|
|
|
|
phase_a:
|
|
|
|
current:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Phase A Current
|
2021-05-31 06:05:49 +02:00
|
|
|
voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Phase A Voltage
|
2021-05-31 06:05:49 +02:00
|
|
|
active_power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Phase A Power
|
2021-05-31 06:05:49 +02:00
|
|
|
power_factor:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Phase A Power Factor
|
2021-05-31 06:05:49 +02:00
|
|
|
apparent_power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Phase A Apparent Power
|
2021-05-31 06:05:49 +02:00
|
|
|
reactive_power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Phase A Reactive Power
|
2021-05-31 06:05:49 +02:00
|
|
|
phase_angle:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Phase A Phase Angle
|
2021-05-31 06:05:49 +02:00
|
|
|
phase_b:
|
|
|
|
current:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Phase B Current
|
2021-05-31 06:05:49 +02:00
|
|
|
voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Phase B Voltage
|
2021-05-31 06:05:49 +02:00
|
|
|
active_power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Phase B Power
|
2021-05-31 06:05:49 +02:00
|
|
|
power_factor:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Phase B Power Factor
|
2021-05-31 06:05:49 +02:00
|
|
|
apparent_power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Phase B Apparent Power
|
2021-05-31 06:05:49 +02:00
|
|
|
reactive_power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Phase B Reactive Power
|
2021-05-31 06:05:49 +02:00
|
|
|
phase_angle:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Phase B Phase Angle
|
2021-05-31 06:05:49 +02:00
|
|
|
phase_c:
|
|
|
|
current:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Phase C Current
|
2021-05-31 06:05:49 +02:00
|
|
|
voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Phase C Voltage
|
2021-05-31 06:05:49 +02:00
|
|
|
active_power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Phase C Power
|
2021-05-31 06:05:49 +02:00
|
|
|
power_factor:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Phase C Power Factor
|
2021-05-31 06:05:49 +02:00
|
|
|
apparent_power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Phase C Apparent Power
|
2021-05-31 06:05:49 +02:00
|
|
|
reactive_power:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Phase C Reactive Power
|
2021-05-31 06:05:49 +02:00
|
|
|
phase_angle:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Phase C Phase Angle
|
2021-05-31 06:05:49 +02:00
|
|
|
frequency:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Frequency
|
2021-05-31 06:05:49 +02:00
|
|
|
import_active_energy:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Import Active Energy
|
2021-05-31 06:05:49 +02:00
|
|
|
export_active_energy:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Export Active Energy
|
2021-05-31 06:05:49 +02:00
|
|
|
import_reactive_energy:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Import Reactive Energy
|
2021-05-31 06:05:49 +02:00
|
|
|
export_reactive_energy:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Export Reactive Energy
|
2021-08-10 10:32:16 +02:00
|
|
|
- platform: dsmr
|
|
|
|
energy_delivered_tariff1:
|
|
|
|
name: dsmr_energy_delivered_tariff1
|
2019-02-13 11:20:22 +01:00
|
|
|
|
2021-07-15 02:51:15 +02:00
|
|
|
- platform: nextion
|
|
|
|
id: testnumber
|
2022-09-06 05:48:01 +02:00
|
|
|
name: testnumber
|
2021-07-15 02:51:15 +02:00
|
|
|
variable_name: testnumber
|
|
|
|
- platform: nextion
|
|
|
|
id: testwave
|
2022-09-06 05:48:01 +02:00
|
|
|
name: testwave
|
2021-07-15 02:51:15 +02:00
|
|
|
component_id: 2
|
|
|
|
wave_channel_id: 1
|
2022-02-08 08:42:11 +01:00
|
|
|
- platform: mlx90393
|
|
|
|
oversampling: 1
|
|
|
|
filter: 0
|
2022-09-06 05:48:01 +02:00
|
|
|
gain: 3X
|
2022-02-08 08:42:11 +01:00
|
|
|
x_axis:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: mlxxaxis
|
2022-02-08 08:42:11 +01:00
|
|
|
y_axis:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: mlxyaxis
|
2022-02-08 08:42:11 +01:00
|
|
|
z_axis:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: mlxzaxis
|
2022-02-08 08:42:11 +01:00
|
|
|
resolution: 17BIT
|
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: mlxtemp
|
2022-02-08 08:42:11 +01:00
|
|
|
oversampling: 2
|
2022-07-28 01:22:49 +02:00
|
|
|
- platform: smt100
|
|
|
|
uart_id: uart10
|
|
|
|
counts:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Counts
|
2022-07-28 01:22:49 +02:00
|
|
|
dielectric_constant:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Dielectric Constant
|
2022-07-28 01:22:49 +02:00
|
|
|
temperature:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Temperature
|
2022-07-28 01:22:49 +02:00
|
|
|
moisture:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Moisture
|
2022-07-28 01:22:49 +02:00
|
|
|
voltage:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Voltage
|
2022-07-28 01:22:49 +02:00
|
|
|
update_interval: 60s
|
2022-10-19 06:06:22 +02:00
|
|
|
|
|
|
|
- platform: adc128s102
|
|
|
|
id: adc128s102_channel_0
|
|
|
|
channel: 0
|
|
|
|
|
2023-02-07 00:17:17 +01:00
|
|
|
- platform: vbus
|
|
|
|
model: deltasol c
|
|
|
|
temperature_1:
|
|
|
|
name: Temperature 1
|
|
|
|
|
2023-02-23 02:31:35 +01:00
|
|
|
- platform: kuntze
|
|
|
|
ph:
|
|
|
|
name: Kuntze pH
|
|
|
|
temperature:
|
|
|
|
name: Kuntze temperature
|
|
|
|
|
2019-02-13 11:20:22 +01:00
|
|
|
time:
|
2020-11-20 03:59:19 +01:00
|
|
|
- platform: homeassistant
|
2019-02-13 11:20:22 +01:00
|
|
|
|
|
|
|
apds9960:
|
|
|
|
address: 0x20
|
|
|
|
update_interval: 60s
|
2019-05-08 10:56:52 +02:00
|
|
|
|
2019-02-24 21:48:28 +01:00
|
|
|
mpr121:
|
|
|
|
id: mpr121_first
|
|
|
|
address: 0x5A
|
2019-02-13 11:20:22 +01:00
|
|
|
|
|
|
|
binary_sensor:
|
2021-09-22 12:03:42 +02:00
|
|
|
- platform: daly_bms
|
|
|
|
charging_mos_enabled:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Charging MOS
|
2021-09-22 12:03:42 +02:00
|
|
|
discharging_mos_enabled:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Discharging MOS
|
2019-02-13 11:20:22 +01:00
|
|
|
- platform: apds9960
|
|
|
|
direction: up
|
|
|
|
name: APDS9960 Up
|
2019-04-22 21:56:30 +02:00
|
|
|
device_class: motion
|
|
|
|
filters:
|
|
|
|
- invert
|
|
|
|
- delayed_on: 20ms
|
|
|
|
- delayed_off: 20ms
|
|
|
|
- lambda: 'return false;'
|
|
|
|
on_state:
|
|
|
|
- logger.log: New state
|
|
|
|
id: my_binary_sensor
|
2019-02-13 11:20:22 +01:00
|
|
|
- platform: apds9960
|
|
|
|
direction: down
|
|
|
|
name: APDS9960 Down
|
|
|
|
- platform: apds9960
|
|
|
|
direction: left
|
|
|
|
name: APDS9960 Left
|
|
|
|
- platform: apds9960
|
|
|
|
direction: right
|
|
|
|
name: APDS9960 Right
|
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: binary_sensor.hello_world
|
|
|
|
id: ha_hello_world_binary
|
2019-02-24 21:48:28 +01:00
|
|
|
- platform: mpr121
|
|
|
|
id: touchkey0
|
|
|
|
channel: 0
|
2022-09-06 05:48:01 +02:00
|
|
|
name: touchkey0
|
2019-02-24 21:48:28 +01:00
|
|
|
- platform: mpr121
|
|
|
|
channel: 1
|
2022-09-06 05:48:01 +02:00
|
|
|
name: touchkey1
|
2019-05-28 20:41:10 +02:00
|
|
|
id: bin1
|
2019-02-24 21:48:28 +01:00
|
|
|
- platform: mpr121
|
|
|
|
channel: 2
|
2022-09-06 05:48:01 +02:00
|
|
|
name: touchkey2
|
2019-05-28 20:41:10 +02:00
|
|
|
id: bin2
|
2019-02-24 21:48:28 +01:00
|
|
|
- platform: mpr121
|
|
|
|
channel: 3
|
2022-09-06 05:48:01 +02:00
|
|
|
name: touchkey3
|
2019-05-28 20:41:10 +02:00
|
|
|
id: bin3
|
2019-02-24 21:48:28 +01:00
|
|
|
on_press:
|
|
|
|
then:
|
|
|
|
- switch.toggle: mpr121_toggle
|
2019-04-22 21:56:30 +02:00
|
|
|
- platform: ttp229_lsf
|
|
|
|
channel: 1
|
|
|
|
name: TTP229 LSF Test
|
2019-05-10 21:44:02 +02:00
|
|
|
- platform: ttp229_bsf
|
|
|
|
channel: 1
|
|
|
|
name: TTP229 BSF Test
|
2021-04-29 00:08:27 +02:00
|
|
|
- platform: fingerprint_grow
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Fingerprint Enrolling
|
2019-05-08 10:56:52 +02:00
|
|
|
- platform: custom
|
|
|
|
lambda: |-
|
2019-05-08 11:31:06 +02:00
|
|
|
auto s = new CustomBinarySensor();
|
|
|
|
App.register_component(s);
|
2019-05-08 10:56:52 +02:00
|
|
|
return {s};
|
2019-05-08 11:31:06 +02:00
|
|
|
binary_sensors:
|
2019-05-08 10:56:52 +02:00
|
|
|
- id: custom_binary_sensor
|
|
|
|
name: Custom Binary Sensor
|
2021-07-15 02:51:15 +02:00
|
|
|
- platform: nextion
|
|
|
|
page_id: 0
|
|
|
|
component_id: 2
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Nextion Component 2 Touch
|
2021-07-15 02:51:15 +02:00
|
|
|
- platform: nextion
|
|
|
|
id: r0_sensor
|
2022-09-06 05:48:01 +02:00
|
|
|
name: R0 Sensor
|
2021-07-15 02:51:15 +02:00
|
|
|
component_name: page0.r0
|
2021-09-27 22:31:15 +02:00
|
|
|
- platform: template
|
2022-09-06 05:48:01 +02:00
|
|
|
id: cover_toggle
|
2021-09-27 22:31:15 +02:00
|
|
|
on_press:
|
|
|
|
then:
|
|
|
|
- cover.toggle: time_based_cover
|
2022-04-11 00:55:45 +02:00
|
|
|
- cover.toggle: endstop_cover
|
2022-11-09 21:40:13 +01:00
|
|
|
- cover.toggle: current_based_cover
|
2022-04-11 04:50:56 +02:00
|
|
|
- platform: hydreon_rgxx
|
2022-09-06 05:48:01 +02:00
|
|
|
hydreon_rgxx_id: hydreon_rg9
|
2022-04-11 04:50:56 +02:00
|
|
|
too_cold:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: rg9_toocold
|
2022-08-17 06:07:33 +02:00
|
|
|
em_sat:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: rg9_emsat
|
2022-08-17 06:07:33 +02:00
|
|
|
lens_bad:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: rg9_lens_bad
|
2022-01-10 11:13:39 +01:00
|
|
|
- platform: template
|
2022-09-06 05:48:01 +02:00
|
|
|
id: pzemac_reset_energy
|
2022-01-10 11:13:39 +01:00
|
|
|
on_press:
|
|
|
|
then:
|
|
|
|
- pzemac.reset_energy: pzemac1
|
2021-09-27 22:31:15 +02:00
|
|
|
|
2023-02-07 00:17:17 +01:00
|
|
|
- platform: vbus
|
|
|
|
model: deltasol_bs_plus
|
|
|
|
relay1:
|
|
|
|
name: Relay 1 On
|
|
|
|
|
2019-06-07 14:26:17 +02:00
|
|
|
globals:
|
|
|
|
- id: my_global_string
|
|
|
|
type: std::string
|
|
|
|
initial_value: '""'
|
|
|
|
|
2019-02-13 11:20:22 +01:00
|
|
|
remote_receiver:
|
|
|
|
pin: GPIO12
|
|
|
|
dump: []
|
|
|
|
|
|
|
|
status_led:
|
|
|
|
pin: GPIO2
|
|
|
|
|
|
|
|
text_sensor:
|
2021-09-22 12:03:42 +02:00
|
|
|
- platform: daly_bms
|
|
|
|
status:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: BMS Status
|
2019-02-13 11:20:22 +01:00
|
|
|
- platform: version
|
2022-09-06 05:48:01 +02:00
|
|
|
name: ESPHome Version
|
2019-02-13 11:20:22 +01:00
|
|
|
icon: mdi:icon
|
|
|
|
id: version_sensor
|
|
|
|
on_value:
|
2022-09-06 05:48:01 +02:00
|
|
|
# yamllint disable rule:line-length
|
2019-02-13 11:20:22 +01:00
|
|
|
- lambda: !lambda |-
|
|
|
|
ESP_LOGD("main", "The state is %s=%s", x.c_str(), id(version_sensor).state.c_str());
|
2022-09-06 05:48:01 +02:00
|
|
|
# yamllint enable rule:line-length
|
2019-02-13 11:20:22 +01:00
|
|
|
- script.execute: my_script
|
2019-10-20 16:15:30 +02:00
|
|
|
- script.wait: my_script
|
|
|
|
- script.stop: my_script
|
2019-02-13 11:20:22 +01:00
|
|
|
- homeassistant.service:
|
|
|
|
service: notify.html5
|
|
|
|
data:
|
|
|
|
title: New Humidity
|
|
|
|
data_template:
|
|
|
|
message: The humidity is {{ my_variable }}%.
|
|
|
|
variables:
|
|
|
|
my_variable: |-
|
|
|
|
return id(version_sensor).state;
|
|
|
|
- platform: template
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Template Text Sensor
|
2019-02-13 11:20:22 +01:00
|
|
|
lambda: |-
|
|
|
|
return {"Hello World"};
|
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: sensor.hello_world2
|
|
|
|
id: ha_hello_world2
|
2019-05-08 11:31:06 +02:00
|
|
|
- platform: custom
|
|
|
|
lambda: |-
|
|
|
|
auto s = new CustomTextSensor();
|
|
|
|
App.register_component(s);
|
|
|
|
return {s};
|
|
|
|
text_sensors:
|
|
|
|
- id: custom_text_sensor
|
|
|
|
name: Custom Text Sensor
|
2021-07-15 02:51:15 +02:00
|
|
|
- platform: nextion
|
|
|
|
name: text0
|
|
|
|
id: text0
|
|
|
|
update_interval: 4s
|
|
|
|
component_name: text0
|
2021-08-10 10:32:16 +02:00
|
|
|
- platform: dsmr
|
|
|
|
identification:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: dsmr_identification
|
2021-08-10 10:32:16 +02:00
|
|
|
p1_version:
|
2022-09-06 05:48:01 +02:00
|
|
|
name: dsmr_p1_version
|
2019-02-13 11:20:22 +01:00
|
|
|
|
|
|
|
script:
|
|
|
|
- id: my_script
|
|
|
|
then:
|
|
|
|
- lambda: 'ESP_LOGD("main", "Hello World!");'
|
|
|
|
|
2021-05-12 21:14:01 +02:00
|
|
|
sm2135:
|
|
|
|
data_pin: GPIO12
|
|
|
|
clock_pin: GPIO14
|
|
|
|
|
2019-02-24 21:48:28 +01:00
|
|
|
switch:
|
|
|
|
- platform: template
|
2022-09-06 05:48:01 +02:00
|
|
|
name: mpr121_toggle
|
2019-02-24 21:48:28 +01:00
|
|
|
id: mpr121_toggle
|
2022-09-06 05:48:01 +02:00
|
|
|
optimistic: true
|
2019-04-22 21:56:30 +02:00
|
|
|
- platform: gpio
|
|
|
|
id: gpio_switch1
|
|
|
|
pin:
|
2021-03-07 20:23:54 +01:00
|
|
|
mcp23xxx: mcp23017_hub
|
2019-04-22 21:56:30 +02:00
|
|
|
number: 0
|
|
|
|
mode: OUTPUT
|
2019-10-17 16:18:41 +02:00
|
|
|
interlock: &interlock [gpio_switch1, gpio_switch2, gpio_switch3]
|
2019-04-22 21:56:30 +02:00
|
|
|
- platform: gpio
|
|
|
|
id: gpio_switch2
|
2019-10-17 16:18:41 +02:00
|
|
|
pin:
|
2021-03-07 20:23:54 +01:00
|
|
|
mcp23xxx: mcp23008_hub
|
2019-10-17 16:18:41 +02:00
|
|
|
number: 0
|
|
|
|
mode: OUTPUT
|
|
|
|
interlock: *interlock
|
|
|
|
- platform: gpio
|
|
|
|
id: gpio_switch3
|
2019-04-22 21:56:30 +02:00
|
|
|
pin: GPIO1
|
|
|
|
interlock: *interlock
|
2019-05-08 10:56:52 +02:00
|
|
|
- platform: custom
|
|
|
|
lambda: |-
|
2019-05-08 11:31:06 +02:00
|
|
|
auto s = new CustomSwitch();
|
2019-05-08 10:56:52 +02:00
|
|
|
return {s};
|
2019-05-08 11:31:06 +02:00
|
|
|
switches:
|
2019-05-08 10:56:52 +02:00
|
|
|
- id: custom_switch
|
|
|
|
name: Custom Switch
|
2021-07-15 02:51:15 +02:00
|
|
|
- platform: nextion
|
|
|
|
id: r0
|
2022-09-06 05:48:01 +02:00
|
|
|
name: R0 Switch
|
2021-07-15 02:51:15 +02:00
|
|
|
component_name: page0.r0
|
2019-02-24 21:48:28 +01:00
|
|
|
|
2019-05-08 11:31:06 +02:00
|
|
|
custom_component:
|
2020-11-20 03:59:19 +01:00
|
|
|
lambda: |-
|
|
|
|
auto s = new CustomComponent();
|
|
|
|
s->set_update_interval(15000);
|
|
|
|
return {s};
|
2019-05-08 11:31:06 +02:00
|
|
|
|
2019-02-13 11:20:22 +01:00
|
|
|
stepper:
|
|
|
|
- platform: uln2003
|
|
|
|
id: my_stepper
|
|
|
|
pin_a: GPIO12
|
|
|
|
pin_b: GPIO13
|
|
|
|
pin_c: GPIO14
|
|
|
|
pin_d: GPIO15
|
2022-09-06 05:48:01 +02:00
|
|
|
sleep_when_done: false
|
2019-02-13 11:20:22 +01:00
|
|
|
step_mode: HALF_STEP
|
|
|
|
max_speed: 250 steps/s
|
|
|
|
acceleration: inf
|
|
|
|
deceleration: inf
|
2019-04-22 21:56:30 +02:00
|
|
|
- platform: a4988
|
|
|
|
id: my_stepper2
|
|
|
|
step_pin: GPIO1
|
|
|
|
dir_pin: GPIO2
|
|
|
|
max_speed: 0.1 steps/s
|
|
|
|
acceleration: 10 steps/s^2
|
|
|
|
deceleration: 10 steps/s^2
|
2019-02-13 11:20:22 +01:00
|
|
|
|
|
|
|
interval:
|
|
|
|
interval: 5s
|
|
|
|
then:
|
2022-09-06 05:48:01 +02:00
|
|
|
- logger.log: Interval Run
|
2019-04-22 21:56:30 +02:00
|
|
|
- stepper.set_target:
|
|
|
|
id: my_stepper2
|
|
|
|
target: 500
|
|
|
|
- stepper.set_target:
|
|
|
|
id: my_stepper
|
|
|
|
target: !lambda 'return 0;'
|
|
|
|
- stepper.report_position:
|
|
|
|
id: my_stepper2
|
|
|
|
position: 0
|
|
|
|
- stepper.report_position:
|
|
|
|
id: my_stepper
|
|
|
|
position: !lambda 'return 50/100.0;'
|
|
|
|
|
|
|
|
climate:
|
|
|
|
- platform: bang_bang
|
|
|
|
name: Bang Bang Climate
|
|
|
|
sensor: ha_hello_world
|
|
|
|
default_target_temperature_low: 18°C
|
|
|
|
default_target_temperature_high: 24°C
|
|
|
|
idle_action:
|
|
|
|
- switch.turn_on: gpio_switch1
|
|
|
|
cool_action:
|
|
|
|
- switch.turn_on: gpio_switch2
|
|
|
|
heat_action:
|
|
|
|
- switch.turn_on: gpio_switch1
|
|
|
|
away_config:
|
|
|
|
default_target_temperature_low: 16°C
|
|
|
|
default_target_temperature_high: 20°C
|
2020-07-02 03:38:51 +02:00
|
|
|
- platform: thermostat
|
|
|
|
name: Thermostat Climate
|
|
|
|
sensor: ha_hello_world
|
2022-09-26 04:59:04 +02:00
|
|
|
preset:
|
|
|
|
- name: Default Preset
|
|
|
|
default_target_temperature_low: 18°C
|
|
|
|
default_target_temperature_high: 24°C
|
|
|
|
- name: Away
|
|
|
|
default_target_temperature_low: 16°C
|
|
|
|
default_target_temperature_high: 20°C
|
2020-07-02 03:38:51 +02:00
|
|
|
idle_action:
|
|
|
|
- switch.turn_on: gpio_switch1
|
|
|
|
cool_action:
|
|
|
|
- switch.turn_on: gpio_switch2
|
2021-08-10 10:16:44 +02:00
|
|
|
supplemental_cooling_action:
|
|
|
|
- switch.turn_on: gpio_switch3
|
2020-07-02 03:38:51 +02:00
|
|
|
heat_action:
|
|
|
|
- switch.turn_on: gpio_switch1
|
2021-08-10 10:16:44 +02:00
|
|
|
supplemental_heating_action:
|
|
|
|
- switch.turn_on: gpio_switch3
|
2020-07-02 03:38:51 +02:00
|
|
|
dry_action:
|
|
|
|
- switch.turn_on: gpio_switch2
|
|
|
|
fan_only_action:
|
|
|
|
- switch.turn_on: gpio_switch1
|
|
|
|
auto_mode:
|
|
|
|
- switch.turn_on: gpio_switch2
|
|
|
|
off_mode:
|
|
|
|
- switch.turn_on: gpio_switch1
|
|
|
|
heat_mode:
|
|
|
|
- switch.turn_on: gpio_switch2
|
|
|
|
cool_mode:
|
|
|
|
- switch.turn_on: gpio_switch1
|
|
|
|
dry_mode:
|
|
|
|
- switch.turn_on: gpio_switch2
|
|
|
|
fan_only_mode:
|
|
|
|
- switch.turn_on: gpio_switch1
|
|
|
|
fan_mode_auto_action:
|
|
|
|
- switch.turn_on: gpio_switch2
|
|
|
|
fan_mode_on_action:
|
|
|
|
- switch.turn_on: gpio_switch1
|
|
|
|
fan_mode_off_action:
|
|
|
|
- switch.turn_on: gpio_switch2
|
|
|
|
fan_mode_low_action:
|
|
|
|
- switch.turn_on: gpio_switch1
|
|
|
|
fan_mode_medium_action:
|
|
|
|
- switch.turn_on: gpio_switch2
|
|
|
|
fan_mode_high_action:
|
|
|
|
- switch.turn_on: gpio_switch1
|
|
|
|
fan_mode_middle_action:
|
|
|
|
- switch.turn_on: gpio_switch2
|
|
|
|
fan_mode_focus_action:
|
|
|
|
- switch.turn_on: gpio_switch1
|
|
|
|
fan_mode_diffuse_action:
|
|
|
|
- switch.turn_on: gpio_switch2
|
2023-02-08 23:28:16 +01:00
|
|
|
fan_mode_quiet_action:
|
2020-07-02 03:38:51 +02:00
|
|
|
- switch.turn_on: gpio_switch1
|
2023-02-08 23:28:16 +01:00
|
|
|
swing_off_action:
|
2020-07-02 03:38:51 +02:00
|
|
|
- switch.turn_on: gpio_switch2
|
2023-02-08 23:28:16 +01:00
|
|
|
swing_horizontal_action:
|
2020-07-02 03:38:51 +02:00
|
|
|
- switch.turn_on: gpio_switch1
|
2023-02-08 23:28:16 +01:00
|
|
|
swing_vertical_action:
|
2020-07-02 03:38:51 +02:00
|
|
|
- switch.turn_on: gpio_switch2
|
2023-02-08 23:28:16 +01:00
|
|
|
swing_both_action:
|
|
|
|
- switch.turn_on: gpio_switch1
|
2021-08-10 10:16:44 +02:00
|
|
|
startup_delay: true
|
|
|
|
supplemental_cooling_delta: 2.0
|
|
|
|
cool_deadband: 0.5
|
|
|
|
cool_overrun: 0.5
|
|
|
|
min_cooling_off_time: 300s
|
|
|
|
min_cooling_run_time: 300s
|
|
|
|
max_cooling_run_time: 600s
|
|
|
|
supplemental_heating_delta: 2.0
|
|
|
|
heat_deadband: 0.5
|
|
|
|
heat_overrun: 0.5
|
|
|
|
min_heating_off_time: 300s
|
|
|
|
min_heating_run_time: 300s
|
|
|
|
max_heating_run_time: 600s
|
|
|
|
min_fanning_off_time: 30s
|
|
|
|
min_fanning_run_time: 30s
|
|
|
|
min_fan_mode_switching_time: 15s
|
|
|
|
min_idle_time: 30s
|
|
|
|
set_point_minimum_differential: 0.5
|
|
|
|
fan_only_action_uses_fan_mode_timer: true
|
|
|
|
fan_only_cooling: true
|
|
|
|
fan_with_cooling: true
|
|
|
|
fan_with_heating: true
|
2020-07-13 22:30:17 +02:00
|
|
|
- platform: pid
|
|
|
|
id: pid_climate
|
2022-09-06 05:48:01 +02:00
|
|
|
name: PID Climate Controller
|
2020-07-13 22:30:17 +02:00
|
|
|
sensor: ha_hello_world
|
|
|
|
default_target_temperature: 21°C
|
|
|
|
heat_output: my_slow_pwm
|
|
|
|
control_parameters:
|
|
|
|
kp: 0.0
|
|
|
|
ki: 0.0
|
|
|
|
kd: 0.0
|
2022-11-29 22:58:43 +01:00
|
|
|
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
|
2023-02-23 03:05:33 +01:00
|
|
|
- platform: haier
|
|
|
|
name: Haier AC
|
|
|
|
supported_swing_modes:
|
|
|
|
- vertical
|
|
|
|
- horizontal
|
|
|
|
- both
|
|
|
|
update_interval: 10s
|
|
|
|
uart_id: uart12
|
2020-11-02 19:34:29 +01:00
|
|
|
|
2022-08-09 02:19:42 +02:00
|
|
|
sprinkler:
|
|
|
|
- id: yard_sprinkler_ctrlr
|
2022-09-06 05:48:01 +02:00
|
|
|
main_switch: Yard Sprinklers
|
|
|
|
auto_advance_switch: Yard Sprinklers Auto Advance
|
|
|
|
reverse_switch: Yard Sprinklers Reverse
|
2022-08-09 02:19:42 +02:00
|
|
|
pump_start_pump_delay: 2s
|
|
|
|
pump_stop_valve_delay: 4s
|
|
|
|
pump_switch_off_during_valve_open_delay: true
|
|
|
|
valve_open_delay: 5s
|
|
|
|
valves:
|
2022-09-06 05:48:01 +02:00
|
|
|
- valve_switch: Yard Valve 0
|
|
|
|
enable_switch: Enable Yard Valve 0
|
2022-08-09 02:19:42 +02:00
|
|
|
pump_switch_id: gpio_switch1
|
|
|
|
run_duration: 10s
|
|
|
|
valve_switch_id: gpio_switch2
|
2022-09-06 05:48:01 +02:00
|
|
|
- valve_switch: Yard Valve 1
|
|
|
|
enable_switch: Enable Yard Valve 1
|
2022-08-09 02:19:42 +02:00
|
|
|
pump_switch_id: gpio_switch1
|
|
|
|
run_duration: 10s
|
|
|
|
valve_switch_id: gpio_switch2
|
2022-09-06 05:48:01 +02:00
|
|
|
- valve_switch: Yard Valve 2
|
|
|
|
enable_switch: Enable Yard Valve 2
|
2022-08-09 02:19:42 +02:00
|
|
|
pump_switch_id: gpio_switch1
|
|
|
|
run_duration: 10s
|
|
|
|
valve_switch_id: gpio_switch2
|
|
|
|
- id: garden_sprinkler_ctrlr
|
2022-09-06 05:48:01 +02:00
|
|
|
main_switch: Garden Sprinklers
|
|
|
|
auto_advance_switch: Garden Sprinklers Auto Advance
|
|
|
|
reverse_switch: Garden Sprinklers Reverse
|
2022-08-09 02:19:42 +02:00
|
|
|
valve_overlap: 5s
|
|
|
|
valves:
|
2022-09-06 05:48:01 +02:00
|
|
|
- valve_switch: Garden Valve 0
|
|
|
|
enable_switch: Enable Garden Valve 0
|
2022-08-09 02:19:42 +02:00
|
|
|
pump_switch_id: gpio_switch1
|
|
|
|
run_duration: 10s
|
|
|
|
valve_switch_id: gpio_switch2
|
2022-09-06 05:48:01 +02:00
|
|
|
- valve_switch: Garden Valve 1
|
|
|
|
enable_switch: Enable Garden Valve 1
|
2022-08-09 02:19:42 +02:00
|
|
|
pump_switch_id: gpio_switch1
|
|
|
|
run_duration: 10s
|
|
|
|
valve_switch_id: gpio_switch2
|
|
|
|
|
|
|
|
|
2019-04-22 21:56:30 +02:00
|
|
|
cover:
|
|
|
|
- platform: endstop
|
|
|
|
name: Endstop Cover
|
2022-04-11 00:55:45 +02:00
|
|
|
id: endstop_cover
|
2019-04-22 21:56:30 +02:00
|
|
|
stop_action:
|
|
|
|
- switch.turn_on: gpio_switch1
|
|
|
|
open_endstop: my_binary_sensor
|
|
|
|
open_action:
|
|
|
|
- switch.turn_on: gpio_switch1
|
|
|
|
open_duration: 5min
|
|
|
|
close_endstop: my_binary_sensor
|
|
|
|
close_action:
|
|
|
|
- switch.turn_on: gpio_switch2
|
|
|
|
- output.set_level:
|
|
|
|
id: out
|
|
|
|
level: 50%
|
|
|
|
- output.esp8266_pwm.set_frequency:
|
|
|
|
id: out
|
|
|
|
frequency: 500.0Hz
|
|
|
|
- output.esp8266_pwm.set_frequency:
|
|
|
|
id: out
|
|
|
|
frequency: !lambda 'return 500.0;'
|
|
|
|
- servo.write:
|
|
|
|
id: my_servo
|
|
|
|
level: -100%
|
|
|
|
- servo.write:
|
|
|
|
id: my_servo
|
|
|
|
level: !lambda 'return -1.0;'
|
|
|
|
- delay: 2s
|
|
|
|
- servo.detach: my_servo
|
|
|
|
close_duration: 4.5min
|
|
|
|
max_duration: 10min
|
|
|
|
- platform: time_based
|
|
|
|
name: Time Based Cover
|
2021-09-27 22:31:15 +02:00
|
|
|
id: time_based_cover
|
2019-04-22 21:56:30 +02:00
|
|
|
stop_action:
|
|
|
|
- switch.turn_on: gpio_switch1
|
|
|
|
open_action:
|
|
|
|
- switch.turn_on: gpio_switch1
|
|
|
|
open_duration: 5min
|
|
|
|
close_action:
|
|
|
|
- switch.turn_on: gpio_switch2
|
|
|
|
close_duration: 4.5min
|
2021-09-27 22:22:45 +02:00
|
|
|
- platform: current_based
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Current Based Cover
|
2022-11-09 21:40:13 +01:00
|
|
|
id: current_based_cover
|
2021-09-27 22:22:45 +02:00
|
|
|
open_sensor: ade7953_current_a
|
|
|
|
open_moving_current_threshold: 0.5
|
|
|
|
open_obstacle_current_threshold: 0.8
|
|
|
|
open_duration: 12s
|
|
|
|
open_action:
|
|
|
|
- switch.turn_on: gpio_switch1
|
|
|
|
close_sensor: ade7953_current_b
|
|
|
|
close_moving_current_threshold: 0.5
|
|
|
|
close_obstacle_current_threshold: 0.8
|
|
|
|
close_duration: 10s
|
|
|
|
close_action:
|
|
|
|
- switch.turn_on: gpio_switch2
|
|
|
|
stop_action:
|
|
|
|
- switch.turn_off: gpio_switch1
|
|
|
|
- switch.turn_off: gpio_switch2
|
|
|
|
obstacle_rollback: 30%
|
|
|
|
start_sensing_delay: 0.8s
|
|
|
|
malfunction_detection: true
|
|
|
|
malfunction_action:
|
|
|
|
then:
|
2022-09-06 05:48:01 +02:00
|
|
|
- logger.log: Malfunction Detected
|
2019-06-18 19:42:36 +02:00
|
|
|
- platform: template
|
|
|
|
name: Template Cover with Tilt
|
2020-11-20 03:59:19 +01:00
|
|
|
tilt_lambda: 'return 0.5;'
|
2019-06-18 19:42:36 +02:00
|
|
|
tilt_action:
|
|
|
|
- output.set_level:
|
|
|
|
id: out
|
2020-11-20 03:59:19 +01:00
|
|
|
level: !lambda 'return tilt;'
|
2019-11-21 21:57:27 +01:00
|
|
|
position_action:
|
|
|
|
- output.set_level:
|
|
|
|
id: out
|
2020-11-20 03:59:19 +01:00
|
|
|
level: !lambda 'return pos;'
|
2019-04-22 21:56:30 +02:00
|
|
|
|
|
|
|
output:
|
|
|
|
- platform: esp8266_pwm
|
|
|
|
id: out
|
|
|
|
pin: D3
|
|
|
|
frequency: 50Hz
|
2020-11-08 02:46:34 +01:00
|
|
|
- platform: esp8266_pwm
|
|
|
|
id: out2
|
|
|
|
pin: D4
|
2019-05-27 09:58:55 +02:00
|
|
|
- platform: custom
|
|
|
|
type: binary
|
|
|
|
lambda: |-
|
|
|
|
auto s = new CustomBinaryOutput();
|
|
|
|
App.register_component(s);
|
|
|
|
return {s};
|
|
|
|
outputs:
|
|
|
|
- id: custom_binary
|
2023-01-18 01:42:32 +01:00
|
|
|
- platform: sigma_delta_output
|
|
|
|
id: sddac
|
|
|
|
update_interval: 60s
|
|
|
|
pin: D4
|
|
|
|
turn_on_action:
|
|
|
|
then:
|
|
|
|
- logger.log: "Turned on"
|
|
|
|
turn_off_action:
|
|
|
|
then:
|
|
|
|
- logger.log: "Turned off"
|
|
|
|
state_change_action:
|
|
|
|
then:
|
|
|
|
- logger.log:
|
|
|
|
format: "Changed state: %d"
|
|
|
|
args: [ 'state' ]
|
2019-05-27 09:58:55 +02:00
|
|
|
- platform: custom
|
|
|
|
type: float
|
|
|
|
lambda: |-
|
|
|
|
auto s = new CustomFloatOutput();
|
|
|
|
App.register_component(s);
|
|
|
|
return {s};
|
|
|
|
outputs:
|
|
|
|
- id: custom_float
|
2020-07-13 22:30:17 +02:00
|
|
|
- platform: slow_pwm
|
|
|
|
pin: GPIO5
|
|
|
|
id: my_slow_pwm
|
|
|
|
period: 15s
|
2022-01-22 23:08:55 +01:00
|
|
|
restart_cycle_on_state_change: false
|
2021-05-12 21:14:01 +02:00
|
|
|
- platform: sm2135
|
|
|
|
id: sm2135_0
|
|
|
|
channel: 0
|
|
|
|
- platform: sm2135
|
|
|
|
id: sm2135_1
|
|
|
|
channel: 1
|
|
|
|
- platform: sm2135
|
|
|
|
id: sm2135_2
|
|
|
|
channel: 2
|
|
|
|
- platform: sm2135
|
|
|
|
id: sm2135_3
|
|
|
|
channel: 3
|
|
|
|
- platform: sm2135
|
|
|
|
id: sm2135_4
|
|
|
|
channel: 4
|
2020-07-13 22:30:17 +02:00
|
|
|
|
2019-04-22 21:56:30 +02:00
|
|
|
mcp23017:
|
2019-10-17 16:18:41 +02:00
|
|
|
id: mcp23017_hub
|
2019-12-10 11:09:35 +01:00
|
|
|
|
2019-10-17 16:18:41 +02:00
|
|
|
mcp23008:
|
|
|
|
id: mcp23008_hub
|
2019-04-22 21:56:30 +02:00
|
|
|
|
2020-06-13 01:17:13 +02:00
|
|
|
e131:
|
|
|
|
|
2019-04-22 21:56:30 +02:00
|
|
|
light:
|
|
|
|
- platform: neopixelbus
|
|
|
|
name: Neopixelbus Light
|
|
|
|
pin: GPIO1
|
|
|
|
type: GRBW
|
|
|
|
variant: SK6812
|
|
|
|
method: ESP8266_UART0
|
|
|
|
num_leds: 100
|
2020-06-13 01:17:13 +02:00
|
|
|
effects:
|
2020-06-13 01:50:09 +02:00
|
|
|
- wled:
|
2020-06-13 01:34:38 +02:00
|
|
|
- adalight:
|
2021-05-31 00:06:45 +02:00
|
|
|
uart_id: uart3
|
2020-06-13 01:17:13 +02:00
|
|
|
- e131:
|
|
|
|
universe: 1
|
2020-11-08 02:46:34 +01:00
|
|
|
- platform: hbridge
|
|
|
|
name: Icicle Lights
|
|
|
|
pin_a: out
|
|
|
|
pin_b: out2
|
2022-04-12 07:03:32 +02:00
|
|
|
- platform: sonoff_d1
|
|
|
|
uart_id: uart2
|
2022-09-06 05:48:01 +02:00
|
|
|
use_rm433_remote: false
|
2022-04-12 07:03:32 +02:00
|
|
|
name: Sonoff D1 Dimmer
|
|
|
|
id: d1_light
|
|
|
|
restore_mode: RESTORE_DEFAULT_OFF
|
2022-11-20 23:49:30 +01:00
|
|
|
- platform: shelly_dimmer
|
|
|
|
name: "Shelly Dimmer Light"
|
|
|
|
power:
|
|
|
|
name: "Shelly Dimmer Power"
|
|
|
|
voltage:
|
|
|
|
name: "Shelly Dimmer Voltage"
|
|
|
|
current:
|
|
|
|
name: "Shelly Dimmer Current"
|
|
|
|
max_brightness: 500
|
|
|
|
firmware: "51.6"
|
|
|
|
uart_id: uart11
|
2019-04-22 21:56:30 +02:00
|
|
|
|
|
|
|
servo:
|
|
|
|
id: my_servo
|
|
|
|
output: out
|
2019-11-02 20:56:42 +01:00
|
|
|
restore: true
|
2020-06-20 01:59:19 +02:00
|
|
|
min_level: $min_sub
|
|
|
|
max_level: $max_sub
|
2019-04-22 21:56:30 +02:00
|
|
|
|
|
|
|
ttp229_lsf:
|
2019-05-10 21:44:02 +02:00
|
|
|
|
|
|
|
ttp229_bsf:
|
2021-10-21 12:23:37 +02:00
|
|
|
sdo_pin: D2
|
2019-05-10 21:44:02 +02:00
|
|
|
scl_pin: D1
|
2019-06-17 20:13:52 +02:00
|
|
|
|
|
|
|
sim800l:
|
2021-05-31 00:06:45 +02:00
|
|
|
uart_id: uart4
|
2019-06-17 20:13:52 +02:00
|
|
|
on_sms_received:
|
|
|
|
- lambda: |-
|
|
|
|
std::string str;
|
|
|
|
str = sender;
|
|
|
|
str = message;
|
|
|
|
- sim800l.send_sms:
|
2022-09-06 05:48:01 +02:00
|
|
|
message: hello you
|
2019-06-17 20:13:52 +02:00
|
|
|
recipient: '+1234'
|
2021-02-25 22:11:15 +01:00
|
|
|
- sim800l.dial:
|
|
|
|
recipient: '+1234'
|
2019-10-19 21:37:05 +02:00
|
|
|
|
|
|
|
dfplayer:
|
2021-05-31 00:06:45 +02:00
|
|
|
uart_id: uart5
|
2019-10-19 21:37:05 +02:00
|
|
|
on_finished_playback:
|
|
|
|
then:
|
|
|
|
if:
|
|
|
|
condition:
|
2020-11-20 03:59:19 +01:00
|
|
|
not: dfplayer.is_playing
|
2019-10-19 21:37:05 +02:00
|
|
|
then:
|
2022-09-06 05:48:01 +02:00
|
|
|
logger.log: Playback finished event
|
2019-12-04 13:11:53 +01:00
|
|
|
tm1651:
|
|
|
|
id: tm1651_battery
|
|
|
|
clk_pin: D6
|
|
|
|
dio_pin: D5
|
2020-06-28 22:33:06 +02:00
|
|
|
|
2019-12-10 11:09:35 +01:00
|
|
|
rf_bridge:
|
2021-05-31 00:06:45 +02:00
|
|
|
uart_id: uart5
|
2019-12-10 11:09:35 +01:00
|
|
|
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
|
2020-06-28 22:33:06 +02:00
|
|
|
|
2020-11-02 19:34:29 +01:00
|
|
|
on_advanced_code_received:
|
|
|
|
- lambda: |-
|
|
|
|
uint32_t test;
|
|
|
|
std::string test_code;
|
|
|
|
test = data.length;
|
|
|
|
test = data.protocol;
|
|
|
|
test_code = data.code;
|
2022-09-06 05:48:01 +02:00
|
|
|
- rf_bridge.start_advanced_sniffing:
|
|
|
|
- rf_bridge.stop_advanced_sniffing:
|
2020-11-02 19:34:29 +01:00
|
|
|
- rf_bridge.send_advanced_code:
|
|
|
|
length: 0x04
|
|
|
|
protocol: 0x01
|
|
|
|
code: 'ABC123'
|
|
|
|
- rf_bridge.send_raw:
|
|
|
|
raw: 'AAA5070008001000ABC12355'
|
2021-01-23 23:44:20 +01:00
|
|
|
- http_request.get:
|
|
|
|
url: https://esphome.io
|
|
|
|
headers:
|
|
|
|
Content-Type: application/json
|
|
|
|
verify_ssl: false
|
|
|
|
- http_request.post:
|
|
|
|
url: https://esphome.io
|
|
|
|
verify_ssl: false
|
|
|
|
json:
|
|
|
|
key: !lambda |-
|
|
|
|
return id(version_sensor).state;
|
2022-09-06 05:48:01 +02:00
|
|
|
greeting: Hello World
|
2021-01-23 23:44:20 +01:00
|
|
|
- http_request.send:
|
|
|
|
method: PUT
|
|
|
|
url: https://esphome.io
|
|
|
|
headers:
|
|
|
|
Content-Type: application/json
|
2022-09-06 05:48:01 +02:00
|
|
|
body: Some data
|
2021-01-23 23:44:20 +01:00
|
|
|
verify_ssl: false
|
2020-11-02 19:34:29 +01:00
|
|
|
|
2020-06-28 22:33:06 +02:00
|
|
|
display:
|
|
|
|
- platform: max7219digit
|
|
|
|
cs_pin: GPIO15
|
|
|
|
num_chips: 4
|
|
|
|
rotate_chip: 0
|
|
|
|
intensity: 10
|
2022-09-06 05:48:01 +02:00
|
|
|
scroll_mode: STOP
|
2020-06-28 22:33:06 +02:00
|
|
|
id: my_matrix
|
|
|
|
lambda: |-
|
|
|
|
it.printdigit("hello");
|
2021-07-15 02:51:15 +02:00
|
|
|
- platform: nextion
|
|
|
|
uart_id: uart1
|
2022-09-06 05:48:01 +02:00
|
|
|
tft_url: http://esphome.io/default35.tft
|
2021-07-15 02:51:15 +02:00
|
|
|
update_interval: 5s
|
|
|
|
on_sleep:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGD("display","Display went to sleep");'
|
|
|
|
on_wake:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGD("display","Display woke up");'
|
2022-08-09 02:44:20 +02:00
|
|
|
on_setup:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGD("display","Display setup completed");'
|
|
|
|
on_page:
|
|
|
|
then:
|
|
|
|
lambda: 'ESP_LOGD("display","Display shows new page %u", x);'
|
|
|
|
|
2021-01-23 23:44:20 +01:00
|
|
|
|
|
|
|
http_request:
|
|
|
|
useragent: esphome/device
|
|
|
|
timeout: 10s
|
2021-04-29 00:08:27 +02:00
|
|
|
|
|
|
|
fingerprint_grow:
|
|
|
|
sensing_pin: 4
|
|
|
|
password: 0x12FE37DC
|
|
|
|
new_password: 0xA65B9840
|
|
|
|
on_finger_scan_matched:
|
|
|
|
- homeassistant.event:
|
2021-06-17 11:39:59 +02:00
|
|
|
event: esphome.${device_name}_fingerprint_grow_finger_scan_matched
|
2021-04-29 00:08:27 +02:00
|
|
|
data:
|
|
|
|
finger_id: !lambda 'return finger_id;'
|
|
|
|
confidence: !lambda 'return confidence;'
|
|
|
|
on_finger_scan_unmatched:
|
|
|
|
- homeassistant.event:
|
2021-06-17 11:39:59 +02:00
|
|
|
event: esphome.${device_name}_fingerprint_grow_finger_scan_unmatched
|
2021-04-29 00:08:27 +02:00
|
|
|
on_enrollment_scan:
|
|
|
|
- homeassistant.event:
|
2021-06-17 11:39:59 +02:00
|
|
|
event: esphome.${device_name}_fingerprint_grow_enrollment_scan
|
2021-04-29 00:08:27 +02:00
|
|
|
data:
|
|
|
|
finger_id: !lambda 'return finger_id;'
|
|
|
|
scan_num: !lambda 'return scan_num;'
|
|
|
|
on_enrollment_done:
|
|
|
|
- homeassistant.event:
|
2021-06-17 11:39:59 +02:00
|
|
|
event: esphome.${device_name}_fingerprint_grow_node_enrollment_done
|
2021-04-29 00:08:27 +02:00
|
|
|
data:
|
|
|
|
finger_id: !lambda 'return finger_id;'
|
|
|
|
on_enrollment_failed:
|
|
|
|
- homeassistant.event:
|
2021-06-17 11:39:59 +02:00
|
|
|
event: esphome.${device_name}_fingerprint_grow_enrollment_failed
|
2021-04-29 00:08:27 +02:00
|
|
|
data:
|
|
|
|
finger_id: !lambda 'return finger_id;'
|
2021-05-31 00:06:45 +02:00
|
|
|
uart_id: uart6
|
2021-08-10 10:32:16 +02:00
|
|
|
|
|
|
|
dsmr:
|
|
|
|
decryption_key: 00112233445566778899aabbccddeeff
|
|
|
|
uart_id: uart6
|
2021-11-17 18:24:02 +01:00
|
|
|
max_telegram_length: 1000
|
2021-11-23 09:34:10 +01:00
|
|
|
request_pin: D5
|
|
|
|
request_interval: 20s
|
2021-11-29 16:40:53 +01:00
|
|
|
receive_timeout: 100ms
|
2021-09-22 12:03:42 +02:00
|
|
|
|
|
|
|
daly_bms:
|
|
|
|
update_interval: 20s
|
|
|
|
uart_id: uart1
|
2022-01-11 04:59:57 +01:00
|
|
|
|
2022-01-26 10:20:45 +01:00
|
|
|
qr_code:
|
|
|
|
- id: homepage_qr
|
|
|
|
value: https://esphome.io/index.html
|
|
|
|
|
2022-01-22 12:13:46 +01:00
|
|
|
button:
|
2022-01-24 21:30:48 +01:00
|
|
|
- platform: output
|
|
|
|
id: output_button
|
|
|
|
output: out
|
|
|
|
duration: 100ms
|
2022-01-22 12:13:46 +01:00
|
|
|
- platform: wake_on_lan
|
|
|
|
target_mac_address: 12:34:56:78:90:ab
|
|
|
|
name: wol_test_1
|
|
|
|
id: wol_1
|
2022-09-12 00:23:46 +02:00
|
|
|
- platform: factory_reset
|
|
|
|
name: Restart Button (Factory Default Settings)
|
|
|
|
|
2022-01-22 12:13:46 +01:00
|
|
|
|
2022-01-11 04:59:57 +01:00
|
|
|
cd74hc4067:
|
|
|
|
pin_s0: GPIO12
|
|
|
|
pin_s1: GPIO13
|
|
|
|
pin_s2: GPIO14
|
|
|
|
pin_s3: GPIO15
|
2022-10-19 06:06:22 +02:00
|
|
|
|
|
|
|
adc128s102:
|
|
|
|
cs_pin: GPIO12
|