129 Commits

Author SHA1 Message Date
Blackymas
1f6eabeeee Merge pull request #189 from Blackymas/beta
Release - v.3.0.0
2023-01-15 10:23:49 +01:00
Blackymas
0309dec38d Merge pull request #188 from Blackymas/dev
Update README.md
2023-01-14 23:31:32 +01:00
Blackymas
143b80f630 Update README.md 2023-01-14 23:29:15 +01:00
Blackymas
6001ab425c Merge pull request #184 from Blackymas/dev
rdy for stable
2023-01-12 22:22:53 +01:00
Blackymas
817d187dd8 add Version number to blueprint description 2023-01-12 22:21:17 +01:00
Chris
ab0e622dd9 Merge pull request #182 from deejaybeam/dev
upd: add service upload_tft_url
2023-01-12 19:12:03 +01:00
Chris
1541c07e99 Merge branch 'Blackymas:dev' into dev 2023-01-12 19:08:55 +01:00
Chris
a823bf9739 upd: add service upload_tft_url 2023-01-12 19:07:04 +01:00
Blackymas
ec79ccf008 Merge pull request #181 from Blackymas/dev
Dev to beta
2023-01-12 16:26:52 +01:00
Blackymas
bd5fb7adc6 add fan pic 2023-01-12 08:53:23 +01:00
Blackymas
5e80691b3e add fan mapping 2023-01-12 08:51:56 +01:00
Chris
fbbb10b4e8 Merge pull request #176 from PunkRa1n/patch-2
sorted and fixed language selection
2023-01-11 21:52:49 +01:00
PunkRa1n
593a9f8592 sorted and fixed language selection 2023-01-11 21:49:06 +01:00
Chris
45f3ab2f13 Merge pull request #174 from deejaybeam/dev
fix: restore .vscode
2023-01-11 12:32:28 +01:00
Chris
3422a49973 fix: restore .vscode 2023-01-11 12:22:02 +01:00
Chris
e70a661f2f Merge pull request #163 from tikismoke/fan_entities
Fan entities
2023-01-11 12:13:15 +01:00
Blackymas
7380a485fd reboot button - boot page 2023-01-10 22:33:10 +01:00
Blackymas
ddbdf6fcab Add files via upload 2023-01-10 22:26:02 +01:00
Blackymas
e3e7b16b6a reboot button 2023-01-10 22:24:59 +01:00
Blackymas
4fc051acda add reboot button on boot page 2023-01-10 22:15:02 +01:00
tikismoke
281d284f67 Delete settings.json 2023-01-10 21:56:39 +01:00
tikismoke
f1a0cd3086 Delete .wsuo 2023-01-10 21:56:27 +01:00
tikismoke
773b39f7e5 Delete read.lock 2023-01-10 21:56:15 +01:00
tikismoke
8608b3b397 Delete 6ef87407-4c14-4dfe-9117-c8cc11aa6f4e.vsidx 2023-01-10 21:56:09 +01:00
tikismoke
8bbeace1b2 Delete 4a36059d-0d01-4a92-9922-a7a244697e7f.vsidx 2023-01-10 21:56:03 +01:00
tikismoke
cb9ba1a2ff Delete VSWorkspaceState.json 2023-01-10 21:55:54 +01:00
tikismoke
204d574457 Delete slnx.sqlite 2023-01-10 21:55:49 +01:00
Blackymas
21a8598f87 add reboot button on boot page 2023-01-10 21:53:40 +01:00
Blackymas
53dabf89fe Add files via upload 2023-01-10 21:51:29 +01:00
Chris
512189af4e Merge pull request #171 from deejaybeam/dev
upd: weather-entity, new boot-process
2023-01-10 17:49:01 +01:00
Chris
491b5cb23e upd: weather-entity, new boot-process 2023-01-10 17:46:50 +01:00
Blackymas
8ae14a4cff init boot change 2023-01-09 20:10:24 +01:00
Blackymas
c3de9950ac Merge branch 'dev' of https://github.com/Blackymas/NSPanel_HA_Blueprint into dev 2023-01-09 18:20:30 +01:00
Blackymas
3b32ae3754 change boot hmi 2023-01-09 18:20:22 +01:00
Blackymas
471eab4e93 new boot 2023-01-09 18:15:38 +01:00
Blackymas
d44ced1cd5 fix indoor temp 2023-01-09 15:22:38 +01:00
Blackymas
2d0212b2f8 change indoor temp 2023-01-09 13:03:31 +01:00
Blackymas
b018c22922 indoor outdoor temp 2023-01-09 11:07:34 +01:00
Blackymas
bacfe4bec9 indoor temp sensor 2023-01-09 10:13:25 +01:00
Blackymas
8295284b65 indoor temp sensor 2023-01-09 09:42:30 +01:00
Blackymas
03842f1a42 add RUS translation 2023-01-09 08:55:23 +01:00
tikismoke
9363ee3b48 correct icon no update for fan 2023-01-06 17:06:47 +01:00
Blackymas
42ed489a1c translate please_confirm_mui 2023-01-06 15:21:49 +01:00
Blackymas
4993695a73 Add files via upload 2023-01-06 11:09:40 +01:00
Blackymas
a56db0170c change esphome Display Start 2023-01-06 10:27:13 +01:00
Blackymas
0ac19e4096 Add files via upload 2023-01-06 10:12:46 +01:00
Blackymas
14328846a7 Add files via upload 2023-01-06 09:43:28 +01:00
Blackymas
b3648e947d Add files via upload 2023-01-06 09:24:25 +01:00
Blackymas
ca736ac139 Add files via upload 2023-01-06 09:23:57 +01:00
Blackymas
cf7f943d82 Add files via upload 2023-01-06 09:10:59 +01:00
Blackymas
e6e286edd0 Add files via upload 2023-01-06 09:10:08 +01:00
Blackymas
6c86ed1f7f Add files via upload 2023-01-06 09:06:31 +01:00
Blackymas
3a4c3fe37d Add files via upload 2023-01-06 08:57:37 +01:00
tikismoke
ec67e93af0 button error 2023-01-05 20:56:15 +01:00
tikismoke
88472c7de1 typo 2023-01-05 19:48:57 +01:00
tikismoke
c0e8a46865 fan entities 1st test 2023-01-05 19:13:18 +01:00
Chris
a7aa574d8c Merge pull request #162 from deejaybeam/dev
upd: confirmation
2023-01-05 17:49:59 +01:00
deejaybeam
e32df95471 upd: confirmation 2023-01-05 17:47:14 +01:00
Chris
c19cdd3703 Merge pull request #161 from deejaybeam/dev
upd: Notification
2023-01-05 01:06:56 +01:00
Chris
1fafff21b9 Merge branch 'Blackymas:dev' into dev 2023-01-05 01:05:07 +01:00
deejaybeam
bf11e4c6e6 upd: notification 2023-01-05 01:01:08 +01:00
Blackymas
37750c642b Add files via upload 2023-01-05 01:00:28 +01:00
Blackymas
9340e3c6cd Add files via upload 2023-01-05 00:04:48 +01:00
Blackymas
280f88de2e change button08release 2023-01-04 01:39:08 +01:00
Chris
5b8f19b425 Merge pull request #157 from deejaybeam/dev
upd: new home-page and prep notify
2023-01-04 01:01:05 +01:00
deejaybeam
fe7da90f30 upd: new home-page and prep notify 2023-01-04 00:59:14 +01:00
Blackymas
2b1cf79f46 Add files via upload 2023-01-03 23:55:20 +01:00
Blackymas
5513f1d1ab dry for Notification 2023-01-03 23:43:29 +01:00
Blackymas
fae2f043e7 New Home Page and notification 2023-01-03 17:03:46 +01:00
Blackymas
8e9aa4efc1 Add files via upload 2023-01-03 16:02:23 +01:00
Blackymas
3871a97d8a Merge pull request #154 from naofireblade/dev
Added binary_sensor to supported button entities
2023-01-03 15:33:29 +01:00
Blackymas
3f634e3eb5 Add files via upload 2023-01-03 12:40:41 +01:00
Blackymas
e0455e1635 Add files via upload 2023-01-03 12:22:37 +01:00
Blackymas
71935d37f8 Add files via upload 2023-01-03 11:57:15 +01:00
Blackymas
34f057dba4 Add files via upload 2023-01-03 09:23:02 +01:00
Arne Blumentritt
7c42431143 Added binary_sensor to supported button entities 2023-01-02 23:04:51 +01:00
Blackymas
cd766c2cad Add files via upload 2023-01-02 16:05:28 +01:00
Blackymas
1d12f87a5e Add files via upload 2023-01-02 15:50:15 +01:00
Blackymas
1305284855 Add files via upload 2023-01-02 15:23:42 +01:00
Blackymas
24a415f773 Merge pull request #148 from Blackymas/beta
Add baud rate 115200 by default
2023-01-02 11:34:44 +01:00
Blackymas
d6d8de0b8e Merge pull request #147 from Blackymas/dev
Add baud rate 115200 by default
2023-01-02 11:34:19 +01:00
Blackymas
50e53ae596 new blank tft´s 2023-01-02 11:02:54 +01:00
Blackymas
92f52be4f1 Add baud rate 115200 by default 2023-01-02 11:02:10 +01:00
Blackymas
3d01355b75 add baud rate 115200 by default in TFT File 2023-01-02 10:41:03 +01:00
Blackymas
fffc70e733 Merge pull request #135 from Blackymas/beta
change description
2022-12-30 01:04:57 +01:00
Blackymas
79427157a8 Merge pull request #134 from Blackymas/dev
change description
2022-12-30 01:04:24 +01:00
Blackymas
942bacdc28 Update README.md 2022-12-30 01:03:26 +01:00
Blackymas
415465ee62 Merge branch 'dev' of https://github.com/Blackymas/NSPanel_HA_Blueprint into dev 2022-12-30 01:02:53 +01:00
Blackymas
a21dc7524c change description 2022-12-30 01:02:47 +01:00
Blackymas
0e417e5e91 Update README.md 2022-12-30 01:00:41 +01:00
Blackymas
1a36d9bf36 Merge pull request #132 from Blackymas/beta
25 languages added
2022-12-30 00:12:21 +01:00
Blackymas
3d7564b003 Merge pull request #131 from Blackymas/dev
25 languages added
2022-12-30 00:11:46 +01:00
Chris
7bebb0e8bf Merge pull request #129 from deejaybeam/dev
fix: ignore entities with state unknown
2022-12-29 17:37:54 +01:00
deejaybeam
34daabcaad fix: ignore entities with state unknown 2022-12-29 17:35:48 +01:00
Blackymas
817aa011cf language font size 2022-12-29 16:09:26 +01:00
Blackymas
7f2ecd360e add Language 2022-12-28 13:08:01 +01:00
Blackymas
f259e202bd Merge branch 'dev' of https://github.com/Blackymas/NSPanel_HA_Blueprint into dev 2022-12-28 12:50:33 +01:00
Blackymas
045c1ed939 add language 2022-12-28 12:50:25 +01:00
Chris
532f0f5ffe Merge pull request #120 from deejaybeam/dev
add script-domain, hw-buttons, small fix
2022-12-22 17:39:14 +01:00
Chris
805317e865 upd: additional domains for hw-buttons 2022-12-22 14:59:24 +01:00
Chris
a1e420e2cf upd: add script domain for buttons 2022-12-22 14:44:42 +01:00
Chris
549a978736 fix: no exec on unavailable state 2022-12-22 13:56:10 +01:00
Blackymas
184f25cb3f Merge pull request #112 from chpego/add_french_language
Add french language
2022-12-19 08:55:55 +01:00
Blackymas
dd14d6f88c change fonts for new languages 2022-12-15 10:12:39 +01:00
chpego
7a4f9f6f70 add french language 2022-12-12 12:09:33 +01:00
Blackymas
e7df0e5099 Merge pull request #98 from Blackymas/beta
add new pic in Readme
2022-12-11 00:42:59 +01:00
Blackymas
bda5a311c6 Merge pull request #97 from Blackymas/dev
add new pic in Readme
2022-12-11 00:42:34 +01:00
Blackymas
e5c44c9510 add new pic 2022-12-11 00:41:59 +01:00
Blackymas
387376a36b Merge pull request #96 from Blackymas/beta
v.2.1.0 - add new Domains, Buttons and Button Page Label
2022-12-10 22:46:13 +01:00
Blackymas
4c53f18d5b Add files via upload 2022-12-10 22:43:35 +01:00
Blackymas
919a4fe707 Update README.md 2022-12-10 22:42:54 +01:00
Blackymas
d30557a3a6 Update README.md 2022-12-10 22:41:17 +01:00
Blackymas
bc453a917f Merge pull request #93 from Blackymas/dev
New Domains, Icons and Button Page Label
2022-12-10 22:37:53 +01:00
Blackymas
e0a1117a4a Add files via upload 2022-12-10 22:33:15 +01:00
Blackymas
62a73ad255 Update README.md 2022-12-10 22:31:17 +01:00
Blackymas
55de07ecde Update README.md 2022-12-10 22:30:42 +01:00
Blackymas
c60aca7e54 change some button pics 2022-12-10 22:27:40 +01:00
Blackymas
d8cf4fbd2b Update README.md 2022-12-10 21:33:08 +01:00
Blackymas
795260ccaf Merge pull request #90 from chpego/patch-1
fix some typo
2022-12-10 21:27:26 +01:00
chpego
5d1ab726ae fix some typo
on README file
2022-12-10 06:32:55 +00:00
Chris
c3b4eb8a87 Merge pull request #89 from deejaybeam/dev
upd: add page-labels
2022-12-10 01:32:28 +01:00
deejaybeam
46582e3010 upd: add page-labels 2022-12-10 01:31:42 +01:00
Chris
592200e7d6 Merge pull request #88 from deejaybeam/dev
upd: additional domains for buttons
2022-12-10 00:40:50 +01:00
deejaybeam
dcd60b8cc4 upd: assign correct pics for new domains 2022-12-10 00:38:30 +01:00
Chris
a63c4f1412 Merge branch 'Blackymas:dev' into dev 2022-12-09 23:12:07 +01:00
Blackymas
b1579c7ea9 new button page label and domains 2022-12-09 21:25:27 +01:00
Blackymas
f5b9b1714a new version for new domains and button page label 2022-12-09 21:22:41 +01:00
deejaybeam
95ad152139 upd: additonal domains for buttons 2022-12-09 18:45:02 +01:00
Blackymas
fbc35f697f fix issues with HW buttons 2022-12-09 08:34:22 +01:00
7 changed files with 1986 additions and 605 deletions

