-
Notifications
You must be signed in to change notification settings - Fork 384
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
Add ability to view and control accessories #37
Comments
How can I start Homebridge with the '-I' flag if I use systemd to start homebridge? I updated with the @next tag, restarted the RaspberryPi but it does not show the accessories tab in the Web Interface. |
For some reason I don't see the accessories tab in the Config UI but I can navigate to it if I type the address manually. Also, non admin logins are still able to login and change all the settings and passwords. |
Hi @Green-Kite This will depend on your individual setup, if you followed these instructions you would add the
If you don't have that file you might have to add the After making any changes run:
|
@SkyJohn - Thanks for testing. My last minute change to support this running in the oznu/homebridge docker image broke insecure mode detection. I've fixed this in the latest You will need to run the install command to update to new versions of the
You're the first person to figure out the "admin" checkbox currently does nothing. I was seeing if this feature was actually being used before deciding to take the time to implement it in this fork. A non-admin user option is going to be more useful once accessory control is added, so I will include this as part of this major release. |
Yup updating made the accessories tab show up for me too. How are the accessories being organised at the moment? They just seem to be showing up as a random bunch at the moment with lights and switches all mixed together in not particular order. |
@SkyJohn, currently the services are not ordered in any particular way. My plan is to allow you to organise them yourself using drag and drop and to possibly sort them into different rows which represent rooms (existing room information is stored in iCloud which we can't access). I also am thinking about a "full screen mode" which could allow it to be used as a home control panel on a cheap tablet device. |
Drag and drop support with rooms is available to preview. You can arrange accessories by dragging them, even between rooms, and you can also arrange the room order by dragging the room by the room name element. Don't spend to much time perfecting your layout - it's not persistent yet, and the "Add Room" button isn't working. Drag and drop is disabled on mobile devices. |
Quick update.
And something I didn't mention before, the extra controls for accessories (such as bulb brightness, target temperature, fan speed etc.) can be accessed by doing a "long press" on the accessory icon - just like in iOS. Check the initial post in this thread to see what's currently supported. |
Hi @dominick-han, I just added them in 3.0.0-16 - f2ab274. |
Let me know if you need help developing some aspects of this Issue |
I realize this is a feature some might find interesting so please don't take this the wrong way but as constructive criticism. Its just my thoughts on the topic, nothing more.
So yeah, I'm just saying this as it seems like a lot of work for something that might end up as a "feature creep" - the way I see it people look for something to control their HomeBridge server not the devices themselves. So features in that direction might be a better way to go? Again and again, all just my thoughts (not even a fixed opinion) - I know that its best to use the energy when you're "in the zone" - which you certainly seem to be with this feature! 😀 And I'm well aware it's optional - thats why I thought about it, I'll probably never enable it. |
I'm doing this so I can control accessories from my workstation. There are plenty of iOS apps, but there are none for the desktop, even Siri for macOS does not support HomeKit. While I'm working I'd rather not stop, reach for my phone or turn off the music (so siri does not get confused) just to adjust the A/C. This also opens up the ability for those Android users to control the home, which might be useful if you have guests and don't have a communal iPad.
Updating accessories still requires knowing Homebridge PIN, so it's not completely insecure, and as you say, it's optional, people who aren't running in insecure mode won't even see the Accessories tab. |
It sounds a bit like you did not take it as constructive criticism and start to defend yourself, theres no need for that. I didn't ask you to stop doing anything. The problem with security (among other things) is that you offer an easy way to install plugins from a totally open repository. Anyone could put out a plugin saying "HomeKit control for (popular device)" and get into peoples systems and control them if this config UI becomes more common. |
cool! it would be awesome if you also make http API |
@normen People can't already install all those homebridge plugins easily and open themselves to those kinds of exploits, Config UI X doesn't add any extra insecurity in that respect. |
Unfortunately this is the case whether you are running in insecure mode or not. A malicious plugin doesn't even have to be setup in the Considering this, it might be good to show the GitHub star count or npm download count for a plugin which will allow the users to decide how much they trust a plugin before installing it. |
Exactly, when people install stuff via command line they have to put a bit more thought in it. Saying "you can disable it" doesn't work - people do not research every option they enable. If they would google couldn't make any money :) People need to be reminded about such things. |
It's not related to "Accessory Control", but from > 3.0 all plugins installed will have their dependencies scanned for known vulnerabilities and malware from the list at https://nodesecurity.io/advisories. Powered by nodesecurity.io's free scanning tool: https://github.com/nodesecurity/nsp. |
Very much appreciate the README and code additions. I don't want to whinge but I'm just thinking that if it would become very common for people to easily install something completely insecure without warning into their HomeKit system Apple will quickly call an end to all the fun and simply disallow uncertified devices :( ..and a complete RasPi distro with HomeBridge and this plugin installed is just one determined student away ;) |
Thanks to everyone who tested this and provided their feedback. 3.0.0 is now on the Not all service types are supported, but these will be added over time based on demand and tracked in #47. |
@oznu I keep coming back to this thread during my search, therefore the following question: I'm looking for a possibility to access my HomeKit devices with pure read access to build a dashboard which should run on a TV (no controlling). While searching the ui repository I found a web socket service for the ui but actually I am a bit lost. I have been using HomeKit for about 4 years, currently in version 0.4.50. Thanks for any advice. |
I would like to add the ability to view and control accessories exposed by Homebridge from the Config UI X interface.
This requires support in the user interface for each HomeKit service type. There are ~40 services that have ~125 different characteristics.
To enable accessory control Homebridge must be started in insecure mode using the
-I
flag (this allows Config UI X access, the Accessories tab won't be displayed if it's not enabled):The text was updated successfully, but these errors were encountered: