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
|
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-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
|
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-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
|
2023-03-09 02:54:51 +01: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:
|
2023-03-09 02:54:51 +01:00
|
|
|
- dfplayer.play: !lambda "return file;"
|
2019-10-19 21:37:05 +02:00
|
|
|
- service: dfplayer_play_loop
|
|
|
|
variables:
|
|
|
|
file: int
|
|
|
|
loop_: bool
|
|
|
|
then:
|
|
|
|
- dfplayer.play:
|
2023-03-09 02:54:51 +01:00
|
|
|
file: !lambda "return file;"
|
|
|
|
loop: !lambda "return loop_;"
|
2019-10-19 21:37:05 +02:00
|
|
|
- service: dfplayer_play_folder
|
|
|
|
variables:
|
|
|
|
folder: int
|
|
|
|
file: int
|
|
|
|
then:
|
|
|
|
- dfplayer.play_folder:
|
2023-03-09 02:54:51 +01:00
|
|
|
folder: !lambda "return folder;"
|
|
|
|
file: !lambda "return file;"
|
2019-10-19 21:37:05 +02:00
|
|
|
|
|
|
|
- service: dfplayer_play_loo_folder
|
|
|
|
variables:
|
|
|
|
folder: int
|
|
|
|
then:
|
|
|
|
- dfplayer.play_folder:
|
2023-03-09 02:54:51 +01:00
|
|
|
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:
|
2023-03-09 02:54:51 +01:00
|
|
|
- dfplayer.set_volume: !lambda "return volume;"
|
2019-10-19 21:37:05 +02:00
|
|
|
- service: dfplayer_set_eq
|
|
|
|
variables:
|
|
|
|
preset: int
|
|
|
|
then:
|
2022-09-06 05:48:01 +02:00
|
|
|
# yamllint disable rule:line-length
|
2023-03-09 02:54:51 +01: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
|
2023-03-09 02:54:51 +01:00
|
|
|
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
|
2023-03-09 02:54:51 +01:00
|
|
|
level: !lambda "return level;"
|
2019-12-04 13:11:53 +01:00
|
|
|
- service: battery_brightness
|
|
|
|
variables:
|
|
|
|
brightness: int
|
|
|
|
then:
|
|
|
|
- tm1651.set_brightness:
|
|
|
|
id: tm1651_battery
|
2023-03-09 02:54:51 +01:00
|
|
|
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:
|
2023-03-09 02:54:51 +01:00
|
|
|
finger_id: !lambda "return finger_id;"
|
|
|
|
num_scans: !lambda "return num_scans;"
|
2021-04-29 00:08:27 +02:00
|
|
|
- service: fingerprint_grow_cancel_enroll
|
|
|
|
then:
|
|
|
|
- fingerprint_grow.cancel_enroll:
|
|
|
|
- service: fingerprint_grow_delete
|
|
|
|
variables:
|
|
|
|
finger_id: int
|
|
|
|
then:
|
|
|
|
- fingerprint_grow.delete:
|
2023-03-09 02:54:51 +01:00
|
|
|
finger_id: !lambda "return finger_id;"
|
2021-04-29 00:08:27 +02:00
|
|
|
- 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:
|
2023-03-09 02:54:51 +01:00
|
|
|
ssid: "MySSID"
|
|
|
|
password: "password1"
|
2019-02-13 11:20:22 +01:00
|
|
|
|
|
|
|
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:
|
|
|
|
|
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
|
2023-03-19 23:39:02 +01:00
|
|
|
|
2019-02-13 11:20:22 +01:00
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: sensor.hello_world
|
|
|
|
id: ha_hello_world
|
2023-03-19 23:39:02 +01:00
|
|
|
|
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
|
2019-05-29 11:15:08 +02:00
|
|
|
|
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
|
2023-03-19 23:39:02 +01:00
|
|
|
|
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:
|
2023-03-09 02:54:51 +01:00
|
|
|
name: BL0942 Voltage
|
2022-09-11 23:36:09 +02:00
|
|
|
current:
|
2023-03-09 02:54:51 +01:00
|
|
|
name: BL0942 Current
|
2022-09-11 23:36:09 +02:00
|
|
|
power:
|
2023-03-09 02:54:51 +01:00
|
|
|
name: BL0942 Power
|
2022-09-11 23:36:09 +02:00
|
|
|
energy:
|
2023-03-09 02:54:51 +01:00
|
|
|
name: BL0942 Energy
|
2022-09-11 23:36:09 +02:00
|
|
|
frequency:
|
2023-03-09 02:54:51 +01:00
|
|
|
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
|
2023-03-08 20:00:44 +01:00
|
|
|
id: pzemdc1
|
2019-10-20 19:24:20 +02:00
|
|
|
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
|
2023-03-19 23:39:02 +01:00
|
|
|
|
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
|
2023-03-15 23:21:10 +01:00
|
|
|
pm_1_0:
|
|
|
|
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
|
2023-03-15 23:21:10 +01:00
|
|
|
pm_10_0:
|
|
|
|
name: PM 10.0 Concentration
|
|
|
|
pm_1_0_std:
|
|
|
|
name: PM 1.0 Standard Atmospher Concentration
|
|
|
|
pm_2_5_std:
|
|
|
|
name: PM 2.5 Standard Atmospher Concentration
|
|
|
|
pm_10_0_std:
|
|
|
|
name: PM 10.0 Standard Atmospher Concentration
|
|
|
|
pm_0_3um:
|
|
|
|
name: Particulate Count >0.3um
|
|
|
|
pm_0_5um:
|
|
|
|
name: Particulate Count >0.5um
|
|
|
|
pm_1_0um:
|
|
|
|
name: Particulate Count >1.0um
|
|
|
|
pm_2_5um:
|
|
|
|
name: Particulate Count >2.5um
|
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
|
2023-03-19 23:39:02 +01:00
|
|
|
|
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-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
|
|
|
|
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
|
|
|
|
|
|
|
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
|
2023-03-19 23:39:02 +01:00
|
|
|
|
2019-02-13 11:20:22 +01:00
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: binary_sensor.hello_world
|
|
|
|
id: ha_hello_world_binary
|
2023-03-19 23:39:02 +01:00
|
|
|
|
2021-04-29 00:08:27 +02:00
|
|
|
- platform: fingerprint_grow
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Fingerprint Enrolling
|
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
|
2023-03-19 23:39:02 +01:00
|
|
|
|
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
|
2023-03-08 20:00:44 +01:00
|
|
|
- platform: template
|
|
|
|
id: pzemdc_reset_energy
|
|
|
|
on_press:
|
|
|
|
then:
|
|
|
|
- pzemdc.reset_energy: pzemdc1
|
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
|
|
|
|
|
2023-03-19 23:39:02 +01:00
|
|
|
- platform: gpio
|
|
|
|
id: bin1
|
|
|
|
pin: 1
|
|
|
|
- platform: gpio
|
|
|
|
id: bin2
|
|
|
|
pin: 2
|
|
|
|
- platform: gpio
|
|
|
|
id: bin3
|
|
|
|
pin: 3
|
|
|
|
|
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
|
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!");'
|
|
|
|
|
2019-02-24 21:48:28 +01:00
|
|
|
switch:
|
2019-04-22 21:56:30 +02:00
|
|
|
- platform: gpio
|
|
|
|
id: gpio_switch1
|
2023-03-19 23:39:02 +01:00
|
|
|
pin: 1
|
2019-04-22 21:56:30 +02:00
|
|
|
- platform: gpio
|
|
|
|
id: gpio_switch2
|
2023-03-19 23:39:02 +01:00
|
|
|
pin: 2
|
2019-10-17 16:18:41 +02:00
|
|
|
- platform: gpio
|
|
|
|
id: gpio_switch3
|
2023-03-19 23:39:02 +01:00
|
|
|
pin: 3
|
|
|
|
|
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-04-22 21:56:30 +02:00
|
|
|
|
|
|
|
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:
|
2023-03-09 02:54:51 +01:00
|
|
|
- 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
|
|
|
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
|
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
|
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
|
|
|
|
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
|
2023-03-09 02:54:51 +01:00
|
|
|
recipient: "+1234"
|
2021-02-25 22:11:15 +01:00
|
|
|
- sim800l.dial:
|
2023-03-09 02:54:51 +01:00
|
|
|
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
|
2023-03-09 02:54:51 +01:00
|
|
|
code: "ABC123"
|
2020-11-02 19:34:29 +01:00
|
|
|
- rf_bridge.send_raw:
|
2023-03-09 02:54:51 +01:00
|
|
|
raw: "AAA5070008001000ABC12355"
|
2023-03-19 23:39:02 +01:00
|
|
|
|
2020-11-02 19:34:29 +01:00
|
|
|
|
2020-06-28 22:33:06 +02:00
|
|
|
display:
|
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-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:
|
2023-03-09 02:54:51 +01:00
|
|
|
finger_id: !lambda "return finger_id;"
|
|
|
|
confidence: !lambda "return confidence;"
|
2021-04-29 00:08:27 +02:00
|
|
|
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:
|
2023-03-09 02:54:51 +01:00
|
|
|
finger_id: !lambda "return finger_id;"
|
|
|
|
scan_num: !lambda "return scan_num;"
|
2021-04-29 00:08:27 +02:00
|
|
|
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:
|
2023-03-09 02:54:51 +01:00
|
|
|
finger_id: !lambda "return finger_id;"
|
2021-04-29 00:08:27 +02:00
|
|
|
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:
|
2023-03-09 02:54:51 +01:00
|
|
|
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
|