-
Notifications
You must be signed in to change notification settings - Fork 41
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
Free@Home local REST api #80
Comments
@Tho85 how could we make this work? Woohooo :). Shall I learn Python? Maybe start with a Pypi lib? |
Yes, I think this would be the best first step. I think it makes sense to set up a GitHub org for that, or alternatively to see if it can be hosted in the organization home-assistant-libs |
Interesting, definitely! I think the greatest news about this is that ABB seems to be commited to provide local access to the SysAP in the future, instead of forcing everyone to use their cloud. Some thoughts:
I'm still on 2.4.0 for various reasons, but I will try to update to 2.6.0 in the next days and start tinkering with it 😃 |
I just updated... after updating all the actors also it works still like a charm. So a smooth migration is possible :). What I noticed a year ago already is that f@h was lacking the local API. KNX devices had it already... Which means to me that this is quite stable. From a very quick scan I concluded that it doesn't differ that much from public API. |
One of the requirements is : A system access point 2.0 with at least version 2.6.0 must be available. Do you have this 2.0 version? My system is five years old. |
Yes I have this newest version. I bought it when I noticed that my Hue lights were not performing. It actually is a nice investment the bump in performance is really good. |
I've upgraded to 2.6.0 as well, and the component seems to work as before. I just had a glimpse at the local API, and it looks like it only exports a reduced configuration file instead of a complete one. Especially, the following information is missing:
|
Another information that's missing:
And although you can open a WebSocket connection to receive state updates from the SysAP, it looks like it is not possible to use that connection to send commands back to the SysAP. So every command (switch on etc.) is a separate HTTP call, which produces additional request overhead. (When inspecting the firmware update a little closer, it looks like it is dispatched through an nginx on the device to a separate REST handler, so I guess this is not nearly as fast as the XMPP way.) Honestly, I'm unsure if we should jump on the API right now. Maybe we could give ABB/Busch-Jaeger some kind of feedback about this, so that they can address this in a future release? |
Yeah, will try to get in contact |
The virtual devices part looks interesting, though. It allows you to create virtual lights, shutter actuators, thermostats etc. and have them controlled in free@home. This way we could expose Home Assistant entities to free@home similar to emulated_hue, but with support for more device types. |
hi can anyone help me I integrated freeathome it gives me this error when it syncs can anyone help me? thank you Logger: homeassistant.config_entries Error setting up entry 192.168.1.102 for freeathome |
Hi, I just looked at some comments above and checked the current Rest-API (3.1.1). Just two points:
|
The local REST api is now also available in the latest firmware version for the 1.0 hardware version :-). |
Please also see my comment in #19 #19 (comment) |
Hi, I started creating a python library as a first step to control F@H through the local REST API. Before I go further this way I would really like to get some feedback on the structure of the library and so on as it is the first time I've done something with python |
I've been working on this in the background for a little while and I think it's ready to be opened up to others to test. Looking for contributors/collaborators. Ultimate goal is to get this added as a core integration to HA. Sorry @derjoerg, hope this doesn't step on your work. PyPi PackageI've created a new PyPi library (GitHub) to interact with the local api. Some things to point out:
Custom Home Assistant IntegrationWith the new PyPi package above, I've also created a custom Home Assistant Integration which can be easily added to HA via HACS. If anyone is willing to help test or only has switching devices you can switch this integration. I've been running this on a test server for a couple of weeks and it seems quite stable. I haven't had to implement any major bug fixes. Some things to point out on this:
|
@kingsleyadam : I have absolutely no problem if someone else supersedes my work 🙂 Even that I think that my python-library was on a good way I have to say that I have no real glue on python-programming and I gave up to start with an HA-integration as I didn't understood how to connect HA to my F@H-websocket. Nevertheless, I'm absolutely happy that you opened your work and as soon as I get it working on my HA-testinstallation I will try to contribute to get as much devices in as possible. |
With the latest firmware version 2.6.0, there is now a local REST API. This also allows web socket connections.
While this will require considerable effort, this will make it possible to ditch XMPP and go for an officially supported API 🎉
Documentation at https://developer.eu.mybuildings.abb.com/fah_local/
The text was updated successfully, but these errors were encountered: