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

Be more verbose about hostname #341

Closed

Conversation

jtulak
Copy link

@jtulak jtulak commented Jan 29, 2024

Proposed Changes

Documentation change. The fact that add-on specific hostname has to be used in the NUT integration instead of the default localhost is not highlighted well and it led to several comments in tickets, e.g. here, or here.

So I'm changing the text from /can/ to /must/ and I'm adding it to the steps to follow as well to make it less likely to be overlooked as it happened to me.

Related Issues

nut/DOCS.md Outdated
@@ -15,7 +15,7 @@ many [individuals and companies][nut-acknowledgements].

Be sure to add the NUT integration after starting the add-on.

**Note**: _The host `a0d7b954-nut` can be used to allow Home Assistant to
**Note**: _The host `a0d7b954-nut` must be used to allow Home Assistant to
Copy link
Member

@frenck frenck Jan 29, 2024

Choose a reason for hiding this comment

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

can, not must.

Revert this change please.

Copy link
Author

Choose a reason for hiding this comment

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

OK, done.

nut/DOCS.md Outdated
@@ -35,7 +35,7 @@ comparison to installing any other Home Assistant add-on.
1. Configure the `users` and `devices` options.
1. Start the "Network UPS Tools" add-on.
1. Check the logs of the "Network UPS Tools" add-on to see if everything went well.
1. Configure the [NUT Integration][nut-ha-docs].
1. Configure the [NUT Integration][nut-ha-docs] and use `a0d7b954-nut` hostname.
Copy link
Member

Choose a reason for hiding this comment

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

This could be something else... for example, in my case, it is 40817795-nut. But I guess this is the common one, so that is fine.

The sentence doesn't flow though add the before hostname? Also, I think HA asks for "Host" and not "hostname"?

Copy link
Author

@jtulak jtulak Jan 30, 2024

Choose a reason for hiding this comment

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

AFAIK the id is SHA1(addon_url)[:8], so it will be a0d7b954-nut for most people as long as you don't change its name or move it. But it's a good point, I rewrote it to allow for other hostnames, hopefully it flows better now.

As for the host or hostname question, the only place where hostname is not used is the title of the field in the integration configuration. The add-on page shows hostname and even the tooltip in the integration configuration says: The hostname or IP address of your NUT server. So I guess it's pick-your-own, the consistency is already gone and I tried now to match the field name in the right context. That being said, I can stick to using just one of them if you prefer that.

Copy link

There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions.

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Feb 29, 2024
@github-actions github-actions bot closed this Mar 8, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stale There has not been activity on this issue or PR for quite some time.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants