Skip to content

#212 Home Assistant Integration - #729

Open
ALRAARLA wants to merge 2 commits into
masterfrom
212/home-assistant-integration
Open

#212 Home Assistant Integration#729
ALRAARLA wants to merge 2 commits into
masterfrom
212/home-assistant-integration

Conversation

@ALRAARLA

@ALRAARLA ALRAARLA commented Jan 8, 2026

Copy link
Copy Markdown
Collaborator

@ALRAARLA ALRAARLA changed the title #212 added labels #212 Home Assistant Integration Jan 8, 2026
@github-actions

github-actions Bot commented Jan 8, 2026

Copy link
Copy Markdown

🎉 Beta deployment successful!: view the changes in live preview environment: https://gridbeta-github.asterics-foundation.org/ALRAARLA/212-home-assistant-integration/pr

@klues klues left a comment

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.

Thanks, please see my review comments.

Comment thread yarn.lock

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.

please revert this file, I think no changes needed here.

Comment thread .yarnrc.yml

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.

I think also this file is not needed, so remove/revert it


homeAssistantService.sendAction = async function (action) {
try {
const base = (action.homeAssistantUrl || 'http://192.168.0.230:8123').replace(/\/api.*$/, '').replace(/^https:/, 'http:');

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.

better use http://homeassistant.local:8123 as fallback

Comment thread app/lang/i18n.zu.json

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.

please only change the file i18n.en.json and revert all changes in the other translation files.

Comment thread .yarn/install-state.gz

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.

also not needed, remove/revert please.

homeAssistantService.getRestURL = function (userUri) {
if (!userUri) {
userUri = window.location.hostname.indexOf('grid.asterics.eu') > -1
? 'http://192.168.0.230:8123/api/states'

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.

Also here we have a fixed IP address.

function mapActionToService(actionType) {
if (!actionType) return 'toggle';
const t = actionType.toString().toUpperCase();
if (t === 'ON' || t === 'TURN_ON') return 'turn_on';

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.

I don't understand why you're using constants like ON or TURN_ON here and mapping it to the home assistant service constants here. Why not using the home assistant strings like turn_on everywhere in the first place (also at defining the actions)?

<input class="col-12" id="inputHomeAssistantUri"
v-model="action.homeAssistantUrl"
type="text"
placeholder="http://192.168.0.230:8123">

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.

fixed IP

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants