test git esphome
This commit is contained in:
433
esphome.yaml
433
esphome.yaml
@@ -2,18 +2,11 @@
|
||||
##### START - SUBSTITUTIONS #####
|
||||
#############################################################
|
||||
substitutions:
|
||||
###### Change ME ######
|
||||
node_name: "nspanel_name" # ändere Name zum Beispiel in den Raum wo das NSPanel verbaut wird
|
||||
device_name: "NSPanel NAME" # ändere Name zum Beispiel Raum - ist der Name der in HA verwnedet wird
|
||||
wifi_ssid: "WLAN NAME" # Gib dein WLAN Name ein
|
||||
wifi_password: "WLAN PASSWORD" # Gib dein Passwort fürs WLAN ein
|
||||
ota_password: "OTA PASSWORD" # Gib ein Passwort ein - kann das selbe wie WLAN sein
|
||||
nextion_update_url: "http://10.0.0.200:8123/local/nspanel/nspanel.tft" # URL to tft file git or local
|
||||
##### Change ME #####
|
||||
|
||||
##### advanced config activate only when you know what you do #####
|
||||
##### advanced config activate only when you know what you do #####
|
||||
|
||||
# ## usage of secrets-file ## -> comment in ###### Change ME ######
|
||||
# device_name: "nspanel_name01" # ändere Name zum Beispiel in den Raum wo das NSPanel verbaut wird. Wird im Blueprint benötigt
|
||||
# friendly_name: "NSPanel Name02" # ändere Name zum Beispiel in den Raum wo das NSPanel verbaut wird
|
||||
# wifi_ssid: !secret nspanel_wifi_ssid # add in your esphome secrets file.
|
||||
# wifi_password: !secret nspanel_wifi_password # add in your esphome secrets file.
|
||||
# ota_password: !secret nspanel_ota_password # add in your esphome secrets file.
|
||||
@@ -26,8 +19,7 @@ substitutions:
|
||||
# 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 ##################
|
||||
@@ -35,44 +27,43 @@ substitutions:
|
||||
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:
|
||||
name: ${node_name}
|
||||
comment: ${device_name}
|
||||
##### ESP home CONFIG #####
|
||||
esphome:
|
||||
name: ${device_name}
|
||||
comment: ${friendly_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
|
||||
@@ -88,48 +79,48 @@ wifi:
|
||||
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
|
||||
@@ -137,27 +128,27 @@ button:
|
||||
|
||||
|
||||
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - Settings #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - API #####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - Settings #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - API #####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
|
||||
api:
|
||||
api:
|
||||
services:
|
||||
|
||||
##### SERVICE TO UPDATE THE HMI FILE #####
|
||||
@@ -220,27 +211,27 @@ api:
|
||||
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
|
||||
@@ -308,27 +299,27 @@ globals:
|
||||
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
|
||||
@@ -413,27 +404,27 @@ binary_sensor:
|
||||
data:
|
||||
entity_id: ${ha_hotwater_charge}
|
||||
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - BINARY SENSOR #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - SENSOR #####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - BINARY SENSOR #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - SENSOR #####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
|
||||
sensor:
|
||||
sensor:
|
||||
|
||||
##### Uptime #####
|
||||
- platform: uptime
|
||||
@@ -737,27 +728,27 @@ sensor:
|
||||
- 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
|
||||
@@ -897,27 +888,27 @@ text_sensor:
|
||||
id(disp1).set_component_value("thermostat.a12",0);
|
||||
}
|
||||
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - TEXT SENSOR #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - SWITCH #####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
#########################################
|
||||
#
|
||||
#
|
||||
#############################################################
|
||||
##### CLOSE - TEXT SENSOR #####
|
||||
#############################################################
|
||||
#
|
||||
##
|
||||
###
|
||||
#############################################################################################################################################################################################
|
||||
###
|
||||
##
|
||||
#
|
||||
#############################################################
|
||||
##### START - SWITCH #####
|
||||
#############################################################
|
||||
#
|
||||
#
|
||||
#########################################
|
||||
|
||||
switch:
|
||||
switch:
|
||||
|
||||
# ##### Restart switch ######
|
||||
# - platform: restart
|
||||
@@ -1032,27 +1023,27 @@ switch:
|
||||
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
|
||||
@@ -1091,27 +1082,27 @@ number:
|
||||
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
|
||||
@@ -1167,6 +1158,6 @@ display:
|
||||
id(disp1).set_component_value("thermostat.a10",1);
|
||||
}
|
||||
|
||||
#############################################################
|
||||
##### CLOSE - DISPLAY START #####
|
||||
#############################################################
|
||||
#############################################################
|
||||
##### CLOSE - DISPLAY START #####
|
||||
#############################################################
|
||||
1172
esphome_backup.yaml
Normal file
1172
esphome_backup.yaml
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user