✉️ NSpanel Extended Notifications - Blueprint Addon for NSPanel_HA_Blueprint from Blackymas
Version 1.0 Beta | Never ever tested in the wild - Expect errors. |REQUIRES:
NSPanel_HA_Blueprint fom Blackymas is already installed
Nspanel Blueprint Version v4.3.4
Custom Actions: TFT-file must be updated with event-data for Notification Page.
Features:
When Trigger is Active:
Persistant Notification until Trigger is not active.
Change to selected icon on Home Page.
“Blink” icon/chip on trigger
Send Notification to Panel
Send Silent Notification Panel
Landing Page when Notification is accepted
Custom Notification Actions
How To Update TFT/MHI file for Custom Actions
Steps
- Open HMI-file in Nextion Editor.
Select Page "notification".
- Select "bt_accept" ✅ icon
Paste the text below into 'Touch Release window' under 'Event'
lastclick.txt="{\"page\": \"notification\", \"event\": \"short_click\", \"component\": \"accept\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
- Select "bt_clear" ❌ icon
Paste the text below into 'Touch Release' window under 'Event'
lastclick.txt="{\"page\": \"notification\", \"event\": \"short_click\", \"component\": \"clear\"}"
printh 92
prints "localevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
- Generate TFT-file
- Upload TFT-file to your Panel
- Test if its working:
- Navigate to Developer Tools → Events
- Listen to event: `esphome.nspanel_ha_blueprint`
- Send a notification to your Panel and press ✅ or ❌
- You should see an event appearing in the Events page:
command: short_click
component: accept
command: short_click
component: clear
About this Blueprint
Description
To easily and clearly use notifications and trigger for icons.
Example: Lock status.
Notification is sent if there are unlocked doors - When notification is accepted the panel goes to the entity page with your lock indicators.
Example: Vacuum cleaner (CUSTOM ACTIONS)
Notification is sent when room cleaning is done - When notification is Accepted✅ your robot starts to clean the next room.
- When notification is Dismissed❌ your robot reurns to base.
- Messages persist until they are not triggered.
- It's possible to change icons and colors.
- Custom Actions for notifications
This is my first Blueprint, there are surely errors and things could probably be done in simpler ways.
Many functions are copied from Blackymas Blueprint and many other functions use the API function in Blackymas Blueprint.
There are issues with, too many API calls etc, especially when "Blink" for icons is activated and set to a low time.
A lot of things can be improved and feel free to change or use this as insperation.
- This Blueprint is only tested on my system, but should work for others if Blackymas Blueprint is installed and setup.
Link to blueprint: