test git esphome
This commit is contained in:
433
esphome.yaml
433
esphome.yaml
@@ -2,18 +2,11 @@
|
|||||||
##### START - SUBSTITUTIONS #####
|
##### START - SUBSTITUTIONS #####
|
||||||
#############################################################
|
#############################################################
|
||||||
substitutions:
|
substitutions:
|
||||||
###### Change ME ######
|
##### advanced config activate only when you know what you do #####
|
||||||
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 #####
|
|
||||||
|
|
||||||
# ## usage of secrets-file ## -> comment in ###### Change ME ######
|
# ## 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_ssid: !secret nspanel_wifi_ssid # add in your esphome secrets file.
|
||||||
# wifi_password: !secret nspanel_wifi_password # 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.
|
# ota_password: !secret nspanel_ota_password # add in your esphome secrets file.
|
||||||
@@ -26,8 +19,7 @@ substitutions:
|
|||||||
# dns: "10.0.0.138"
|
# dns: "10.0.0.138"
|
||||||
# domain: ".local"
|
# domain: ".local"
|
||||||
|
|
||||||
##### end of advanced config #####
|
##### end of advanced config #####
|
||||||
|
|
||||||
|
|
||||||
###### EDIT THE BELOW ENTITIES FOR YOURS... depricated #######################################################################
|
###### EDIT THE BELOW ENTITIES FOR YOURS... depricated #######################################################################
|
||||||
##### - will be removed in future release - ignore it or set if exist ##################
|
##### - 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_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_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) #####
|
ha_climate_thermostat: climate.nspanel_name ##### Climate Thermostat generiert in HA (custom_configuration -> nspanel) #####
|
||||||
|
#########################################
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#############################################################
|
||||||
|
##### CLOSE - SUBSTITUTIONS #####
|
||||||
|
#############################################################
|
||||||
|
#
|
||||||
|
##
|
||||||
|
###
|
||||||
|
#############################################################################################################################################################################################
|
||||||
|
###
|
||||||
|
##
|
||||||
|
#
|
||||||
|
#############################################################
|
||||||
|
##### START - Settings #####
|
||||||
|
#############################################################
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#########################################
|
||||||
|
|
||||||
#########################################
|
##### Functionality for the Nextion display #####
|
||||||
#
|
external_components:
|
||||||
#
|
|
||||||
#############################################################
|
|
||||||
##### CLOSE - SUBSTITUTIONS #####
|
|
||||||
#############################################################
|
|
||||||
#
|
|
||||||
##
|
|
||||||
###
|
|
||||||
#############################################################################################################################################################################################
|
|
||||||
###
|
|
||||||
##
|
|
||||||
#
|
|
||||||
#############################################################
|
|
||||||
##### START - Settings #####
|
|
||||||
#############################################################
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#########################################
|
|
||||||
|
|
||||||
##### Functionality for the Nextion display #####
|
|
||||||
external_components:
|
|
||||||
- source: github://pr#2956
|
- source: github://pr#2956
|
||||||
components: [nextion]
|
components: [nextion]
|
||||||
refresh: 1h
|
refresh: 1h
|
||||||
|
|
||||||
##### ESP home CONFIG #####
|
##### ESP home CONFIG #####
|
||||||
esphome:
|
esphome:
|
||||||
name: ${node_name}
|
name: ${device_name}
|
||||||
comment: ${device_name}
|
comment: ${friendly_name}
|
||||||
|
|
||||||
##### TYPE OF ESP BOARD #####
|
##### TYPE OF ESP BOARD #####
|
||||||
esp32:
|
esp32:
|
||||||
board: esp32dev
|
board: esp32dev
|
||||||
|
|
||||||
##### WIFI SETUP #####
|
##### WIFI SETUP #####
|
||||||
wifi:
|
wifi:
|
||||||
ssid: ${wifi_ssid}
|
ssid: ${wifi_ssid}
|
||||||
password: ${wifi_password}
|
password: ${wifi_password}
|
||||||
power_save_mode: none
|
power_save_mode: none
|
||||||
@@ -88,48 +79,48 @@ wifi:
|
|||||||
ssid: "${device_name}"
|
ssid: "${device_name}"
|
||||||
password: ${wifi_password}
|
password: ${wifi_password}
|
||||||
|
|
||||||
captive_portal:
|
captive_portal:
|
||||||
|
|
||||||
web_server:
|
web_server:
|
||||||
port: 80
|
port: 80
|
||||||
auth:
|
auth:
|
||||||
username: admin
|
username: admin
|
||||||
password: ${ota_password}
|
password: ${ota_password}
|
||||||
|
|
||||||
##### OTA (Over the air updates) password #####
|
##### OTA (Over the air updates) password #####
|
||||||
ota:
|
ota:
|
||||||
password: ${ota_password}
|
password: ${ota_password}
|
||||||
safe_mode: true
|
safe_mode: true
|
||||||
reboot_timeout: 3min
|
reboot_timeout: 3min
|
||||||
num_attempts: 3
|
num_attempts: 3
|
||||||
|
|
||||||
##### LOGGER #####
|
##### LOGGER #####
|
||||||
logger:
|
logger:
|
||||||
# baud_rate: 0
|
# baud_rate: 0
|
||||||
# level: WARN
|
# level: WARN
|
||||||
|
|
||||||
##### CONFIGURE INTERNAL BUZZER #####
|
##### CONFIGURE INTERNAL BUZZER #####
|
||||||
output:
|
output:
|
||||||
##### BUZZER FOR PLAYING RINGTONES #####
|
##### BUZZER FOR PLAYING RINGTONES #####
|
||||||
- platform: ledc
|
- platform: ledc
|
||||||
id: buzzer_out
|
id: buzzer_out
|
||||||
pin:
|
pin:
|
||||||
number: 21
|
number: 21
|
||||||
|
|
||||||
##### ENABLE RINGTONE MUSIC SUPPORT #####
|
##### ENABLE RINGTONE MUSIC SUPPORT #####
|
||||||
rtttl:
|
rtttl:
|
||||||
id: buzzer
|
id: buzzer
|
||||||
output: buzzer_out
|
output: buzzer_out
|
||||||
|
|
||||||
##### UART FOR NEXTION DISPLAY #####
|
##### UART FOR NEXTION DISPLAY #####
|
||||||
uart:
|
uart:
|
||||||
tx_pin: 16
|
tx_pin: 16
|
||||||
rx_pin: 17
|
rx_pin: 17
|
||||||
baud_rate: 115200
|
baud_rate: 115200
|
||||||
id: tf_uart
|
id: tf_uart
|
||||||
|
|
||||||
###### A reboot button is always useful #####
|
###### A reboot button is always useful #####
|
||||||
button:
|
button:
|
||||||
- platform: restart
|
- platform: restart
|
||||||
name: ${device_name} Restart
|
name: ${device_name} Restart
|
||||||
id: restart_nspanel
|
id: restart_nspanel
|
||||||
@@ -137,27 +128,27 @@ button:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
##### CLOSE - Settings #####
|
##### CLOSE - Settings #####
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
##
|
##
|
||||||
###
|
###
|
||||||
#############################################################################################################################################################################################
|
#############################################################################################################################################################################################
|
||||||
###
|
###
|
||||||
##
|
##
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
##### START - API #####
|
##### START - API #####
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#########################################
|
#########################################
|
||||||
|
|
||||||
api:
|
api:
|
||||||
services:
|
services:
|
||||||
|
|
||||||
##### SERVICE TO UPDATE THE HMI FILE #####
|
##### SERVICE TO UPDATE THE HMI FILE #####
|
||||||
@@ -220,27 +211,27 @@ api:
|
|||||||
switch.is_on: nextion_init
|
switch.is_on: nextion_init
|
||||||
- lambda: 'id(disp1).set_component_background_color(component.c_str(), message);'
|
- lambda: 'id(disp1).set_component_background_color(component.c_str(), message);'
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
##### CLOSE - API #####
|
##### CLOSE - API #####
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
##
|
##
|
||||||
###
|
###
|
||||||
#############################################################################################################################################################################################
|
#############################################################################################################################################################################################
|
||||||
###
|
###
|
||||||
##
|
##
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
##### START - GLOBALS #####
|
##### START - GLOBALS #####
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#########################################
|
#########################################
|
||||||
|
|
||||||
globals:
|
globals:
|
||||||
|
|
||||||
##### Save Target Temp #####
|
##### Save Target Temp #####
|
||||||
- id: climate_target_temp_val_global
|
- id: climate_target_temp_val_global
|
||||||
@@ -308,27 +299,27 @@ globals:
|
|||||||
restore_value: no
|
restore_value: no
|
||||||
initial_value: ''
|
initial_value: ''
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
##### CLOSE - GLOBALS #####
|
##### CLOSE - GLOBALS #####
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
##
|
##
|
||||||
###
|
###
|
||||||
#############################################################################################################################################################################################
|
#############################################################################################################################################################################################
|
||||||
###
|
###
|
||||||
##
|
##
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
##### START - BINARY SENSOR #####
|
##### START - BINARY SENSOR #####
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#########################################
|
#########################################
|
||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
|
|
||||||
###### LEFT BUTTON BELOW DISPLAY TO TOGGLE RELAY#####
|
###### LEFT BUTTON BELOW DISPLAY TO TOGGLE RELAY#####
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
@@ -413,27 +404,27 @@ binary_sensor:
|
|||||||
data:
|
data:
|
||||||
entity_id: ${ha_hotwater_charge}
|
entity_id: ${ha_hotwater_charge}
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
##### CLOSE - BINARY SENSOR #####
|
##### CLOSE - BINARY SENSOR #####
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
##
|
##
|
||||||
###
|
###
|
||||||
#############################################################################################################################################################################################
|
#############################################################################################################################################################################################
|
||||||
###
|
###
|
||||||
##
|
##
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
##### START - SENSOR #####
|
##### START - SENSOR #####
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#########################################
|
#########################################
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
|
|
||||||
##### Uptime #####
|
##### Uptime #####
|
||||||
- platform: uptime
|
- platform: uptime
|
||||||
@@ -737,27 +728,27 @@ sensor:
|
|||||||
- lambda: return int(x);
|
- lambda: return int(x);
|
||||||
|
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
##### CLOSE - SENSOR #####
|
##### CLOSE - SENSOR #####
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
##
|
##
|
||||||
###
|
###
|
||||||
#############################################################################################################################################################################################
|
#############################################################################################################################################################################################
|
||||||
###
|
###
|
||||||
##
|
##
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
##### START - TEXT SENSOR#####
|
##### START - TEXT SENSOR#####
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#########################################
|
#########################################
|
||||||
|
|
||||||
text_sensor:
|
text_sensor:
|
||||||
|
|
||||||
##### ESPhome version used to compile the app #####
|
##### ESPhome version used to compile the app #####
|
||||||
- platform: version
|
- platform: version
|
||||||
@@ -897,27 +888,27 @@ text_sensor:
|
|||||||
id(disp1).set_component_value("thermostat.a12",0);
|
id(disp1).set_component_value("thermostat.a12",0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
##### CLOSE - TEXT SENSOR #####
|
##### CLOSE - TEXT SENSOR #####
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
##
|
##
|
||||||
###
|
###
|
||||||
#############################################################################################################################################################################################
|
#############################################################################################################################################################################################
|
||||||
###
|
###
|
||||||
##
|
##
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
##### START - SWITCH #####
|
##### START - SWITCH #####
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#########################################
|
#########################################
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
|
|
||||||
# ##### Restart switch ######
|
# ##### Restart switch ######
|
||||||
# - platform: restart
|
# - platform: restart
|
||||||
@@ -1032,27 +1023,27 @@ switch:
|
|||||||
value: '1'
|
value: '1'
|
||||||
- lambda: id(disp1).set_component_value("settings.a02",1);
|
- lambda: id(disp1).set_component_value("settings.a02",1);
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
##### CLOSE - SWITCH #####
|
##### CLOSE - SWITCH #####
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
##
|
##
|
||||||
###
|
###
|
||||||
#############################################################################################################################################################################################
|
#############################################################################################################################################################################################
|
||||||
###
|
###
|
||||||
##
|
##
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
##### START - NUMBER #####
|
##### START - NUMBER #####
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#########################################
|
#########################################
|
||||||
|
|
||||||
number:
|
number:
|
||||||
|
|
||||||
##### SCREEN BRIGHTNESS #####
|
##### SCREEN BRIGHTNESS #####
|
||||||
- platform: template
|
- platform: template
|
||||||
@@ -1091,27 +1082,27 @@ number:
|
|||||||
id: display_dim_brightness_global
|
id: display_dim_brightness_global
|
||||||
value: !lambda 'return int(x);'
|
value: !lambda 'return int(x);'
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
##### CLOSE - NUMBER #####
|
##### CLOSE - NUMBER #####
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
##
|
##
|
||||||
###
|
###
|
||||||
#############################################################################################################################################################################################
|
#############################################################################################################################################################################################
|
||||||
###
|
###
|
||||||
##
|
##
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
##### START - DISPLAY START#####
|
##### START - DISPLAY START#####
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#########################################
|
#########################################
|
||||||
|
|
||||||
display:
|
display:
|
||||||
- platform: nextion
|
- platform: nextion
|
||||||
id: disp1
|
id: disp1
|
||||||
uart_id: tf_uart
|
uart_id: tf_uart
|
||||||
@@ -1167,6 +1158,6 @@ display:
|
|||||||
id(disp1).set_component_value("thermostat.a10",1);
|
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