The Home Assistant Plasmoid can send desktop notifications when entity states change, allowing you to stay informed of important events without keeping the widget open.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/korapp/plasma-homeassistant/llms.txt
Use this file to discover all available pages before exploring further.
Notification System
Notifications are implemented using KDE’s notification system inNotifications.qml:
Notification Properties
- Component:
plasma_workspace- Integrates with KDE Plasma notifications - Title: Uses the plasmoid’s configured title
- Icon: Shows the Home Assistant logo
- Auto-delete: Notifications are automatically removed after display
Enabling Notifications
Notifications are configured per entity using thenotify field:
notify: true to enable notifications for an entity’s state changes.
Notification Triggers
Notifications are triggered when an entity’s display value changes. Frommain.qml:
Trigger Conditions
A notification is sent when all of these conditions are met:- The entity has
notify: truein its configuration - The entity’s display value has changed
- The change comes from a real state update (not initial load)
Notifications are only triggered when the display value changes, not when attributes change. The display value is determined by the entity’s configured attribute or state.
Notification Content
Notifications display the entity name and its new value:Content Examples
Binary sensor (door):Configuration Examples
Door/Window Sensors
Notify when doors or windows open:Motion Sensors
Appliance Status
Get notified when appliances finish:Security Alerts
Climate Changes
Monitor significant temperature changes:Display Value vs State
Notifications use the display value, which follows this priority:- Custom attribute (if configured)
- State with unit
- Empty string
Example: Displaying Brightness Instead of State
Example: Default State Notification
Notification Behavior
Initial Load
Notifications are not triggered during the initial state load:updateState function is only called for subsequent changes, preventing notification spam on startup.
Real-Time Updates
Notifications are triggered immediately when Home Assistant sends state updates through the WebSocket connection:Duplicate Prevention
The value comparison prevents duplicate notifications:System Integration
Notifications appear in the KDE Plasma notification area and:- Follow system notification settings
- Can be dismissed individually
- Support Do Not Disturb mode
- Are logged in the notification history
- Auto-delete after display (don’t persist)
Best Practices
- Use sparingly: Only enable notifications for important state changes
- Descriptive names: Use clear entity names since they appear in notifications
- Binary sensors: Ideal for door/window sensors, motion detectors
- Discrete states: Better for on/off than continuous numeric values
- Security first: Enable for security-related entities (doors, alarms, smoke detectors)
The
autoDelete: true property ensures notifications don’t clutter the persistent notification history. They’re displayed momentarily and then removed automatically.