Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: #698 homeassistant widget #1658

Merged
merged 1 commit into from
Nov 23, 2023
Merged

feat: #698 homeassistant widget #1658

merged 1 commit into from
Nov 23, 2023

Conversation

manuel-rw
Copy link
Collaborator

@manuel-rw manuel-rw commented Nov 15, 2023

🤖[deprecated] Generated by Copilot at 1e4365d

This pull request adds support for Home Assistant integration to the smart home dashboard app. It defines a new API endpoint, a new widget, and a new SDK for querying the state of a smart home entity from a Home Assistant instance. It also updates the app types, the integration selector, and the URL utility modules.

@manuel-rw manuel-rw linked an issue Nov 15, 2023 that may be closed by this pull request
2 tasks
Copy link

github-actions bot commented Nov 15, 2023

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 16.53% 4469 / 27023
🔵 Statements 16.53% 4469 / 27023
🔵 Functions 6.85% 29 / 423
🔵 Branches 38.31% 123 / 321
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/components/Dashboard/Modals/EditAppModal/Tabs/IntegrationTab/Components/InputElements/IntegrationSelector.tsx 59.16% 100% 0% 59.16% 20-83, 93-106
src/server/api/root.ts 0% 0% 0% 0% 1-54
src/server/api/routers/smart-home/entity-state.ts 0% 0% 0% 0% 1-53
src/tools/server/translation-namespaces.ts 100% 100% 100% 100%
src/tools/server/sdk/homeassistant/HomeAssistant.ts 0% 0% 0% 0% 1-41
src/tools/server/sdk/homeassistant/models/EntityState.ts 0% 0% 0% 0% 1-12
src/tools/shared/strings.ts 60% 66.66% 33.33% 60% 6-7, 13-14, 17-20
src/tools/singleton/HomeAssistantSingleton.ts 0% 0% 0% 0% 1-20
src/types/app.ts 100% 100% 100% 100%
src/widgets/index.ts 100% 100% 100% 100%
src/widgets/smart-home/entity-state/entity-state.widget.tsx 41.23% 100% 0% 41.23% 39-95
Generated in workflow #5855

@manuel-rw manuel-rw force-pushed the feat/homeassistant-widget branch 2 times, most recently from 106a1f0 to 9f78f33 Compare November 18, 2023 21:37
@manuel-rw manuel-rw marked this pull request as ready for review November 18, 2023 21:37
@manuel-rw manuel-rw self-assigned this Nov 18, 2023
@manuel-rw manuel-rw added ✨ Feature A feature you'd like to be added 🎴 Widget labels Nov 18, 2023
@manuel-rw
Copy link
Collaborator Author

image
283935576-ac776c51-0333-4cda-84a5-07a2e660fcc1

ajnart
ajnart previously requested changes Nov 19, 2023
src/tools/server/sdk/homeassistant/models/EntityState.ts Outdated Show resolved Hide resolved
src/tools/server/translation-namespaces.ts Outdated Show resolved Hide resolved
src/utils/url.ts Outdated Show resolved Hide resolved
src/server/api/routers/smart-home/entity-state.ts Outdated Show resolved Hide resolved
src/server/api/routers/smart-home/entity-state.ts Outdated Show resolved Hide resolved
public/locales/en/modules/smart-home/entity-state.json Outdated Show resolved Hide resolved
@manuel-rw manuel-rw force-pushed the feat/homeassistant-widget branch 6 times, most recently from 53a19e6 to 5a92861 Compare November 21, 2023 18:40
@manuel-rw manuel-rw dismissed ajnart’s stale review November 23, 2023 20:43

As discussed per Discord

