2022-09-06 05:48:01 +02:00
|
|
|
---
|
2020-05-27 00:33:28 +02:00
|
|
|
esphome:
|
|
|
|
name: $devicename
|
|
|
|
platform: ESP32
|
|
|
|
board: nodemcu-32s
|
|
|
|
build_path: build/test4
|
|
|
|
|
|
|
|
substitutions:
|
2020-07-30 00:02:34 +02:00
|
|
|
devicename: test-4
|
2020-05-27 00:33:28 +02:00
|
|
|
|
|
|
|
ethernet:
|
|
|
|
type: LAN8720
|
|
|
|
mdc_pin: GPIO23
|
|
|
|
mdio_pin: GPIO25
|
|
|
|
clk_mode: GPIO0_IN
|
|
|
|
phy_addr: 0
|
|
|
|
power_pin: GPIO25
|
|
|
|
manual_ip:
|
|
|
|
static_ip: 192.168.178.56
|
|
|
|
gateway: 192.168.178.1
|
|
|
|
subnet: 255.255.255.0
|
|
|
|
domain: .local
|
|
|
|
|
2023-09-27 10:38:43 +02:00
|
|
|
network:
|
|
|
|
enable_ipv6: true
|
|
|
|
|
2020-05-27 00:33:28 +02:00
|
|
|
api:
|
|
|
|
|
|
|
|
i2c:
|
|
|
|
sda: 21
|
|
|
|
scl: 22
|
2022-09-06 05:48:01 +02:00
|
|
|
scan: false
|
2020-05-27 00:33:28 +02:00
|
|
|
|
|
|
|
spi:
|
2023-09-30 03:48:51 +02:00
|
|
|
- id: spi_id_1
|
2020-05-27 00:33:28 +02:00
|
|
|
clk_pin: GPIO21
|
|
|
|
mosi_pin: GPIO22
|
|
|
|
miso_pin: GPIO23
|
2023-09-08 09:27:19 +02:00
|
|
|
interface: hardware
|
2023-09-30 03:48:51 +02:00
|
|
|
- id: spi_id_2
|
|
|
|
clk_pin: GPIO32
|
|
|
|
mosi_pin: GPIO33
|
|
|
|
interface: hardware
|
2020-05-27 00:33:28 +02:00
|
|
|
|
|
|
|
uart:
|
2023-08-07 02:22:18 +02:00
|
|
|
- id: uart115200
|
|
|
|
tx_pin: GPIO22
|
|
|
|
rx_pin: GPIO23
|
|
|
|
baud_rate: 115200
|
|
|
|
- id: uart9600
|
|
|
|
tx_pin: GPIO22
|
|
|
|
rx_pin: GPIO23
|
|
|
|
baud_rate: 9600
|
2020-05-27 00:33:28 +02:00
|
|
|
|
|
|
|
ota:
|
2022-09-06 05:48:01 +02:00
|
|
|
safe_mode: true
|
2020-05-27 00:33:28 +02:00
|
|
|
port: 3286
|
|
|
|
|
|
|
|
logger:
|
|
|
|
level: DEBUG
|
|
|
|
|
2023-09-05 21:38:58 +02:00
|
|
|
debug:
|
|
|
|
|
2020-05-27 00:33:28 +02:00
|
|
|
web_server:
|
2021-11-10 20:31:22 +01:00
|
|
|
ota: false
|
2020-05-27 00:33:28 +02:00
|
|
|
auth:
|
|
|
|
username: admin
|
|
|
|
password: admin
|
2021-11-29 16:52:20 +01:00
|
|
|
include_internal: true
|
2020-05-27 00:33:28 +02:00
|
|
|
|
2020-11-10 23:31:28 +01:00
|
|
|
time:
|
|
|
|
- platform: sntp
|
|
|
|
id: sntp_time
|
|
|
|
|
2020-07-11 22:52:29 +02:00
|
|
|
tuya:
|
2020-11-10 23:31:28 +01:00
|
|
|
time_id: sntp_time
|
2023-08-07 02:22:18 +02:00
|
|
|
uart_id: uart115200
|
2022-05-15 21:44:14 +02:00
|
|
|
status_pin:
|
|
|
|
number: 14
|
|
|
|
inverted: true
|
2020-07-11 22:52:29 +02:00
|
|
|
|
2022-05-15 21:49:40 +02:00
|
|
|
select:
|
|
|
|
- platform: tuya
|
|
|
|
id: tuya_select
|
|
|
|
enum_datapoint: 42
|
|
|
|
options:
|
|
|
|
0: Internal
|
|
|
|
1: Floor
|
|
|
|
2: Both
|
|
|
|
|
2021-08-10 21:48:32 +02:00
|
|
|
pipsolar:
|
2022-09-06 05:48:01 +02:00
|
|
|
id: inverter0
|
2023-08-07 02:22:18 +02:00
|
|
|
uart_id: uart115200
|
2021-08-10 21:48:32 +02:00
|
|
|
|
2021-10-21 19:55:19 +02:00
|
|
|
sx1509:
|
|
|
|
- id: sx1509_hub
|
|
|
|
address: 0x3E
|
|
|
|
|
2022-01-10 00:04:48 +01:00
|
|
|
mcp3204:
|
2023-09-30 03:48:51 +02:00
|
|
|
spi_id: spi_id_1
|
2022-01-10 00:04:48 +01:00
|
|
|
cs_pin: GPIO23
|
|
|
|
|
2022-06-21 07:12:15 +02:00
|
|
|
dac7678:
|
2022-09-06 05:48:01 +02:00
|
|
|
address: 0x4A
|
|
|
|
id: dac7678_hub1
|
|
|
|
internal_reference: true
|
2022-06-21 07:12:15 +02:00
|
|
|
|
2020-05-27 00:33:28 +02:00
|
|
|
sensor:
|
|
|
|
- platform: homeassistant
|
|
|
|
entity_id: sensor.hello_world
|
|
|
|
id: ha_hello_world
|
2020-07-12 00:46:10 +02:00
|
|
|
- platform: tuya
|
|
|
|
id: tuya_sensor
|
|
|
|
sensor_datapoint: 1
|
2021-08-10 21:48:32 +02:00
|
|
|
- platform: pipsolar
|
|
|
|
pipsolar_id: inverter0
|
|
|
|
grid_rating_voltage:
|
|
|
|
id: inverter0_grid_rating_voltage
|
|
|
|
name: inverter0_grid_rating_voltage
|
|
|
|
grid_rating_current:
|
|
|
|
id: inverter0_grid_rating_current
|
|
|
|
name: inverter0_grid_rating_current
|
|
|
|
ac_output_rating_voltage:
|
|
|
|
id: inverter0_ac_output_rating_voltage
|
|
|
|
name: inverter0_ac_output_rating_voltage
|
|
|
|
ac_output_rating_frequency:
|
|
|
|
id: inverter0_ac_output_rating_frequency
|
|
|
|
name: inverter0_ac_output_rating_frequency
|
|
|
|
ac_output_rating_current:
|
|
|
|
id: inverter0_ac_output_rating_current
|
|
|
|
name: inverter0_ac_output_rating_current
|
|
|
|
ac_output_rating_apparent_power:
|
|
|
|
id: inverter0_ac_output_rating_apparent_power
|
|
|
|
name: inverter0_ac_output_rating_apparent_power
|
|
|
|
ac_output_rating_active_power:
|
|
|
|
id: inverter0_ac_output_rating_active_power
|
|
|
|
name: inverter0_ac_output_rating_active_power
|
|
|
|
battery_rating_voltage:
|
|
|
|
id: inverter0_battery_rating_voltage
|
|
|
|
name: inverter0_battery_rating_voltage
|
|
|
|
battery_recharge_voltage:
|
|
|
|
id: inverter0_battery_recharge_voltage
|
|
|
|
name: inverter0_battery_recharge_voltage
|
|
|
|
battery_under_voltage:
|
|
|
|
id: inverter0_battery_under_voltage
|
|
|
|
name: inverter0_battery_under_voltage
|
|
|
|
battery_bulk_voltage:
|
|
|
|
id: inverter0_battery_bulk_voltage
|
|
|
|
name: inverter0_battery_bulk_voltage
|
|
|
|
battery_float_voltage:
|
|
|
|
id: inverter0_battery_float_voltage
|
|
|
|
name: inverter0_battery_float_voltage
|
|
|
|
battery_type:
|
|
|
|
id: inverter0_battery_type
|
|
|
|
name: inverter0_battery_type
|
|
|
|
current_max_ac_charging_current:
|
|
|
|
id: inverter0_current_max_ac_charging_current
|
|
|
|
name: inverter0_current_max_ac_charging_current
|
|
|
|
current_max_charging_current:
|
|
|
|
id: inverter0_current_max_charging_current
|
|
|
|
name: inverter0_current_max_charging_current
|
|
|
|
input_voltage_range:
|
|
|
|
id: inverter0_input_voltage_range
|
|
|
|
name: inverter0_input_voltage_range
|
|
|
|
output_source_priority:
|
|
|
|
id: inverter0_output_source_priority
|
|
|
|
name: inverter0_output_source_priority
|
|
|
|
charger_source_priority:
|
|
|
|
id: inverter0_charger_source_priority
|
|
|
|
name: inverter0_charger_source_priority
|
|
|
|
parallel_max_num:
|
|
|
|
id: inverter0_parallel_max_num
|
|
|
|
name: inverter0_parallel_max_num
|
|
|
|
machine_type:
|
|
|
|
id: inverter0_machine_type
|
|
|
|
name: inverter0_machine_type
|
|
|
|
topology:
|
|
|
|
id: inverter0_topology
|
|
|
|
name: inverter0_topology
|
|
|
|
output_mode:
|
|
|
|
id: inverter0_output_mode
|
|
|
|
name: inverter0_output_mode
|
|
|
|
battery_redischarge_voltage:
|
|
|
|
id: inverter0_battery_redischarge_voltage
|
|
|
|
name: inverter0_battery_redischarge_voltage
|
|
|
|
pv_ok_condition_for_parallel:
|
|
|
|
id: inverter0_pv_ok_condition_for_parallel
|
|
|
|
name: inverter0_pv_ok_condition_for_parallel
|
|
|
|
pv_power_balance:
|
|
|
|
id: inverter0_pv_power_balance
|
|
|
|
name: inverter0_pv_power_balance
|
|
|
|
grid_voltage:
|
|
|
|
id: inverter0_grid_voltage
|
|
|
|
name: inverter0_grid_voltage
|
|
|
|
grid_frequency:
|
|
|
|
id: inverter0_grid_frequency
|
|
|
|
name: inverter0_grid_frequency
|
|
|
|
ac_output_voltage:
|
|
|
|
id: inverter0_ac_output_voltage
|
|
|
|
name: inverter0_ac_output_voltage
|
|
|
|
ac_output_frequency:
|
|
|
|
id: inverter0_ac_output_frequency
|
|
|
|
name: inverter0_ac_output_frequency
|
|
|
|
ac_output_apparent_power:
|
|
|
|
id: inverter0_ac_output_apparent_power
|
|
|
|
name: inverter0_ac_output_apparent_power
|
|
|
|
ac_output_active_power:
|
|
|
|
id: inverter0_ac_output_active_power
|
|
|
|
name: inverter0_ac_output_active_power
|
|
|
|
output_load_percent:
|
|
|
|
id: inverter0_output_load_percent
|
|
|
|
name: inverter0_output_load_percent
|
|
|
|
bus_voltage:
|
|
|
|
id: inverter0_bus_voltage
|
|
|
|
name: inverter0_bus_voltage
|
|
|
|
battery_voltage:
|
|
|
|
id: inverter0_battery_voltage
|
|
|
|
name: inverter0_battery_voltage
|
|
|
|
battery_charging_current:
|
|
|
|
id: inverter0_battery_charging_current
|
|
|
|
name: inverter0_battery_charging_current
|
|
|
|
battery_capacity_percent:
|
|
|
|
id: inverter0_battery_capacity_percent
|
|
|
|
name: inverter0_battery_capacity_percent
|
|
|
|
inverter_heat_sink_temperature:
|
|
|
|
id: inverter0_inverter_heat_sink_temperature
|
|
|
|
name: inverter0_inverter_heat_sink_temperature
|
|
|
|
pv_input_current_for_battery:
|
|
|
|
id: inverter0_pv_input_current_for_battery
|
|
|
|
name: inverter0_pv_input_current_for_battery
|
|
|
|
pv_input_voltage:
|
|
|
|
id: inverter0_pv_input_voltage
|
|
|
|
name: inverter0_pv_input_voltage
|
|
|
|
battery_voltage_scc:
|
|
|
|
id: inverter0_battery_voltage_scc
|
|
|
|
name: inverter0_battery_voltage_scc
|
|
|
|
battery_discharge_current:
|
|
|
|
id: inverter0_battery_discharge_current
|
|
|
|
name: inverter0_battery_discharge_current
|
|
|
|
battery_voltage_offset_for_fans_on:
|
|
|
|
id: inverter0_battery_voltage_offset_for_fans_on
|
|
|
|
name: inverter0_battery_voltage_offset_for_fans_on
|
|
|
|
eeprom_version:
|
|
|
|
id: inverter0_eeprom_version
|
|
|
|
name: inverter0_eeprom_version
|
|
|
|
pv_charging_power:
|
|
|
|
id: inverter0_pv_charging_power
|
|
|
|
name: inverter0_pv_charging_power
|
2022-09-06 05:48:01 +02:00
|
|
|
- platform: hrxl_maxsonar_wr
|
|
|
|
name: Rainwater Tank Level
|
2023-08-07 02:22:18 +02:00
|
|
|
uart_id: uart115200
|
2021-07-29 11:37:31 +02:00
|
|
|
filters:
|
|
|
|
- sliding_window_moving_average:
|
|
|
|
window_size: 12
|
|
|
|
send_every: 12
|
|
|
|
- or:
|
2022-09-06 05:48:01 +02:00
|
|
|
- throttle: 20min
|
|
|
|
- delta: 0.02
|
2022-01-10 00:04:48 +01:00
|
|
|
- platform: mcp3204
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MCP3204 Pin 1
|
2022-01-10 00:04:48 +01:00
|
|
|
number: 1
|
2022-02-20 21:13:37 +01:00
|
|
|
id: mcp_sensor
|
|
|
|
- platform: copy
|
|
|
|
source_id: mcp_sensor
|
2022-09-06 05:48:01 +02:00
|
|
|
name: MCP binary sensor copy
|
2022-09-08 12:30:07 +02:00
|
|
|
- platform: ufire_ec
|
|
|
|
id: ufire_ec_board
|
|
|
|
temperature:
|
|
|
|
name: Ufire Temperature
|
|
|
|
ec:
|
|
|
|
name: Ufire EC
|
|
|
|
temperature_compensation: 20.0
|
|
|
|
temperature_coefficient: 0.019
|
2022-09-14 06:51:20 +02:00
|
|
|
- platform: ufire_ise
|
|
|
|
id: ufire_ise_board
|
|
|
|
temperature:
|
|
|
|
name: Ufire Temperature
|
|
|
|
ph:
|
|
|
|
name: Ufire pH
|
2023-08-07 02:22:18 +02:00
|
|
|
- platform: a01nyub
|
|
|
|
id: a01nyub_sensor
|
|
|
|
name: "a01nyub Distance"
|
|
|
|
uart_id: uart9600
|
2021-10-21 19:55:19 +02:00
|
|
|
|
2020-05-27 00:33:28 +02:00
|
|
|
#
|
|
|
|
# platform sensor.apds9960 requires component apds9960
|
|
|
|
#
|
|
|
|
# - platform: apds9960
|
|
|
|
# type: proximity
|
|
|
|
# name: APDS9960 Proximity
|
|
|
|
# - 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
|
2020-07-11 22:52:29 +02:00
|
|
|
|
2020-07-12 00:50:41 +02:00
|
|
|
binary_sensor:
|
|
|
|
- platform: tuya
|
|
|
|
id: tuya_binary_sensor
|
|
|
|
sensor_datapoint: 1
|
2021-08-10 21:48:32 +02:00
|
|
|
- platform: pipsolar
|
|
|
|
pipsolar_id: inverter0
|
|
|
|
add_sbu_priority_version:
|
|
|
|
id: inverter0_add_sbu_priority_version
|
|
|
|
name: inverter0_add_sbu_priority_version
|
|
|
|
configuration_status:
|
|
|
|
id: inverter0_configuration_status
|
|
|
|
name: inverter0_configuration_status
|
|
|
|
scc_firmware_version:
|
|
|
|
id: inverter0_scc_firmware_version
|
|
|
|
name: inverter0_scc_firmware_version
|
|
|
|
load_status:
|
|
|
|
id: inverter0_load_status
|
|
|
|
name: inverter0_load_status
|
|
|
|
battery_voltage_to_steady_while_charging:
|
|
|
|
id: inverter0_battery_voltage_to_steady_while_charging
|
|
|
|
name: inverter0_battery_voltage_to_steady_while_charging
|
|
|
|
charging_status:
|
|
|
|
id: inverter0_charging_status
|
|
|
|
name: inverter0_charging_status
|
|
|
|
scc_charging_status:
|
|
|
|
id: inverter0_scc_charging_status
|
|
|
|
name: inverter0_scc_charging_status
|
|
|
|
ac_charging_status:
|
|
|
|
id: inverter0_ac_charging_status
|
|
|
|
name: inverter0_ac_charging_status
|
|
|
|
charging_to_floating_mode:
|
|
|
|
id: inverter0_charging_to_floating_mode
|
|
|
|
name: inverter0_charging_to_floating_mode
|
|
|
|
switch_on:
|
|
|
|
id: inverter0_switch_on
|
|
|
|
name: inverter0_switch_on
|
|
|
|
dustproof_installed:
|
|
|
|
id: inverter0_dustproof_installed
|
|
|
|
name: inverter0_dustproof_installed
|
|
|
|
silence_buzzer_open_buzzer:
|
|
|
|
id: inverter0_silence_buzzer_open_buzzer
|
|
|
|
name: inverter0_silence_buzzer_open_buzzer
|
|
|
|
overload_bypass_function:
|
|
|
|
id: inverter0_overload_bypass_function
|
|
|
|
name: inverter0_overload_bypass_function
|
|
|
|
lcd_escape_to_default:
|
|
|
|
id: inverter0_lcd_escape_to_default
|
|
|
|
name: inverter0_lcd_escape_to_default
|
|
|
|
overload_restart_function:
|
|
|
|
id: inverter0_overload_restart_function
|
|
|
|
name: inverter0_overload_restart_function
|
|
|
|
over_temperature_restart_function:
|
|
|
|
id: inverter0_over_temperature_restart_function
|
|
|
|
name: inverter0_over_temperature_restart_function
|
|
|
|
backlight_on:
|
|
|
|
id: inverter0_backlight_on
|
|
|
|
name: inverter0_backlight_on
|
2021-05-13 22:36:53 +02:00
|
|
|
- platform: template
|
|
|
|
id: ar1
|
2022-09-06 05:48:01 +02:00
|
|
|
lambda: "return {};"
|
2021-05-13 22:36:53 +02:00
|
|
|
filters:
|
|
|
|
- autorepeat:
|
2022-09-06 05:48:01 +02:00
|
|
|
- delay: 2s
|
|
|
|
time_off: 100ms
|
|
|
|
time_on: 900ms
|
|
|
|
- delay: 4s
|
|
|
|
time_off: 100ms
|
|
|
|
time_on: 400ms
|
2021-05-13 22:36:53 +02:00
|
|
|
on_state:
|
|
|
|
then:
|
|
|
|
- lambda: 'ESP_LOGI("ar1:", "%d", x);'
|
2022-10-10 23:10:22 +02:00
|
|
|
- platform: touchscreen
|
|
|
|
touchscreen_id: xpt_touchscreen
|
2021-05-17 03:03:58 +02:00
|
|
|
id: touch_key0
|
|
|
|
x_min: 80
|
|
|
|
x_max: 160
|
|
|
|
y_min: 106
|
|
|
|
y_max: 212
|
2022-10-10 23:10:22 +02:00
|
|
|
on_press:
|
|
|
|
- logger.log: Touched
|
|
|
|
|
2021-10-21 19:55:19 +02:00
|
|
|
- platform: gpio
|
|
|
|
name: GPIO SX1509 test
|
|
|
|
pin:
|
|
|
|
sx1509: sx1509_hub
|
|
|
|
number: 3
|
2020-07-12 00:50:41 +02:00
|
|
|
|
2022-01-26 04:26:46 +01:00
|
|
|
- platform: touchscreen
|
2022-02-08 09:50:25 +01:00
|
|
|
touchscreen_id: lilygo_touchscreen
|
2022-01-26 04:26:46 +01:00
|
|
|
id: touch_key1
|
|
|
|
x_min: 0
|
|
|
|
x_max: 100
|
|
|
|
y_min: 0
|
|
|
|
y_max: 100
|
|
|
|
on_press:
|
2022-09-06 05:48:01 +02:00
|
|
|
- logger.log: Touched
|
2022-01-26 04:26:46 +01:00
|
|
|
|
2023-05-01 23:51:48 +02:00
|
|
|
- platform: gpio
|
|
|
|
name: MaxIn Pin 4
|
|
|
|
pin:
|
|
|
|
max6956: max6956_1
|
|
|
|
number: 4
|
|
|
|
mode:
|
|
|
|
input: true
|
|
|
|
pullup: true
|
|
|
|
inverted: false
|
|
|
|
|
2023-06-19 05:26:06 +02:00
|
|
|
- platform: gpio
|
|
|
|
name: XL9535 Pin 0
|
|
|
|
pin:
|
|
|
|
xl9535: xl9535_hub
|
|
|
|
number: 0
|
|
|
|
mode:
|
|
|
|
input: true
|
|
|
|
inverted: false
|
|
|
|
|
2020-07-12 00:04:34 +02:00
|
|
|
climate:
|
|
|
|
- platform: tuya
|
|
|
|
id: tuya_climate
|
|
|
|
switch_datapoint: 1
|
|
|
|
target_temperature_datapoint: 3
|
2020-11-11 18:31:35 +01:00
|
|
|
current_temperature_multiplier: 0.5
|
|
|
|
target_temperature_multiplier: 0.5
|
2022-12-06 19:29:18 +01:00
|
|
|
reports_fahrenheit: true
|
2020-07-12 00:04:34 +02:00
|
|
|
|
2020-07-11 22:52:29 +02:00
|
|
|
switch:
|
|
|
|
- platform: tuya
|
|
|
|
id: tuya_switch
|
|
|
|
switch_datapoint: 1
|
2021-08-10 21:48:32 +02:00
|
|
|
- platform: pipsolar
|
|
|
|
pipsolar_id: inverter0
|
|
|
|
output_source_priority_utility:
|
|
|
|
name: inverter0_output_source_priority_utility
|
|
|
|
output_source_priority_solar:
|
|
|
|
name: inverter0_output_source_priority_solar
|
|
|
|
output_source_priority_battery:
|
|
|
|
name: inverter0_output_source_priority_battery
|
|
|
|
input_voltage_range:
|
|
|
|
name: inverter0_input_voltage_range
|
|
|
|
pv_ok_condition_for_parallel:
|
|
|
|
name: inverter0_pv_ok_condition_for_parallel
|
|
|
|
pv_power_balance:
|
|
|
|
name: inverter0_pv_power_balance
|
2022-02-20 21:13:37 +01:00
|
|
|
- platform: copy
|
|
|
|
source_id: tuya_switch
|
|
|
|
name: Tuya Switch Copy
|
2021-03-18 07:08:50 +01:00
|
|
|
|
|
|
|
light:
|
|
|
|
- platform: fastled_clockless
|
|
|
|
id: led_matrix_32x8
|
2022-09-06 05:48:01 +02:00
|
|
|
name: led_matrix_32x8
|
2021-03-18 07:08:50 +01:00
|
|
|
chipset: WS2812B
|
|
|
|
pin: GPIO15
|
|
|
|
num_leds: 256
|
|
|
|
rgb_order: GRB
|
|
|
|
default_transition_length: 0s
|
|
|
|
color_correct: [50%, 50%, 50%]
|
2021-06-01 23:32:16 +02:00
|
|
|
- platform: tuya
|
|
|
|
id: tuya_light
|
|
|
|
switch_datapoint: 1
|
|
|
|
dimmer_datapoint: 2
|
|
|
|
min_value_datapoint: 3
|
|
|
|
color_temperature_datapoint: 4
|
|
|
|
min_value: 1
|
|
|
|
max_value: 100
|
|
|
|
cold_white_color_temperature: 153 mireds
|
|
|
|
warm_white_color_temperature: 500 mireds
|
|
|
|
gamma_correct: 1
|
2021-03-18 07:08:50 +01:00
|
|
|
|
2021-09-28 23:02:13 +02:00
|
|
|
cover:
|
|
|
|
- platform: tuya
|
|
|
|
id: tuya_cover
|
|
|
|
position_datapoint: 2
|
2022-02-20 21:13:37 +01:00
|
|
|
- platform: copy
|
|
|
|
source_id: tuya_cover
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Tuya Cover copy
|
2021-09-28 23:02:13 +02:00
|
|
|
|
2021-03-18 07:08:50 +01:00
|
|
|
display:
|
|
|
|
- platform: addressable_light
|
|
|
|
id: led_matrix_32x8_display
|
|
|
|
addressable_light_id: led_matrix_32x8
|
|
|
|
width: 32
|
|
|
|
height: 8
|
|
|
|
pixel_mapper: |-
|
|
|
|
if (x % 2 == 0) {
|
|
|
|
return (x * 8) + y;
|
|
|
|
}
|
|
|
|
return (x * 8) + (7 - y);
|
|
|
|
lambda: |-
|
|
|
|
Color red = Color(0xFF0000);
|
|
|
|
Color green = Color(0x00FF00);
|
|
|
|
Color blue = Color(0x0000FF);
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height(), red);
|
|
|
|
it.rectangle(1, 1, it.get_width()-2, it.get_height()-2, green);
|
|
|
|
it.rectangle(2, 2, it.get_width()-4, it.get_height()-4, blue);
|
|
|
|
it.rectangle(3, 3, it.get_width()-6, it.get_height()-6, red);
|
|
|
|
rotation: 0°
|
|
|
|
update_interval: 16ms
|
2021-09-20 11:47:51 +02:00
|
|
|
|
2021-03-20 08:32:46 +01:00
|
|
|
- platform: waveshare_epaper
|
2023-09-30 03:48:51 +02:00
|
|
|
spi_id: spi_id_1
|
2021-03-20 08:32:46 +01:00
|
|
|
cs_pin: GPIO23
|
|
|
|
dc_pin: GPIO23
|
|
|
|
busy_pin: GPIO23
|
|
|
|
reset_pin: GPIO23
|
|
|
|
model: 2.13in-ttgo-b1
|
|
|
|
full_update_every: 30
|
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
|
|
- platform: waveshare_epaper
|
2023-09-30 03:48:51 +02:00
|
|
|
spi_id: spi_id_1
|
2021-03-20 08:32:46 +01:00
|
|
|
cs_pin: GPIO23
|
|
|
|
dc_pin: GPIO23
|
|
|
|
busy_pin: GPIO23
|
|
|
|
reset_pin: GPIO23
|
|
|
|
model: 2.90in
|
|
|
|
full_update_every: 30
|
2021-12-12 22:27:11 +01:00
|
|
|
reset_duration: 200ms
|
2021-03-20 08:32:46 +01:00
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
|
|
- platform: waveshare_epaper
|
2023-09-30 03:48:51 +02:00
|
|
|
spi_id: spi_id_1
|
2021-03-20 08:32:46 +01:00
|
|
|
cs_pin: GPIO23
|
|
|
|
dc_pin: GPIO23
|
|
|
|
busy_pin: GPIO23
|
|
|
|
reset_pin: GPIO23
|
|
|
|
model: 2.90inv2
|
|
|
|
full_update_every: 30
|
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
2023-07-05 21:32:00 +02:00
|
|
|
- platform: waveshare_epaper
|
2023-09-30 03:48:51 +02:00
|
|
|
spi_id: spi_id_1
|
2023-07-05 21:32:00 +02:00
|
|
|
cs_pin: GPIO23
|
|
|
|
dc_pin: GPIO23
|
|
|
|
busy_pin: GPIO23
|
|
|
|
reset_pin: GPIO23
|
|
|
|
model: 1.54in-m5coreink-m09
|
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
2021-09-20 11:47:51 +02:00
|
|
|
- platform: inkplate6
|
|
|
|
id: inkplate_display
|
|
|
|
greyscale: false
|
|
|
|
partial_updating: false
|
|
|
|
update_interval: 60s
|
|
|
|
|
|
|
|
ckv_pin: GPIO1
|
|
|
|
sph_pin: GPIO1
|
|
|
|
gmod_pin: GPIO1
|
|
|
|
gpio0_enable_pin: GPIO1
|
|
|
|
oe_pin: GPIO1
|
|
|
|
spv_pin: GPIO1
|
|
|
|
powerup_pin: GPIO1
|
|
|
|
wakeup_pin: GPIO1
|
|
|
|
vcom_pin: GPIO1
|
|
|
|
|
2021-12-20 02:35:10 +01:00
|
|
|
number:
|
|
|
|
- platform: tuya
|
|
|
|
id: tuya_number
|
|
|
|
number_datapoint: 102
|
|
|
|
min_value: 0
|
|
|
|
max_value: 17
|
|
|
|
step: 1
|
2022-02-20 21:13:37 +01:00
|
|
|
- platform: copy
|
|
|
|
source_id: tuya_number
|
|
|
|
name: Tuya Number Copy
|
2021-03-20 08:32:46 +01:00
|
|
|
|
2021-08-10 21:48:32 +02:00
|
|
|
text_sensor:
|
|
|
|
- platform: pipsolar
|
|
|
|
pipsolar_id: inverter0
|
|
|
|
device_mode:
|
|
|
|
id: inverter0_device_mode
|
|
|
|
name: inverter0_device_mode
|
|
|
|
last_qpigs:
|
|
|
|
id: inverter0_last_qpigs
|
|
|
|
name: inverter0_last_qpigs
|
|
|
|
last_qpiri:
|
|
|
|
id: inverter0_last_qpiri
|
|
|
|
name: inverter0_last_qpiri
|
|
|
|
last_qmod:
|
|
|
|
id: inverter0_last_qmod
|
|
|
|
name: inverter0_last_qmod
|
|
|
|
last_qflag:
|
|
|
|
id: inverter0_last_qflag
|
|
|
|
name: inverter0_last_qflag
|
2022-02-20 21:13:37 +01:00
|
|
|
- platform: copy
|
|
|
|
source_id: inverter0_device_mode
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Inverter Text Sensor Copy
|
2022-10-19 02:44:48 +02:00
|
|
|
- platform: ethernet_info
|
|
|
|
ip_address:
|
|
|
|
name: IP Address
|
2021-08-10 21:48:32 +02:00
|
|
|
|
|
|
|
output:
|
|
|
|
- platform: pipsolar
|
|
|
|
pipsolar_id: inverter0
|
|
|
|
battery_recharge_voltage:
|
|
|
|
id: inverter0_battery_recharge_voltage_out
|
2022-06-21 07:12:15 +02:00
|
|
|
- platform: dac7678
|
2022-09-06 05:48:01 +02:00
|
|
|
dac7678_id: dac7678_hub1
|
2022-06-21 07:12:15 +02:00
|
|
|
channel: 0
|
2022-09-06 05:48:01 +02:00
|
|
|
id: dac7678_1_ch0
|
2022-06-21 07:12:15 +02:00
|
|
|
- platform: dac7678
|
2022-09-06 05:48:01 +02:00
|
|
|
dac7678_id: dac7678_hub1
|
2022-06-21 07:12:15 +02:00
|
|
|
channel: 1
|
2022-09-06 05:48:01 +02:00
|
|
|
id: dac7678_1_ch1
|
2022-06-21 07:12:15 +02:00
|
|
|
- platform: dac7678
|
2022-09-06 05:48:01 +02:00
|
|
|
dac7678_id: dac7678_hub1
|
2022-06-21 07:12:15 +02:00
|
|
|
channel: 2
|
2022-09-06 05:48:01 +02:00
|
|
|
id: dac7678_1_ch2
|
2022-06-21 07:12:15 +02:00
|
|
|
- platform: dac7678
|
2022-09-06 05:48:01 +02:00
|
|
|
dac7678_id: dac7678_hub1
|
2022-06-21 07:12:15 +02:00
|
|
|
channel: 3
|
2022-09-06 05:48:01 +02:00
|
|
|
id: dac7678_1_ch3
|
2022-06-21 07:12:15 +02:00
|
|
|
- platform: dac7678
|
2022-09-06 05:48:01 +02:00
|
|
|
dac7678_id: dac7678_hub1
|
2022-06-21 07:12:15 +02:00
|
|
|
channel: 4
|
2022-09-06 05:48:01 +02:00
|
|
|
id: dac7678_1_ch4
|
2022-06-21 07:12:15 +02:00
|
|
|
- platform: dac7678
|
2022-09-06 05:48:01 +02:00
|
|
|
dac7678_id: dac7678_hub1
|
2022-06-21 07:12:15 +02:00
|
|
|
channel: 5
|
2022-09-06 05:48:01 +02:00
|
|
|
id: dac7678_1_ch5
|
2022-06-21 07:12:15 +02:00
|
|
|
- platform: dac7678
|
2022-09-06 05:48:01 +02:00
|
|
|
dac7678_id: dac7678_hub1
|
2022-06-21 07:12:15 +02:00
|
|
|
channel: 6
|
2022-09-06 05:48:01 +02:00
|
|
|
id: dac7678_1_ch6
|
2022-06-21 07:12:15 +02:00
|
|
|
- platform: dac7678
|
2022-09-06 05:48:01 +02:00
|
|
|
dac7678_id: dac7678_hub1
|
2022-06-21 07:12:15 +02:00
|
|
|
channel: 7
|
2022-09-06 05:48:01 +02:00
|
|
|
id: dac7678_1_ch7
|
2021-05-31 12:27:41 +02:00
|
|
|
esp32_camera:
|
|
|
|
name: ESP-32 Camera
|
|
|
|
data_pins: [GPIO17, GPIO35, GPIO34, GPIO5, GPIO39, GPIO18, GPIO36, GPIO19]
|
|
|
|
vsync_pin: GPIO22
|
|
|
|
href_pin: GPIO26
|
|
|
|
pixel_clock_pin: GPIO21
|
|
|
|
external_clock:
|
|
|
|
pin: GPIO27
|
|
|
|
frequency: 20MHz
|
|
|
|
i2c_pins:
|
|
|
|
sda: GPIO25
|
|
|
|
scl: GPIO23
|
|
|
|
reset_pin: GPIO15
|
|
|
|
power_down_pin: GPIO1
|
|
|
|
resolution: 640x480
|
|
|
|
jpeg_quality: 10
|
|
|
|
|
2021-11-10 01:10:07 +01:00
|
|
|
esp32_camera_web_server:
|
|
|
|
- port: 8080
|
|
|
|
mode: stream
|
|
|
|
- port: 8081
|
|
|
|
mode: snapshot
|
|
|
|
|
2021-05-07 20:02:17 +02:00
|
|
|
external_components:
|
|
|
|
- source: github://esphome/esphome@dev
|
|
|
|
refresh: 1d
|
2022-09-06 05:48:01 +02:00
|
|
|
components: [bh1750]
|
2021-05-07 20:02:17 +02:00
|
|
|
- source: ../esphome/components
|
2022-09-06 05:48:01 +02:00
|
|
|
components: [sntp]
|
2021-11-29 20:00:51 +01:00
|
|
|
|
|
|
|
button:
|
|
|
|
- platform: restart
|
|
|
|
name: Restart Button
|
2021-12-20 22:25:36 +01:00
|
|
|
- platform: safe_mode
|
|
|
|
name: Safe Mode Button
|
|
|
|
- platform: shutdown
|
|
|
|
name: Shutdown Button
|
2022-02-20 21:13:37 +01:00
|
|
|
id: shutdown_btn
|
|
|
|
- platform: copy
|
|
|
|
source_id: shutdown_btn
|
|
|
|
name: Shutdown Button Copy
|
|
|
|
|
2022-01-26 04:26:46 +01:00
|
|
|
touchscreen:
|
|
|
|
- platform: ektf2232
|
|
|
|
interrupt_pin: GPIO36
|
|
|
|
rts_pin: GPIO5
|
|
|
|
display: inkplate_display
|
|
|
|
on_touch:
|
|
|
|
- logger.log:
|
|
|
|
format: Touch at (%d, %d)
|
2022-09-06 05:48:01 +02:00
|
|
|
args: [touch.x, touch.y]
|
2022-02-08 09:50:25 +01:00
|
|
|
|
2022-10-10 23:10:22 +02:00
|
|
|
- platform: xpt2046
|
|
|
|
id: xpt_touchscreen
|
2023-09-30 03:48:51 +02:00
|
|
|
spi_id: spi_id_2
|
2022-10-10 23:10:22 +02:00
|
|
|
cs_pin: 17
|
|
|
|
interrupt_pin: 16
|
|
|
|
display: inkplate_display
|
|
|
|
update_interval: 50ms
|
|
|
|
report_interval: 1s
|
|
|
|
threshold: 400
|
|
|
|
calibration_x_min: 3860
|
|
|
|
calibration_x_max: 280
|
|
|
|
calibration_y_min: 340
|
|
|
|
calibration_y_max: 3860
|
|
|
|
swap_x_y: false
|
|
|
|
on_touch:
|
|
|
|
- logger.log:
|
|
|
|
format: Touch at (%d, %d)
|
|
|
|
args: [touch.x, touch.y]
|
|
|
|
|
2022-02-08 09:50:25 +01:00
|
|
|
- platform: lilygo_t5_47
|
|
|
|
id: lilygo_touchscreen
|
|
|
|
interrupt_pin: GPIO36
|
|
|
|
display: inkplate_display
|
|
|
|
on_touch:
|
|
|
|
- logger.log:
|
|
|
|
format: Touch at (%d, %d)
|
2022-09-06 05:48:01 +02:00
|
|
|
args: [touch.x, touch.y]
|
2022-06-02 07:00:17 +02:00
|
|
|
|
2023-04-12 01:45:10 +02:00
|
|
|
i2s_audio:
|
|
|
|
i2s_lrclk_pin: GPIO26
|
|
|
|
i2s_bclk_pin: GPIO27
|
2023-05-24 09:28:08 +02:00
|
|
|
i2s_mclk_pin: GPIO25
|
2023-04-12 01:45:10 +02:00
|
|
|
|
2022-06-02 07:00:17 +02:00
|
|
|
media_player:
|
|
|
|
- platform: i2s_audio
|
2023-04-12 01:45:10 +02:00
|
|
|
name: None
|
2022-06-02 07:00:17 +02:00
|
|
|
dac_type: external
|
|
|
|
i2s_dout_pin: GPIO25
|
|
|
|
mute_pin: GPIO14
|
2022-06-18 07:21:42 +02:00
|
|
|
on_state:
|
|
|
|
- media_player.play:
|
2022-06-20 02:17:20 +02:00
|
|
|
- media_player.play_media: http://localhost/media.mp3
|
|
|
|
- media_player.play_media: !lambda 'return "http://localhost/media.mp3";'
|
2022-06-18 07:21:42 +02:00
|
|
|
on_idle:
|
|
|
|
- media_player.pause:
|
|
|
|
on_play:
|
|
|
|
- media_player.stop:
|
|
|
|
on_pause:
|
|
|
|
- media_player.toggle:
|
2022-06-20 02:17:20 +02:00
|
|
|
- wait_until:
|
|
|
|
media_player.is_idle:
|
|
|
|
- wait_until:
|
|
|
|
media_player.is_playing:
|
2022-06-18 07:21:42 +02:00
|
|
|
- media_player.volume_up:
|
|
|
|
- media_player.volume_down:
|
|
|
|
- media_player.volume_set: 50%
|
2022-08-30 00:55:55 +02:00
|
|
|
|
|
|
|
prometheus:
|
|
|
|
include_internal: true
|
|
|
|
relabel:
|
|
|
|
ha_hello_world:
|
|
|
|
id: hellow_world
|
2022-09-06 05:48:01 +02:00
|
|
|
name: Hello World
|
2023-04-12 01:45:10 +02:00
|
|
|
|
|
|
|
microphone:
|
|
|
|
- platform: i2s_audio
|
2023-05-10 06:37:21 +02:00
|
|
|
id: mic_id_adc
|
|
|
|
adc_pin: GPIO35
|
|
|
|
adc_type: internal
|
|
|
|
|
|
|
|
- platform: i2s_audio
|
|
|
|
id: mic_id_external
|
2023-04-12 01:45:10 +02:00
|
|
|
i2s_din_pin: GPIO23
|
2023-05-10 06:37:21 +02:00
|
|
|
adc_type: external
|
|
|
|
pdm: false
|
2023-04-12 01:45:10 +02:00
|
|
|
|
2023-05-08 00:36:17 +02:00
|
|
|
speaker:
|
|
|
|
- platform: i2s_audio
|
|
|
|
id: speaker_id
|
|
|
|
dac_type: external
|
|
|
|
i2s_dout_pin: GPIO25
|
|
|
|
mode: mono
|
|
|
|
|
2023-04-12 01:45:10 +02:00
|
|
|
|
|
|
|
voice_assistant:
|
2023-05-10 06:37:21 +02:00
|
|
|
microphone: mic_id_external
|
2023-10-10 08:52:42 +02:00
|
|
|
speaker: speaker_id
|
|
|
|
on_listening:
|
|
|
|
- logger.log: "Voice assistant microphone listening"
|
2023-04-17 04:57:28 +02:00
|
|
|
on_start:
|
|
|
|
- logger.log: "Voice assistant started"
|
|
|
|
on_stt_end:
|
|
|
|
- logger.log:
|
|
|
|
format: "Voice assistant STT ended with result %s"
|
|
|
|
args: [x.c_str()]
|
|
|
|
on_tts_start:
|
|
|
|
- logger.log:
|
|
|
|
format: "Voice assistant TTS started with text %s"
|
|
|
|
args: [x.c_str()]
|
|
|
|
on_tts_end:
|
|
|
|
- logger.log:
|
|
|
|
format: "Voice assistant TTS ended with url %s"
|
|
|
|
args: [x.c_str()]
|
|
|
|
on_end:
|
|
|
|
- logger.log: "Voice assistant ended"
|
|
|
|
on_error:
|
|
|
|
- logger.log:
|
|
|
|
format: "Voice assistant error - code %s, message: %s"
|
|
|
|
args: [code.c_str(), message.c_str()]
|
2023-05-01 23:51:48 +02:00
|
|
|
|
|
|
|
max6956:
|
|
|
|
- id: max6956_1
|
|
|
|
address: 0x40
|
2023-06-19 05:26:06 +02:00
|
|
|
|
|
|
|
xl9535:
|
|
|
|
- id: xl9535_hub
|
|
|
|
address: 0x20
|