Skip to content

Home Assistant: Add entity rename, hide, favorites, and quicklinks - #30459

Open
d0rN834 wants to merge 3 commits into
raycast:mainfrom
d0rN834:feat/homeassistant-entity-customization
Open

Home Assistant: Add entity rename, hide, favorites, and quicklinks#30459
d0rN834 wants to merge 3 commits into
raycast:mainfrom
d0rN834:feat/homeassistant-entity-customization

Conversation

@d0rN834

@d0rN834 d0rN834 commented Aug 23, 2026

Copy link
Copy Markdown

Summary

  • Add local entity customization in list commands: rename (⌘⇧R), hide (⌘⇧H), and toggle favorite (⌘⇧F)
  • Add Entity Settings command to manage hidden entities, custom display names, and favorites
  • Add Save as Quicklink action (⌘⇧L) to create Raycast quicklinks that open the matching entity list with the entity ID prefilled in search
  • Favorites appear in a dedicated section at the top of entity lists

All overrides are stored locally in Raycast and do not modify Home Assistant.

Test plan

  • Open All Entities and verify rename, hide, favorite, and quicklink actions appear under Customization
  • Hide an entity and confirm it disappears from the list without navigating back to Raycast root
  • Add entities to favorites and confirm they appear in the Favorites section at the top
  • Open Entity Settings and verify hidden entities, custom names, and favorites can be managed
  • Use Save as Quicklink and confirm the quicklink opens the correct list command with the entity ID prefilled

Made with Cursor

Enable local rename, hide, and favorite actions in entity lists, add an Entity Settings command for managing overrides, and support saving entities as Raycast quicklinks.

Co-authored-by: Cursor <cursoragent@cursor.com>
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: homeassistant Issues related to the homeassistant extension AI Extension platform: macOS platform: Windows labels Aug 23, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! 🎉

🔔 @tonka3000 @altrdev @rspeicher @amuelli @xilopaint @krsntn @mikikiv @techmaved @05bmckay you might want to have a look.

You can use this guide to learn how to check out the Pull Request locally in order to test it.

📋 Quick checkout commands
BRANCH="feat/homeassistant-entity-customization"
FORK_URL="https://github.com/d0rN834/extensions.git"
EXTENSION_NAME="homeassistant"
REPO_NAME="extensions"

git clone -n --depth=1 --filter=tree:0 -b $BRANCH $FORK_URL
cd $REPO_NAME
git sparse-checkout set --no-cone "extensions/$EXTENSION_NAME"
git checkout
cd "extensions/$EXTENSION_NAME"
npm install && npm run dev

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days.

@greptile-apps

greptile-apps Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR adds locally persisted entity aliases, visibility controls, favorites, an Entity Settings command, and entity quicklinks.

  • Applies aliases and hidden-entity filtering across Home Assistant entity views.
  • Adds favorite ordering and dedicated sections to several list commands.
  • Adds customization actions and management UI for local overrides.
  • Generates entity-specific Raycast quicklinks.

Confidence Score: 4/5

The PR is not yet safe to merge because several changed entity commands do not provide the dedicated Favorites section promised by the feature.

Battery, camera, and zone views only reorder favorite entities inside flat collections, leaving the dedicated Favorites grouping absent for those commands.

Files Needing Attention: extensions/homeassistant/src/components/battery/list.tsx, extensions/homeassistant/src/components/camera/grid.tsx, extensions/homeassistant/src/components/zone/list.tsx

Important Files Changed

Filename Overview
extensions/homeassistant/src/lib/entity-overrides.ts Adds cached local override state and helpers for hiding, aliasing, favoriting, filtering, and ordering entities.
extensions/homeassistant/src/components/state/list.tsx Applies hidden-entity filtering, alias-aware search and display, and explicit Favorites and Entities sections.
extensions/homeassistant/src/components/battery/list.tsx Preserves battery ordering within favorite partitions but does not render favorites in the dedicated section used by sibling lists.
extensions/homeassistant/src/components/camera/grid.tsx Adds aliases, hiding, and favorite prioritization, but the flat grid provides no labeled Favorites grouping.
extensions/homeassistant/src/components/zone/list.tsx Sorts favorite zones first while retaining a flat, unlabeled list.
extensions/homeassistant/src/entity-settings.tsx Adds management sections for favorite, hidden, and renamed entities.
extensions/homeassistant/src/lib/entity-quicklink.ts Maps entity domains to list commands and creates entity-prefilled Raycast deep links.
extensions/homeassistant/CHANGELOG.md Documents the customization feature using the required merge-date placeholder.
Prompt To Fix All With AI
### Issue 1
extensions/homeassistant/src/components/battery/list.tsx:28
**Favorites section remains missing**

When a user favorites a battery, camera, or zone entity, these commands only move it to the beginning of an unlabeled collection instead of rendering the dedicated top-level Favorites section, causing favorite presentation to remain inconsistent with the corrected state-partitioned lists.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Reviews (2): Last reviewed commit: "Remove local pnpm-workspace.yaml from ex..." | Re-trigger Greptile

Comment thread extensions/homeassistant/src/components/battery/list.tsx Outdated
Comment thread extensions/homeassistant/src/components/door/list.tsx Outdated
Comment thread extensions/homeassistant/CHANGELOG.md Outdated
d0rN834 and others added 2 commits August 23, 2026 21:44
Preserve battery charge ordering, add top-level Favorites sections to state-partitioned lists, use {PR_MERGE_DATE} in changelog, and run Prettier on new files.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

const sortedStates = sortBatteries(states);
const batteryStates = sortBatteries(states) ?? states;
const sortedStates = prioritizeFavoriteStates(batteryStates, favoriteEntityIds);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Favorites section remains missing

When a user favorites a battery, camera, or zone entity, these commands only move it to the beginning of an unlabeled collection instead of rendering the dedicated top-level Favorites section, causing favorite presentation to remain inconsistent with the corrected state-partitioned lists.

Prompt To Fix With AI
This is a comment left during a code review.
Path: extensions/homeassistant/src/components/battery/list.tsx
Line: 28

Comment:
**Favorites section remains missing**

When a user favorites a battery, camera, or zone entity, these commands only move it to the beginning of an unlabeled collection instead of rendering the dedicated top-level Favorites section, causing favorite presentation to remain inconsistent with the corrected state-partitioned lists.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Extension extension fix / improvement Label for PRs with extension's fix improvements extension: homeassistant Issues related to the homeassistant extension platform: macOS platform: Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants