short changes
This commit is contained in:
BIN
custom_configuration/.DS_Store
vendored
Normal file
BIN
custom_configuration/.DS_Store
vendored
Normal file
Binary file not shown.
5
custom_configuration/OLD NSPanel version/NSPanel_HA_Blueprint-beta/.vscode/settings.json
vendored
Normal file
5
custom_configuration/OLD NSPanel version/NSPanel_HA_Blueprint-beta/.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"files.associations": {
|
||||||
|
"*.yaml": "home-assistant"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,159 @@
|
|||||||
|
# NSPanel Custom with HA Blueprint
|
||||||
|
Custom Firmware for NsPanel (esphome) and HA Blueprint with configuration of button, light settings, thermostate, colorwheel, colortemp, cover, weather preview, automatic TFT upload etc.
|
||||||
|
|
||||||
|
Why another version for the NSPanel?
|
||||||
|
Well - all versions I've seen have been missing something everywhere.
|
||||||
|
That's why I decided to create something myself.
|
||||||
|
|
||||||
|
My thanks to Masto, Marcfager, lovejoy777, Hellis81 and SmartHome yourself ( link see below) for sharing your code. Give them the credit they deserve, I'm merely a copy paste ninja. XDD
|
||||||
|
|
||||||
|
|
||||||
|
### GOAL:
|
||||||
|
My goal was to create a version that could be quickly adopted for multiple NSPanels.
|
||||||
|
In addition, the configuration should be as simple as possible. Therefore I decided to put most of it into a HA Blueprint
|
||||||
|
|
||||||
|
In addition, another NSPanel can be configured very quickly. But have a look yourself ;)
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
(Home / Thermostat - more pictures see below)
|
||||||
|
|
||||||
|
## Features:
|
||||||
|
- easy to use and simple configuration via Blueprint
|
||||||
|
- 40 buttons on 5 button pages with long press function for settings (more buttons are also possible)
|
||||||
|
- Weather + 5 days weather forcast
|
||||||
|
- Thermostat + Touch + Relay control for floor heating
|
||||||
|
- Light control (brightness-slider, colorwheel, TempColor-slider) - via Long Press
|
||||||
|
- Cover control (open, close, position-slider) - via long press
|
||||||
|
- Settings page (display brightness, display dim brightness, auto-dim, sleep mode, reboot NSPanel)
|
||||||
|
- Swipe between pages
|
||||||
|
- Top menu with 10 icons for specific states
|
||||||
|
- Heating control (hot water)
|
||||||
|
- Auto Upload TFT File to Nextion Display
|
||||||
|
- Swipe between pages
|
||||||
|
- modern design - design easy to change via Adobe Express (free + design template)
|
||||||
|
- 2 pysical switches
|
||||||
|
- and much more ;)
|
||||||
|
|
||||||
|
|
||||||
|
## NSPanel:
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
(Home / Weather Forcast)
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
(Thermostat / Settings Page)
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
(Light Settings Colorwheel / Light Settings TempColor)
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
(Cover Settings / Button Page)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Blueprint:
|
||||||
|

|
||||||
|
|
||||||
|
# Pages
|
||||||
|
|
||||||
|
## Home
|
||||||
|
- current weather with button to Weather Forcast page
|
||||||
|
- Temperature outside
|
||||||
|
- Status icons at the top
|
||||||
|
- Room temperature with button to thermostat page
|
||||||
|
- Room humidity
|
||||||
|
- Hot water temperature
|
||||||
|
- Button to display settings page
|
||||||
|
|
||||||
|
## Weather Forcast
|
||||||
|
- 5 days Weather Forcast via swipe (Integration Accuweather - but should also go with another integration)
|
||||||
|
- Lowest and highest temperature outside
|
||||||
|
- Date
|
||||||
|
- Rain probability
|
||||||
|
- Sunshine hours
|
||||||
|
- Sun pressure
|
||||||
|
- Thunderstorm probability
|
||||||
|
- Wind speed
|
||||||
|
- Night thunderstorm probability and wind speed
|
||||||
|
|
||||||
|
## Thermostat
|
||||||
|
- Touch Temp control
|
||||||
|
- Outside temperature
|
||||||
|
- Hot water
|
||||||
|
- Floor heating on, off and idle
|
||||||
|
- Hot water button
|
||||||
|
- Status icons
|
||||||
|
|
||||||
|
## Display Settings
|
||||||
|
- Restart NSPanel
|
||||||
|
- Sleep mode - display off after time X
|
||||||
|
- Display brightness slider
|
||||||
|
- Display dim brightness slider
|
||||||
|
- Status Brightness in %
|
||||||
|
|
||||||
|
## Light Settings
|
||||||
|
- Light on and off (alignment with HA)
|
||||||
|
- Light color with Colorwheel
|
||||||
|
- Light color with TempColor slider
|
||||||
|
- Brightness Slider
|
||||||
|
- Brightness in %.
|
||||||
|
- Tempcolor value
|
||||||
|
- Jump back to the right button page
|
||||||
|
|
||||||
|
## Cover Settings
|
||||||
|
- Open and close cover
|
||||||
|
- Cover position via slider
|
||||||
|
- Cover battery value (I use Ikea roller blind)
|
||||||
|
- jump back to the right button page
|
||||||
|
|
||||||
|
## Button Page
|
||||||
|
- 40 Button
|
||||||
|
- 5 Button pages
|
||||||
|
- all buttons with long press function
|
||||||
|
- automatic detection by long press if it is a light or cover for submenu
|
||||||
|
- swipe between all pages
|
||||||
|
- swipe also down and up for fast access to certain pages
|
||||||
|
- number of buttons and button pages can be extended - functions like long press, light settings and cover settings stay the same
|
||||||
|
|
||||||
|
## Upcoming Features
|
||||||
|
- Shorten Esphome code and transfer to Blueprint
|
||||||
|
- Cover page with window open status as image
|
||||||
|
- small design adjustments
|
||||||
|
- Notifications on Home Page
|
||||||
|
- Energy and Gas consumption on home page
|
||||||
|
- Extra page for energy dashboard
|
||||||
|
- Garbage plan with icon on home page
|
||||||
|
- Let's see what ideas I still have ;)
|
||||||
|
|
||||||
|
## HowTo Deutsch
|
||||||
|
1. den Code aus der Datei esphome.yaml kopieren und in HA unter esphome einfügen. Vorher muss natürlich ein Device erstellt werden.
|
||||||
|
1.2 in der ESPhome Datei müssen Passwörter eingesetzt werden. Entweder in der ESPHome Secret oder einfach in der ESPhome Datei
|
||||||
|
1.3 Einige Entities sind aktuell noch in der Esphome Datei angegeben (direkt unter den Passwörtern. Diese Entities müssen noch angepasst werden. In zukunft will ich aber auch diese ins Bluebrint einbauen
|
||||||
|
3. den Code aus der Datei blueprint.yaml kopieren und eine neue yaml Datei unter config/blueprints erstellen und den Code einfügen
|
||||||
|
4. HA Automationen neu starten -> Enticklerwerkzege -> YAML -> Automatisierungen
|
||||||
|
5. den Code aus der Datei sensor.yaml und climate.yaml kopieren und eine eigenen yaml Datei erstellen. Der Code wird in zukunft direkt im Blueprint eingebaut.
|
||||||
|
6. den Code aus der Datei folder_wather kopieren und in der coniguration.yaml einfügen
|
||||||
|
7. TFT File auf Home Assistant hochladen (Der Pfad kann später im Blueprint angegeben werden
|
||||||
|
8. Blueprint unter Automationen auswählen und und Felder ausfüllen.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Thanks to:
|
||||||
|
SmartHome yourself: https://www.youtube.com/c/SmarthomeyourselfDe_DIY
|
||||||
|
|
||||||
|
Masto: https://github.com/masto/NSPanel-Demo-Files
|
||||||
|
|
||||||
|
Marcfager: https://github.com/marcfager/nspanel-mf
|
||||||
|
|
||||||
|
lovejoy77: https://github.com/lovejoy777/NSpanel
|
||||||
|
|
||||||
|
Hellis81: https://github.com/Hellis81/NS-panel
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,18 @@
|
|||||||
|
climate:
|
||||||
|
- platform: generic_thermostat
|
||||||
|
unique_id: cf308990-0dbd-4e8a-be77-aec56d7a5aa4
|
||||||
|
name: NSPanel Büro
|
||||||
|
heater: switch.nspanel_buro_relay_2
|
||||||
|
target_sensor: sensor.nspanel_buro_temperature
|
||||||
|
min_temp: 13
|
||||||
|
max_temp: 27
|
||||||
|
ac_mode: false
|
||||||
|
target_temp: 22
|
||||||
|
cold_tolerance: 0.5
|
||||||
|
hot_tolerance: 0.5
|
||||||
|
min_cycle_duration:
|
||||||
|
seconds: 60
|
||||||
|
keep_alive:
|
||||||
|
minutes: 3
|
||||||
|
initial_hvac_mode: "heat"
|
||||||
|
precision: 0.5
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# Please insert into the default file "configuration.yaml
|
||||||
|
# Folder must be changed to the directory where the tft file (Nextion Editor) will be uploaded
|
||||||
|
###########
|
||||||
|
#
|
||||||
|
#Folder watcher for NS panel auto upload tft
|
||||||
|
folder_watcher:
|
||||||
|
- folder: /config/www/nspanel/
|
||||||
@@ -0,0 +1,78 @@
|
|||||||
|
##### Sensor ######
|
||||||
|
sensor:
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
wochentag:
|
||||||
|
friendly_name: "Wochentag"
|
||||||
|
unique_id: 6ac64850-8563-456c-b562-92343dd96f0b
|
||||||
|
value_template: >
|
||||||
|
{% set days = ['Montag,', 'Dienstag,', 'Mittwoch,', 'Donnerstag,', 'Freitag,', 'Samstag,', 'Sonntag,'] %}
|
||||||
|
{{ now().timestamp() | timestamp_custom(days[now().weekday()] ~ ' %d.%m')}}
|
||||||
|
icon_template: mdi:calendar-range
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
wochentag01:
|
||||||
|
friendly_name: "Wochentag+1"
|
||||||
|
unique_id: 6b2aad54-3eb0-48cc-ae32-ee3574197f1b
|
||||||
|
value_template: >
|
||||||
|
{% set days = ['Montag,', 'Dienstag,', 'Mittwoch,', 'Donnerstag,', 'Freitag,', 'Samstag,', 'Sonntag,', 'Montag,'] %}
|
||||||
|
{{(as_timestamp(now())+ (86400)) | timestamp_custom(days[now().weekday()+1] ~ ' %d.%m') }}
|
||||||
|
icon_template: mdi:calendar-range
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
wochentag02:
|
||||||
|
friendly_name: "Wochentag+2"
|
||||||
|
unique_id: edbddaf0-2791-4774-b8d4-aa706f75cc7a
|
||||||
|
value_template: >
|
||||||
|
{% set days = ['Montag,', 'Dienstag,', 'Mittwoch,', 'Donnerstag,', 'Freitag,', 'Samstag,', 'Sonntag,', 'Montag,', 'Dienstag,'] %}
|
||||||
|
{{(as_timestamp(now())+ (172800)) | timestamp_custom(days[now().weekday()+2] ~ ' %d.%m') }}
|
||||||
|
icon_template: mdi:calendar-range
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
wochentag03:
|
||||||
|
friendly_name: "Wochentag+3"
|
||||||
|
unique_id: ad592622-db86-40f7-9961-4c1ffd21c711
|
||||||
|
value_template: >
|
||||||
|
{% set days = ['Montag,', 'Dienstag,', 'Mittwoch,', 'Donnerstag,', 'Freitag,', 'Samstag,', 'Sonntag,', 'Montag,', 'Dienstag,', 'Mittwoch,'] %}
|
||||||
|
{{(as_timestamp(now())+ (259200)) | timestamp_custom(days[now().weekday()+3] ~ ' %d.%m') }}
|
||||||
|
icon_template: mdi:calendar-range
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
wochentag04:
|
||||||
|
friendly_name: "Wochentag+4"
|
||||||
|
unique_id: dcb3ed45-2b89-4672-a04f-a55f025ac745
|
||||||
|
value_template: >
|
||||||
|
{% set days = ['Montag,', 'Dienstag,', 'Mittwoch,', 'Donnerstag,', 'Freitag,', 'Samstag,', 'Sonntag,', 'Montag,', 'Dienstag,', 'Mittwoch,', 'Donnerstag,'] %}
|
||||||
|
{{(as_timestamp(now())+ (345600)) | timestamp_custom(days[now().weekday()+4] ~ ' %d.%m') }}
|
||||||
|
icon_template: mdi:calendar-range
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
wochentag05:
|
||||||
|
friendly_name: "Wochentag+5"
|
||||||
|
unique_id: 77e642a5-de54-452d-9f4a-febe3a7851c2
|
||||||
|
value_template: >
|
||||||
|
{% set days = ['Montag,', 'Dienstag,', 'Mittwoch,', 'Donnerstag,', 'Freitag,', 'Samstag,', 'Sonntag,', 'Montag,', 'Dienstag,', 'Mittwoch,', 'Donnerstag,', 'Freitag,'] %}
|
||||||
|
{{(as_timestamp(now())+ (432000)) | timestamp_custom(days[now().weekday()+ 5] ~ ' %d.%m') }}
|
||||||
|
icon_template: mdi:calendar-range
|
||||||
|
|
||||||
|
###### NSPanel Büro - climate target temperature #####
|
||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
nspanel_buro_target_temp:
|
||||||
|
unique_id: 2393ab74-21ce-42d3-b15e-ec162b9d6f31
|
||||||
|
friendly_name: NSPanel Buro Target Temp
|
||||||
|
value_template: "{{ state_attr('climate.nspanel_buro', 'temperature') }}"
|
||||||
|
|
||||||
|
###### NSPanel Büro - climate target temperature #####
|
||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
nspanel_lea_target_temp:
|
||||||
|
unique_id: e8e61ff7-3a41-47ad-bd6c-303f730de96f
|
||||||
|
friendly_name: NSPanel Lea Target Temp
|
||||||
|
value_template: "{{ state_attr('climate.nspanel_lea', 'temperature') }}"
|
||||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -0,0 +1,159 @@
|
|||||||
|
# NSPanel Custom with HA Blueprint
|
||||||
|
Custom Firmware for NsPanel (esphome) and HA Blueprint with configuration of button, light settings, thermostate, colorwheel, colortemp, cover, weather preview, automatic TFT upload etc.
|
||||||
|
|
||||||
|
Why another version for the NSPanel?
|
||||||
|
Well - all versions I've seen have been missing something everywhere.
|
||||||
|
That's why I decided to create something myself.
|
||||||
|
|
||||||
|
My thanks to Masto, Marcfager, lovejoy777, Hellis81 and SmartHome yourself ( link see below) for sharing your code. Give them the credit they deserve, I'm merely a copy paste ninja. XDD
|
||||||
|
|
||||||
|
|
||||||
|
### GOAL:
|
||||||
|
My goal was to create a version that could be quickly adopted for multiple NSPanels.
|
||||||
|
In addition, the configuration should be as simple as possible. Therefore I decided to put most of it into a HA Blueprint
|
||||||
|
|
||||||
|
In addition, another NSPanel can be configured very quickly. But have a look yourself ;)
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
(Home / Thermostat - more pictures see below)
|
||||||
|
|
||||||
|
## Features:
|
||||||
|
- easy to use and simple configuration via Blueprint
|
||||||
|
- 40 buttons on 5 button pages with long press function for settings (more buttons are also possible)
|
||||||
|
- Weather + 5 days weather forcast
|
||||||
|
- Thermostat + Touch + Relay control for floor heating
|
||||||
|
- Light control (brightness-slider, colorwheel, TempColor-slider) - via Long Press
|
||||||
|
- Cover control (open, close, position-slider) - via long press
|
||||||
|
- Settings page (display brightness, display dim brightness, auto-dim, sleep mode, reboot NSPanel)
|
||||||
|
- Swipe between pages
|
||||||
|
- Top menu with 10 icons for specific states
|
||||||
|
- Heating control (hot water)
|
||||||
|
- Auto Upload TFT File to Nextion Display
|
||||||
|
- Swipe between pages
|
||||||
|
- modern design - design easy to change via Adobe Express (free + design template)
|
||||||
|
- 2 pysical switches
|
||||||
|
- and much more ;)
|
||||||
|
|
||||||
|
|
||||||
|
## NSPanel:
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
(Home / Weather Forcast)
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
(Thermostat / Settings Page)
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
(Light Settings Colorwheel / Light Settings TempColor)
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
(Cover Settings / Button Page)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Blueprint:
|
||||||
|

|
||||||
|
|
||||||
|
# Pages
|
||||||
|
|
||||||
|
## Home
|
||||||
|
- current weather with button to Weather Forcast page
|
||||||
|
- Temperature outside
|
||||||
|
- Status icons at the top
|
||||||
|
- Room temperature with button to thermostat page
|
||||||
|
- Room humidity
|
||||||
|
- Hot water temperature
|
||||||
|
- Button to display settings page
|
||||||
|
|
||||||
|
## Weather Forcast
|
||||||
|
- 5 days Weather Forcast via swipe (Integration Accuweather - but should also go with another integration)
|
||||||
|
- Lowest and highest temperature outside
|
||||||
|
- Date
|
||||||
|
- Rain probability
|
||||||
|
- Sunshine hours
|
||||||
|
- Sun pressure
|
||||||
|
- Thunderstorm probability
|
||||||
|
- Wind speed
|
||||||
|
- Night thunderstorm probability and wind speed
|
||||||
|
|
||||||
|
## Thermostat
|
||||||
|
- Touch Temp control
|
||||||
|
- Outside temperature
|
||||||
|
- Hot water
|
||||||
|
- Floor heating on, off and idle
|
||||||
|
- Hot water button
|
||||||
|
- Status icons
|
||||||
|
|
||||||
|
## Display Settings
|
||||||
|
- Restart NSPanel
|
||||||
|
- Sleep mode - display off after time X
|
||||||
|
- Display brightness slider
|
||||||
|
- Display dim brightness slider
|
||||||
|
- Status Brightness in %
|
||||||
|
|
||||||
|
## Light Settings
|
||||||
|
- Light on and off (alignment with HA)
|
||||||
|
- Light color with Colorwheel
|
||||||
|
- Light color with TempColor slider
|
||||||
|
- Brightness Slider
|
||||||
|
- Brightness in %.
|
||||||
|
- Tempcolor value
|
||||||
|
- Jump back to the right button page
|
||||||
|
|
||||||
|
## Cover Settings
|
||||||
|
- Open and close cover
|
||||||
|
- Cover position via slider
|
||||||
|
- Cover battery value (I use Ikea roller blind)
|
||||||
|
- jump back to the right button page
|
||||||
|
|
||||||
|
## Button Page
|
||||||
|
- 40 Button
|
||||||
|
- 5 Button pages
|
||||||
|
- all buttons with long press function
|
||||||
|
- automatic detection by long press if it is a light or cover for submenu
|
||||||
|
- swipe between all pages
|
||||||
|
- swipe also down and up for fast access to certain pages
|
||||||
|
- number of buttons and button pages can be extended - functions like long press, light settings and cover settings stay the same
|
||||||
|
|
||||||
|
## Upcoming Features
|
||||||
|
- Shorten Esphome code and transfer to Blueprint
|
||||||
|
- Cover page with window open status as image
|
||||||
|
- small design adjustments
|
||||||
|
- Notifications on Home Page
|
||||||
|
- Energy and Gas consumption on home page
|
||||||
|
- Extra page for energy dashboard
|
||||||
|
- Garbage plan with icon on home page
|
||||||
|
- Let's see what ideas I still have ;)
|
||||||
|
|
||||||
|
## HowTo Deutsch
|
||||||
|
1. den Code aus der Datei esphome.yaml kopieren und in HA unter esphome einfügen. Vorher muss natürlich ein Device erstellt werden.
|
||||||
|
1.2 in der ESPhome Datei müssen Passwörter eingesetzt werden. Entweder in der ESPHome Secret oder einfach in der ESPhome Datei
|
||||||
|
1.3 Einige Entities sind aktuell noch in der Esphome Datei angegeben (direkt unter den Passwörtern. Diese Entities müssen noch angepasst werden. In zukunft will ich aber auch diese ins Bluebrint einbauen
|
||||||
|
3. den Code aus der Datei blueprint.yaml kopieren und eine neue yaml Datei unter config/blueprints erstellen und den Code einfügen
|
||||||
|
4. HA Automationen neu starten -> Enticklerwerkzege -> YAML -> Automatisierungen
|
||||||
|
5. den Code aus der Datei sensor.yaml und climate.yaml kopieren und eine eigenen yaml Datei erstellen. Der Code wird in zukunft direkt im Blueprint eingebaut.
|
||||||
|
6. den Code aus der Datei folder_wather kopieren und in der coniguration.yaml einfügen
|
||||||
|
7. TFT File auf Home Assistant hochladen (Der Pfad kann später im Blueprint angegeben werden
|
||||||
|
8. Blueprint unter Automationen auswählen und und Felder ausfüllen.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Thanks to:
|
||||||
|
SmartHome Yourself: https://www.youtube.com/c/SmarthomeyourselfDe_DIY
|
||||||
|
|
||||||
|
Masto: https://github.com/masto/NSPanel-Demo-Files
|
||||||
|
|
||||||
|
Marcfager: https://github.com/marcfager/nspanel-mf
|
||||||
|
|
||||||
|
lovejoy77: https://github.com/lovejoy777/NSpanel
|
||||||
|
|
||||||
|
Hellis81: https://github.com/Hellis81/NS-panel
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,18 @@
|
|||||||
|
climate:
|
||||||
|
- platform: generic_thermostat
|
||||||
|
unique_id: cf308990-0dbd-4e8a-be77-aec56d7a5aa4
|
||||||
|
name: NSPanel Büro
|
||||||
|
heater: switch.nspanel_buro_relay_2
|
||||||
|
target_sensor: sensor.nspanel_buro_temperature
|
||||||
|
min_temp: 13
|
||||||
|
max_temp: 27
|
||||||
|
ac_mode: false
|
||||||
|
target_temp: 22
|
||||||
|
cold_tolerance: 0.5
|
||||||
|
hot_tolerance: 0.5
|
||||||
|
min_cycle_duration:
|
||||||
|
seconds: 60
|
||||||
|
keep_alive:
|
||||||
|
minutes: 3
|
||||||
|
initial_hvac_mode: "heat"
|
||||||
|
precision: 0.5
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# Please insert into the default file "configuration.yaml
|
||||||
|
# Folder must be changed to the directory where the tft file (Nextion Editor) will be uploaded
|
||||||
|
###########
|
||||||
|
#
|
||||||
|
#Folder watcher for NS panel auto upload tft
|
||||||
|
folder_watcher:
|
||||||
|
- folder: /config/www/nspanel/
|
||||||
@@ -0,0 +1,78 @@
|
|||||||
|
##### Sensor ######
|
||||||
|
sensor:
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
wochentag:
|
||||||
|
friendly_name: "Wochentag"
|
||||||
|
unique_id: 6ac64850-8563-456c-b562-92343dd96f0b
|
||||||
|
value_template: >
|
||||||
|
{% set days = ['Montag,', 'Dienstag,', 'Mittwoch,', 'Donnerstag,', 'Freitag,', 'Samstag,', 'Sonntag,'] %}
|
||||||
|
{{ now().timestamp() | timestamp_custom(days[now().weekday()] ~ ' %d.%m')}}
|
||||||
|
icon_template: mdi:calendar-range
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
wochentag01:
|
||||||
|
friendly_name: "Wochentag+1"
|
||||||
|
unique_id: 6b2aad54-3eb0-48cc-ae32-ee3574197f1b
|
||||||
|
value_template: >
|
||||||
|
{% set days = ['Montag,', 'Dienstag,', 'Mittwoch,', 'Donnerstag,', 'Freitag,', 'Samstag,', 'Sonntag,', 'Montag,'] %}
|
||||||
|
{{(as_timestamp(now())+ (86400)) | timestamp_custom(days[now().weekday()+1] ~ ' %d.%m') }}
|
||||||
|
icon_template: mdi:calendar-range
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
wochentag02:
|
||||||
|
friendly_name: "Wochentag+2"
|
||||||
|
unique_id: edbddaf0-2791-4774-b8d4-aa706f75cc7a
|
||||||
|
value_template: >
|
||||||
|
{% set days = ['Montag,', 'Dienstag,', 'Mittwoch,', 'Donnerstag,', 'Freitag,', 'Samstag,', 'Sonntag,', 'Montag,', 'Dienstag,'] %}
|
||||||
|
{{(as_timestamp(now())+ (172800)) | timestamp_custom(days[now().weekday()+2] ~ ' %d.%m') }}
|
||||||
|
icon_template: mdi:calendar-range
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
wochentag03:
|
||||||
|
friendly_name: "Wochentag+3"
|
||||||
|
unique_id: ad592622-db86-40f7-9961-4c1ffd21c711
|
||||||
|
value_template: >
|
||||||
|
{% set days = ['Montag,', 'Dienstag,', 'Mittwoch,', 'Donnerstag,', 'Freitag,', 'Samstag,', 'Sonntag,', 'Montag,', 'Dienstag,', 'Mittwoch,'] %}
|
||||||
|
{{(as_timestamp(now())+ (259200)) | timestamp_custom(days[now().weekday()+3] ~ ' %d.%m') }}
|
||||||
|
icon_template: mdi:calendar-range
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
wochentag04:
|
||||||
|
friendly_name: "Wochentag+4"
|
||||||
|
unique_id: dcb3ed45-2b89-4672-a04f-a55f025ac745
|
||||||
|
value_template: >
|
||||||
|
{% set days = ['Montag,', 'Dienstag,', 'Mittwoch,', 'Donnerstag,', 'Freitag,', 'Samstag,', 'Sonntag,', 'Montag,', 'Dienstag,', 'Mittwoch,', 'Donnerstag,'] %}
|
||||||
|
{{(as_timestamp(now())+ (345600)) | timestamp_custom(days[now().weekday()+4] ~ ' %d.%m') }}
|
||||||
|
icon_template: mdi:calendar-range
|
||||||
|
|
||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
wochentag05:
|
||||||
|
friendly_name: "Wochentag+5"
|
||||||
|
unique_id: 77e642a5-de54-452d-9f4a-febe3a7851c2
|
||||||
|
value_template: >
|
||||||
|
{% set days = ['Montag,', 'Dienstag,', 'Mittwoch,', 'Donnerstag,', 'Freitag,', 'Samstag,', 'Sonntag,', 'Montag,', 'Dienstag,', 'Mittwoch,', 'Donnerstag,', 'Freitag,'] %}
|
||||||
|
{{(as_timestamp(now())+ (432000)) | timestamp_custom(days[now().weekday()+ 5] ~ ' %d.%m') }}
|
||||||
|
icon_template: mdi:calendar-range
|
||||||
|
|
||||||
|
###### NSPanel Büro - climate target temperature #####
|
||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
nspanel_buro_target_temp:
|
||||||
|
unique_id: 2393ab74-21ce-42d3-b15e-ec162b9d6f31
|
||||||
|
friendly_name: NSPanel Buro Target Temp
|
||||||
|
value_template: "{{ state_attr('climate.nspanel_buro', 'temperature') }}"
|
||||||
|
|
||||||
|
###### NSPanel Büro - climate target temperature #####
|
||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
nspanel_lea_target_temp:
|
||||||
|
unique_id: e8e61ff7-3a41-47ad-bd6c-303f730de96f
|
||||||
|
friendly_name: NSPanel Lea Target Temp
|
||||||
|
value_template: "{{ state_attr('climate.nspanel_lea', 'temperature') }}"
|
||||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
25
esphome.yaml
25
esphome.yaml
@@ -805,8 +805,31 @@ text_sensor:
|
|||||||
nextion_id: disp1
|
nextion_id: disp1
|
||||||
name: $device_name last click
|
name: $device_name last click
|
||||||
id: disp1_last_click_va
|
id: disp1_last_click_va
|
||||||
update_interval: 50ms
|
# update_interval: 50ms
|
||||||
component_name: lastclick
|
component_name: lastclick
|
||||||
|
on_value:
|
||||||
|
then:
|
||||||
|
- wait_until:
|
||||||
|
switch.is_on: nextion_init
|
||||||
|
- number.set:
|
||||||
|
id: display_brightness
|
||||||
|
value: !lambda 'return string(x);'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# - platform: nextion
|
||||||
|
# id: brightslider
|
||||||
|
# name: $device_name brightness Slider
|
||||||
|
# variable_name: brightslider
|
||||||
|
# internal: true
|
||||||
|
# on_value:
|
||||||
|
# then:
|
||||||
|
# - wait_until:
|
||||||
|
# switch.is_on: nextion_init
|
||||||
|
# - number.set:
|
||||||
|
# id: display_brightness
|
||||||
|
# value: !lambda 'return int(x);'
|
||||||
|
|
||||||
|
|
||||||
##### last click lightsettings page, the main action variable - push to HA #####
|
##### last click lightsettings page, the main action variable - push to HA #####
|
||||||
- platform: nextion
|
- platform: nextion
|
||||||
|
|||||||
Reference in New Issue
Block a user