Skip to content

Instantly share code, notes, and snippets.

@jlpouffier
Created August 18, 2023 07:26
Show Gist options
  • Save jlpouffier/0c2223d4ec402ee0fc02f4597a9b3e98 to your computer and use it in GitHub Desktop.
Save jlpouffier/0c2223d4ec402ee0fc02f4597a9b3e98 to your computer and use it in GitHub Desktop.
Home Assistant Hot Tip of the Day: Available Updates
template:
- sensor:
- name: pending_updates
unique_id: pending_updates
state: |
{{
expand(states.update)
| selectattr('state', 'eq', 'on')
| list
| count
}}
attributes:
entities: |
{{
expand(states.update)
| selectattr('state', 'eq', 'on')
| map(attribute='attributes.friendly_name')
| list
| sort
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment