Yaml Example for Update Notification #342
Replies: 3 comments 6 replies
-
Nice! 🙌 If you want to replace the order:
- new_item: true
item: UPDATES
notification: >
[[[
Object.values(states.update).filter((update) => update.state === 'on').length || ''
]]] Also, you can optionally use a partial to reuse the code in multiple places: partials:
updates: >
const updates = Object.values(states.update).filter((update) => update.state === 'on').length;
order:
- new_item: true
item: UPDATES
notification: >
[[[
@partial updates
return updates || '';
]]]
item_background: >
[[[
@partial updates
return updates ? 'green' : undefined;
]]] |
Beta Was this translation helpful? Give feedback.
-
Thank you so much. So for those who want to restart in one click and to reload all config (without restarting HA) in one click here is the code
If you don't want any! confirmation then...
|
Beta Was this translation helpful? Give feedback.
-
For those who interested in here is my dashboard and its code
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions