-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59a7811
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean localhost can create key without authentication?
59a7811
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the idea, hopefully install and pair various clients running on the same system becomes more easy.
It was possible before too, by programatically editing the sqlite database, but that's cumbersome.
59a7811
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@manup, did you have a change of heart? #446 (comment)
59a7811
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it was also on the todo list for some time :) It is still a bit uncanny to me if security checks need to be more strict in some ways. But on the other hand every program on localhost can also edit the sqlite database so API restriction to localhost should theoretically not add more security issues.
Behind the scenes there is another reason too, we're experimenting creating a homebridge-hue enabled sd-card image where the initial setup and configuration is running automatically. The related systemd and bash scripts will be part of this repository to allow PRs.
The image will be created and uploaded nightly with latest versions of the related software installed.
59a7811
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. That would be a good reason to move forward the dynamic homebridge accessories (see
ebaauw/homebridge-hue#4), so you wouldn’t have to edit config.json to specify the api key, and HomeKit would reflect newly added devices without the need to restart homebridge. That would also solve the issues with homebridge starting before deCONZ has re-created the light resources.
59a7811
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be awesome, currently we create the config file if not existing and do some checks, would be great if this part can be achieved internally by homebridge-hue. For the automatic reload we have no solution, so +1 for dynamic homebridge accessories :)
59a7811
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! This will improve setting up home assistant even more