418
esphome.yaml
418
esphome.yaml
@@ -3,8 +3,8 @@
|
||||
#############################################################
|
||||
|
||||
|
||||
##### advanced config activate only when you know what you do #####
|
||||
# substitutions:
|
||||
##### advanced config activate only when you know what you do #####
|
||||
# substitutions:
|
||||
# ## usage of secrets-file ## -> comment in ###### Change ME ######
|
||||
# device_name: "nspanel-name" # Wird im Blueprint benötigt!
|
||||
# friendly_name: "NSPanel Name" # ändere Name zum Beispiel in den Raum wo das NSPanel verbaut wird
|
||||
@@ -20,7 +20,7 @@
|
||||
# dns: "10.0.0.138"
|
||||
# domain: ".local"
|
||||
|
||||
##### end of advanced config #####
|
||||
##### end of advanced config #####
|
||||
|
||||
###### EDIT THE BELOW ENTITIES FOR YOURS... depricated #######################################################################
|
||||
##### - will be removed in future release - ignore it or set if exist ##################
|
||||
@@ -28,44 +28,44 @@
|
||||
# ha_heating_system_flame: binary_sensor.flamestatus ##### Buderus Heizung Flamen-Status (Integration) #####
|
||||
# ha_climate_thermostat_target_temp: sensor.nspanel_target_temp ##### Climate Thermostat generiert in HA (custom_configuration -> nspanel) #####
|
||||
# ha_climate_thermostat: climate.nspanel_name ##### Climate Thermostat generiert in HA (custom_configuration -> nspanel) #####
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - SUBSTITUTIONS #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - Settings #####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - SUBSTITUTIONS #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - Settings #####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
|
||||
##### Functionality for the Nextion display #####
|
||||
external_components:
|
||||
##### Functionality for the Nextion display #####
|
||||
external_components:
|
||||
- source: github://pr#2956
|
||||
components: [nextion]
|
||||
refresh: 1h
|
||||
|
||||
##### ESP home CONFIG #####
|
||||
esphome:
|
||||
##### ESP home CONFIG #####
|
||||
esphome:
|
||||
name: ${device_name}
|
||||
|
||||
|
||||
|
||||
##### TYPE OF ESP BOARD #####
|
||||
esp32:
|
||||
##### TYPE OF ESP BOARD #####
|
||||
esp32:
|
||||
board: esp32dev
|
||||
|
||||
##### WIFI SETUP #####
|
||||
wifi:
|
||||
##### WIFI SETUP #####
|
||||
wifi:
|
||||
ssid: ${wifi_ssid}
|
||||
password: ${wifi_password}
|
||||
power_save_mode: none
|
||||
@@ -81,48 +81,48 @@
|
||||
ssid: "${device_name}"
|
||||
password: ${wifi_password}
|
||||
|
||||
captive_portal:
|
||||
captive_portal:
|
||||
|
||||
web_server:
|
||||
web_server:
|
||||
port: 80
|
||||
auth:
|
||||
username: admin
|
||||
password: ${ota_password}
|
||||
|
||||
##### OTA (Over the air updates) password #####
|
||||
ota:
|
||||
##### OTA (Over the air updates) password #####
|
||||
ota:
|
||||
password: ${ota_password}
|
||||
safe_mode: true
|
||||
reboot_timeout: 3min
|
||||
num_attempts: 3
|
||||
|
||||
##### LOGGER #####
|
||||
logger:
|
||||
# baud_rate: 0
|
||||
# level: WARN
|
||||
##### LOGGER #####
|
||||
logger:
|
||||
# baud_rate: 0
|
||||
# level: WARN
|
||||
|
||||
##### CONFIGURE INTERNAL BUZZER #####
|
||||
output:
|
||||
##### CONFIGURE INTERNAL BUZZER #####
|
||||
output:
|
||||
##### BUZZER FOR PLAYING RINGTONES #####
|
||||
- platform: ledc
|
||||
id: buzzer_out
|
||||
pin:
|
||||
number: 21
|
||||
|
||||
##### ENABLE RINGTONE MUSIC SUPPORT #####
|
||||
rtttl:
|
||||
##### ENABLE RINGTONE MUSIC SUPPORT #####
|
||||
rtttl:
|
||||
id: buzzer
|
||||
output: buzzer_out
|
||||
|
||||
##### UART FOR NEXTION DISPLAY #####
|
||||
uart:
|
||||
##### UART FOR NEXTION DISPLAY #####
|
||||
uart:
|
||||
tx_pin: 16
|
||||
rx_pin: 17
|
||||
baud_rate: 115200
|
||||
id: tf_uart
|
||||
|
||||
###### A reboot button is always useful #####
|
||||
button:
|
||||
###### A reboot button is always useful #####
|
||||
button:
|
||||
- platform: restart
|
||||
name: ${device_name} Restart
|
||||
id: restart_nspanel
|
||||
@@ -130,27 +130,27 @@
|
||||
|
||||
|
||||
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - Settings #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - API #####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - Settings #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - API #####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
|
||||
api:
|
||||
api:
|
||||
services:
|
||||
|
||||
##### SERVICE TO UPDATE THE HMI FILE #####
|
||||
@@ -213,27 +213,27 @@
|
||||
switch.is_on: nextion_init
|
||||
- lambda: 'id(disp1).set_component_background_color(component.c_str(), message);'
|
||||
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - API #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - GLOBALS #####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - API #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - GLOBALS #####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
|
||||
globals:
|
||||
globals:
|
||||
|
||||
##### Save Target Temp #####
|
||||
- id: climate_target_temp_val_global
|
||||
@@ -301,27 +301,27 @@
|
||||
restore_value: no
|
||||
initial_value: ''
|
||||
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - GLOBALS #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - BINARY SENSOR #####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - GLOBALS #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - BINARY SENSOR #####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
|
||||
binary_sensor:
|
||||
binary_sensor:
|
||||
|
||||
###### LEFT BUTTON BELOW DISPLAY TO TOGGLE RELAY#####
|
||||
- platform: gpio
|
||||
@@ -406,27 +406,27 @@
|
||||
data:
|
||||
entity_id: ${ha_hotwater_charge}
|
||||
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - BINARY SENSOR #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - SENSOR #####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - BINARY SENSOR #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - SENSOR #####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
|
||||
sensor:
|
||||
sensor:
|
||||
|
||||
##### Uptime #####
|
||||
- platform: uptime
|
||||
@@ -730,27 +730,27 @@
|
||||
- lambda: return int(x);
|
||||
|
||||
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - SENSOR #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - TEXT SENSOR#####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - SENSOR #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - TEXT SENSOR#####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
|
||||
text_sensor:
|
||||
text_sensor:
|
||||
|
||||
##### ESPhome version used to compile the app #####
|
||||
- platform: version
|
||||
@@ -890,27 +890,27 @@
|
||||
id(disp1).set_component_value("thermostat.a12",0);
|
||||
}
|
||||
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - TEXT SENSOR #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - SWITCH #####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - TEXT SENSOR #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - SWITCH #####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
|
||||
switch:
|
||||
switch:
|
||||
|
||||
# ##### Restart switch ######
|
||||
# - platform: restart
|
||||
@@ -1025,27 +1025,27 @@
|
||||
value: '1'
|
||||
- lambda: id(disp1).set_component_value("settings.a02",1);
|
||||
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - SWITCH #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - NUMBER #####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - SWITCH #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - NUMBER #####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
|
||||
number:
|
||||
number:
|
||||
|
||||
##### SCREEN BRIGHTNESS #####
|
||||
- platform: template
|
||||
@@ -1084,27 +1084,27 @@
|
||||
id: display_dim_brightness_global
|
||||
value: !lambda 'return int(x);'
|
||||
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - NUMBER #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - DISPLAY START#####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - NUMBER #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - DISPLAY START#####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
|
||||
display:
|
||||
display:
|
||||
- platform: nextion
|
||||
id: disp1
|
||||
uart_id: tf_uart
|
||||
@@ -1160,6 +1160,6 @@
|
||||
id(disp1).set_component_value("thermostat.a10",1);
|
||||
}
|
||||
|
||||
#############################################################
|
||||
##### CLOSE - DISPLAY START #####
|
||||
#############################################################
|
||||
#############################################################
|
||||
##### CLOSE - DISPLAY START #####
|
||||
#############################################################
|
||||
Reference in New Issue
Block a user