@manuel-rw manuel-rw merged commit 312e2c8 into dev Nov 23, 2023
3 checks passed
@manuel-rw manuel-rw deleted the feat/homeassistant-widget branch November 23, 2023 20:44
Ornias1993 pushed a commit to truecharts/charts that referenced this pull request Nov 24, 2023
…3f2389f (#15306)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/ajnart/homarr](https://togithub.com/ajnart/homarr) | patch |
`0.14.1` -> `0.14.2` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>ajnart/homarr (ghcr.io/ajnart/homarr)</summary>

###
[`v0.14.2`](https://togithub.com/ajnart/homarr/releases/tag/v0.14.2):
Home Assistant and imprortant bugfixes

[Compare
Source](https://togithub.com/ajnart/homarr/compare/v0.14.1...v0.14.2)


![homarr-version-banner](https://togithub.com/ajnart/homarr/assets/30572287/a2acda6b-0367-4245-b624-75ee64e87646)

#### ➡️ Home Assistant integration

The long awaited Home Assistant integration is finally here. You can
display almost any entity from your Home Assistant instance within a few
clicks. Further information and guide how to set up:
https://homarr.dev/docs/widgets/home-assistant/


![283935576-ac776c51-0333-4cda-84a5-07a2e660fcc1-ffcfaf907bcbb23fcf063396f74ab4c1](https://togithub.com/ajnart/homarr/assets/30572287/b748e51e-aad4-47ad-a67f-a372821317d3)

#### ➡️ Official Reddit [r/homarr](https://www.reddit.com/r/homarr/) to
share dashboards or discuss new features

You can now share your dashboard in our official subreddit.
Please note that we will delete posts asking for support or reporting
bugs - the official site for reporting them is still here on GitHub.
But we are very happy to see tons of your configurations, hardware
setups, boards and cool setups! 🚀

https://www.reddit.com/r/homarr/

#### ➡️ Bug fixes for notepad and several other problems

In 0.14.1, we introduced a bug with the notepad widget.
This has been resolved and you can delete said widget again.
We also fixed several other bugs and log messages.

#### What's Changed

- ✨ Update GeneralTab.tsx by
[@&#8203;No-Maines-Land](https://togithub.com/No-Maines-Land) in
[ajnart/homarr#1655
- 🐛 Migrate package.json has no license field by
[@&#8203;Meierschlumpf](https://togithub.com/Meierschlumpf) in
[ajnart/homarr#1654
- 🐛 Link to definition of screen sized for edit mode notification wrong
by [@&#8203;Meierschlumpf](https://togithub.com/Meierschlumpf) in
[ajnart/homarr#1652
- 🐛 Notebook edit button placed above edit mode settings by
[@&#8203;Meierschlumpf](https://togithub.com/Meierschlumpf) in
[ajnart/homarr#1651
- ✨ Allow custom nextauth port by
[@&#8203;tuxpizza](https://togithub.com/tuxpizza) in
[ajnart/homarr#1663
- New Crowdin updates by [@&#8203;ajnart](https://togithub.com/ajnart)
in
[ajnart/homarr#1641
- ✨ Add support for installation in address bar by
[@&#8203;Meierschlumpf](https://togithub.com/Meierschlumpf) in
[ajnart/homarr#1675
- New Crowdin updates by [@&#8203;ajnart](https://togithub.com/ajnart)
in
[ajnart/homarr#1682
- 🐛 affix overlapping custom CSS box by
[@&#8203;Tagaishi](https://togithub.com/Tagaishi) in
[ajnart/homarr#1687
- New Crowdin updates by [@&#8203;ajnart](https://togithub.com/ajnart)
in
[ajnart/homarr#1692
- ✨ [#&#8203;698](https://togithub.com/ajnart/homarr/issues/698)
homeassistant widget by
[@&#8203;manuel-rw](https://togithub.com/manuel-rw) in
[ajnart/homarr#1658
- 🔖 Increase version by
[@&#8203;manuel-rw](https://togithub.com/manuel-rw) in
[ajnart/homarr#1699
- ✨ Stale time for entity state by
[@&#8203;manuel-rw](https://togithub.com/manuel-rw) in
[ajnart/homarr#1702

#### New Contributors

- [@&#8203;No-Maines-Land](https://togithub.com/No-Maines-Land) made
their first contribution in
[ajnart/homarr#1655
- [@&#8203;tuxpizza](https://togithub.com/tuxpizza) made their first
contribution in
[ajnart/homarr#1663

**Full Changelog**:
ajnart/homarr@v0.14.1...v0.14.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy42Ni4wIiwidXBkYXRlZEluVmVyIjoiMzcuNjYuMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature A feature you'd like to be added 🎴 Widget
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Home Assistant integration
3 participants