View File

@@ -1,10 +1,10 @@
# NSPanel Custom with HA Blueprint # NSPanel Custom with HA Blueprint
[![Paypal](https://user-images.githubusercontent.com/41958506/212499642-b2fd097a-0938-4bfc-b37b-74df64592c58.png)](https://www.paypal.com/donate/?hosted_button_id=S974SWQMB8PB2)
[![Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.](https://my.home-assistant.io/badges/blueprint_import.svg)](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgithub.com%2FBlackymas%2FNSPanel_HA_Blueprint%2Fblob%2Fmain%2Fnspanel_blueprint.yaml) [![Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.](https://my.home-assistant.io/badges/blueprint_import.svg)](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgithub.com%2FBlackymas%2FNSPanel_HA_Blueprint%2Fblob%2Fmain%2Fnspanel_blueprint.yaml)
This project allows you to configure your complete NSPanel via a Blueprint with UI. This project allows you to configure your complete NSPanel via a Blueprint with UI.
### *That means you don't have to customize any code or change any lines in the code.* ### *That means you don't have to customize any code or change any lines in the code.*
So you have a nice graphical interface where you can build your NSPanel. So you have a nice graphical interface where you can build your NSPanel.
@@ -14,17 +14,23 @@ The goal was to create a version that allows everyone to use the NSpanel fully l
📕 Full documentation and installation is available here [NSPanel Configuration, Setup and HowTo](https://github.com/Blackymas/NSPanel_HA_Blueprint/wiki). 📕 Full documentation and installation is available here [NSPanel Configuration, Setup and HowTo](https://github.com/Blackymas/NSPanel_HA_Blueprint/wiki).
📌 Step by Step - [Setup Video](https://www.youtube.com/watch?v=3afPFg6kUdc)
🚀 How to create "Issues" when I have a problem [WIKI HowTo](https://github.com/Blackymas/NSPanel_HA_Blueprint/wiki) 🚀 How to create "Issues" when I have a problem [WIKI HowTo](https://github.com/Blackymas/NSPanel_HA_Blueprint/wiki)
⭐ All Feature Requests can be found here [All Feature Request](https://github.com/Blackymas/NSPanel_HA_Blueprint/labels/new%20feature%20request) ⭐ All Feature Requests can be found here [All Feature Request](https://github.com/Blackymas/NSPanel_HA_Blueprint/labels/new%20feature%20request)
🎉 Roadmap Roadmap can be found here [Roadmap](https://github.com/Blackymas/NSPanel_HA_Blueprint/labels/roadmap) 🎉 Roadmap Roadmap can be found here [Roadmap](https://github.com/Blackymas/NSPanel_HA_Blueprint/labels/roadmap)
💥 Please move pull request to DEV branch and not to main branch - thanks!
🙋 WE ARE LOOKING FOR YOU! _**We are always looking for people who would like to support this project. We are looking for help with "programming new features, writing documentation or translating documentation to EN. If you are interested then please contact us :)**_ 🙋 WE ARE LOOKING FOR YOU! _**We are always looking for people who would like to support this project. We are looking for help with "programming new features, writing documentation or translating documentation to EN. If you are interested then please contact us :)**_
## NSPanel: ## NSPanel:
![2 Home](https://user-images.githubusercontent.com/41958506/203653897-cf96a7af-2b92-4ad9-a375-987decad5aa7.png) ![2 Home](https://user-images.githubusercontent.com/41958506/203653897-cf96a7af-2b92-4ad9-a375-987decad5aa7.png)
![3 Buttonpage](https://user-images.githubusercontent.com/41958506/203654022-c6d81263-ce56-4a84-917a-9d4911f19f55.png) ![3 Buttonpage](https://user-images.githubusercontent.com/41958506/203654022-c6d81263-ce56-4a84-917a-9d4911f19f55.png)
![NEW Domains](https://user-images.githubusercontent.com/41958506/206879659-3aea30c1-b126-4d52-a869-abf6adfc8fa1.png)
(Home and Buttonpage) (Home and Buttonpage)
@@ -44,7 +50,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l
![8 Cover](https://user-images.githubusercontent.com/41958506/203654290-c6ec2f2f-7924-492c-914c-0d96dc3907e0.png) ![8 Cover](https://user-images.githubusercontent.com/41958506/203654290-c6ec2f2f-7924-492c-914c-0d96dc3907e0.png)
![9 Weather](https://user-images.githubusercontent.com/41958506/203654307-24000d00-b7e1-47eb-bd64-9e97b508db52.png) ![9 Weather](https://user-images.githubusercontent.com/41958506/203654307-24000d00-b7e1-47eb-bd64-9e97b508db52.png)
(Coversetting and Weather Forcast) (Coversetting and Weather Forecast)
![10 Settings](https://user-images.githubusercontent.com/41958506/203654386-e4e574ad-8674-4268-84dd-1c4e40f98eb9.png) ![10 Settings](https://user-images.githubusercontent.com/41958506/203654386-e4e574ad-8674-4268-84dd-1c4e40f98eb9.png)
@@ -57,7 +63,7 @@ The goal was to create a version that allows everyone to use the NSpanel fully l
![Device Setting 2](https://user-images.githubusercontent.com/41958506/203724491-53ecd93d-bc7c-4c2d-850b-f106691e2639.png) ![Device Setting 2](https://user-images.githubusercontent.com/41958506/203724491-53ecd93d-bc7c-4c2d-850b-f106691e2639.png)
(HA Device Seeting for Example temperature correction) (HA Device Setting for Example temperature correction)
## Blueprint: ## Blueprint:
@@ -67,28 +73,28 @@ The goal was to create a version that allows everyone to use the NSpanel fully l
## Features: ## Features:
- easy to use and simple configuration via Blueprint - no change in the code is necessary - Easy to use and simple configuration via Blueprint - no change in the code is necessary
- 32 buttons on 4 button pages with long press function for settings (more buttons are also possible) - 32 buttons on 4 button pages with long press function for settings (more buttons are also possible)
- Button design is automatically generated based on the selected entity - Button design is automatically generated based on the selected entity
- Buttons show current brightness and cover position in the button itself - Buttons show current brightness and cover position in the button itself
- Buttons label can be assigned via blueprint - Buttons label can be assigned via blueprint
- Weather + 5 days weather forcast - Weather + 5 days weather forecast
- Thermostat + Touch + Relay control for floor heating - Thermostat + Touch + Relay control for floor heating
- Light control (brightness-slider, colorwheel, TempColor-slider) - via Long Press - Light control (brightness-slider, colorwheel, TempColor-slider) - via long Press
- Cover control (open, close, position-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) - Settings page (display brightness, display dim brightness, auto-dim, sleep mode, reboot NSPanel)
- Swipe between pages - Swipe between pages
- Top menu with 10 icons for specific states - Top menu with 10 icons for specific states
- Heating control (hot water) - Heating control (hot water)
- modern design - design easy to change via Adobe Express (free + design template) - Modern design - design easy to change via Adobe Express (free + design template)
- 2 pysical switches - 2 physical switches
- and much more ;) - and much more ;)
# Pages # Pages
## Home ## Home
- current weather with button to Weather Forcast page - Current weather with button to Weather Forcast page
- Hardware buttons can be freely assigned - Hardware buttons can be freely assigned
- Hardware button label or without label - Hardware button label or without label
- Blue line indicates on or off of the entity - Blue line indicates on or off of the entity
@@ -135,8 +141,8 @@ The goal was to create a version that allows everyone to use the NSpanel fully l
- Hot water button - Hot water button
## Weather Forcast ## Weather Forecast
- 5 days Weather Forcast via swipe (Integration Accuweather - but should also go with another integration) - 5 days Weather Forecast via swipe (Integration Accuweather - but should also go with another integration)
- Lowest and highest temperature outside - Lowest and highest temperature outside
- Date - Date
- Rain probability - Rain probability

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -125,6 +125,14 @@ api:
then: then:
- lambda: 'id(disp1)->upload_tft();' - lambda: 'id(disp1)->upload_tft();'
##### SERVICE TO UPDATE THE TFT FILE from URL #####
- service: upload_tft_url
variables:
url: string
then:
- lambda: 'id(disp1)->set_tft_url(url.c_str());'
- lambda: 'id(disp1)->upload_tft();'
##### Service to send a command "printf" directly to the display ##### ##### Service to send a command "printf" directly to the display #####
- service: send_command_printf - service: send_command_printf
variables: variables:
@@ -179,6 +187,7 @@ api:
- wait_until: - wait_until:
switch.is_on: nextion_init switch.is_on: nextion_init
- lambda: 'id(disp1).set_component_font_color(component.c_str(), message);' - lambda: 'id(disp1).set_component_font_color(component.c_str(), message);'
##### Service to send a command "background color" directly to the display ##### ##### Service to send a command "background color" directly to the display #####
- service: send_command_background_color - service: send_command_background_color
variables: variables:
@@ -189,6 +198,46 @@ 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);'
##### Service to show a notification-message on the screen #####
- service: notification_show
variables:
label: string
text: string
then:
- wait_until:
switch.is_on: nextion_init
- lambda: |-
id(disp1).send_command_printf("page notification");
id(disp1).set_component_text_printf("notification.notifi_label", "%s", label.c_str());
id(disp1).set_component_text_printf("notification.notifi_text01", "%s", text.c_str());
id(notification_label).publish_state(label.c_str());
id(notification_text).publish_state(text.c_str());
- switch.turn_on: notification_unread
- if:
condition:
switch.is_on: notification_sound
then:
- rtttl.play: "two short:d=4,o=5,b=100:16e6,16e6"
##### Service to clear the notification #####
- service: notification_clear
then:
- wait_until:
switch.is_on: nextion_init
- lambda: |-
id(notification_label).publish_state("");
id(notification_text).publish_state("");
- switch.turn_off: notification_unread
##### Service to play a rtttl tones #####
# Example tones : https://codebender.cc/sketch:109888#RTTTL%20Songs.ino
- service: play_rtttl
variables:
song_str: string
then:
- rtttl.play:
rtttl: !lambda 'return song_str;'
#### Service to send thermostat cycle state #### #### Service to send thermostat cycle state ####
- service: send_thermostat_cycle_state - service: send_thermostat_cycle_state
variables: variables:
@@ -404,7 +453,7 @@ binary_sensor:
number: 27 number: 27
inverted: true inverted: true
##### Restart NSPanel Button ##### ##### Restart NSPanel Button - Setting Page #####
- platform: nextion - platform: nextion
name: ${device_name} Restart name: ${device_name} Restart
page_id: 7 page_id: 7
@@ -413,6 +462,15 @@ binary_sensor:
on_click: on_click:
- button.press: restart_nspanel - button.press: restart_nspanel
##### Restart NSPanel Button - Boot Page #####
- platform: nextion
name: ${device_name} Restart
page_id: 8
component_id: 5
internal: true
on_click:
- button.press: restart_nspanel
##### Sleep Modus NSPanel Button ##### ##### Sleep Modus NSPanel Button #####
- platform: nextion - platform: nextion
name: ${device_name} Sleep Modus name: ${device_name} Sleep Modus
@@ -472,12 +530,12 @@ sensor:
reference_resistance: 10kOhm reference_resistance: 10kOhm
filters: filters:
- lambda: return x + id(temperature_correction_global); - lambda: return x + id(temperature_correction_global);
on_value: # on_value:
then: # then:
- wait_until: # - wait_until:
switch.is_on: nextion_init # switch.is_on: nextion_init
- lambda: id(disp1).set_component_text_printf("home.current_temp", "%.1f°", id(temp_nspanel).state); # onboard temp (thermostat temp) to home page. # - lambda: id(disp1).set_component_text_printf("home.current_temp", "%.1f°", id(temp_nspanel).state); # onboard temp (thermostat temp) to home page.
# - lambda: id(disp1).set_component_text_printf("climate.current_temp", "%.1f", id(temp_nspanel).state); # - lambda: id(disp1).set_component_text_printf("climate.current_temp", "%.1f", id(temp_nspanel).state);
##### current value of page-climate target_temp ##### ##### current value of page-climate target_temp #####
- platform: template - platform: template
@@ -549,6 +607,14 @@ text_sensor:
name: ${device_name} BSSID name: ${device_name} BSSID
disabled_by_default: true disabled_by_default: true
- platform: template
name: ${device_name} Notification Label
id: notification_label
- platform: template
name: ${device_name} Notification Text
id: notification_text
##### last click sensor, the main action variable - push to HA ##### ##### last click sensor, the main action variable - push to HA #####
- platform: nextion - platform: nextion
nextion_id: disp1 nextion_id: disp1
@@ -675,9 +741,33 @@ switch:
assumed_state: off assumed_state: off
optimistic: true optimistic: true
##### Notification unread #####
- platform: template
name: ${device_name} Notification unread
id: notification_unread
entity_category: config
restore_state: true
optimistic: true
##### Notification sound #####
- platform: template
name: ${device_name} Notification sound
id: notification_sound
entity_category: config
restore_state: true
optimistic: true
##### Confirmation Message #####
- platform: template
name: ${device_name} Confirmation Message
id: confirmation_message
entity_category: config
restore_state: false
optimistic: true
##### UPDATE TFT DISPLAY ##### ##### UPDATE TFT DISPLAY #####
- platform: template - platform: template
name: Update TFT display name: ${device_name} Update TFT display
id: tft_update id: tft_update
entity_category: config entity_category: config
turn_on_action: turn_on_action:
@@ -799,17 +889,10 @@ display:
tft_url: ${nextion_update_url} tft_url: ${nextion_update_url}
on_setup: on_setup:
then: then:
- lambda: id(disp1).send_command_printf("page 9"); ##### CHANGE! - Loading page ##### - lambda: id(disp1).send_command_printf("page 8");
- wait_until: - wait_until:
api.connected api.connected
- delay: 0.5s - delay: 0.5s
- rtttl.play: "two short:d=4,o=5,b=100:16e6,16e6"
- delay: 0.5s
- switch.template.publish:
id: nextion_init
state: on
- lambda: id(disp1).send_command_printf("page 0"); #### home page #####
- delay: 2s ##### gives the display time to update other components & set the home page #####
- number.set: - number.set:
id: display_brightness id: display_brightness
value: !lambda 'return id(display_brightness_global);' value: !lambda 'return id(display_brightness_global);'
@@ -827,3 +910,7 @@ display:
{ {
id(disp1).set_component_value("settings.a02",1); id(disp1).set_component_value("settings.a02",1);
} }
- delay: 0.5s
- switch.template.publish:
id: nextion_init
state: on