-
Notifications
You must be signed in to change notification settings - Fork 1
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
das interessiert mich #1
Comments
Hi, |
I'm pretty new to the python programming language but have a good knowledge in programming in general and in OOP. My inspiration for the upcoming free@home local API comes from https://github.com/frenck/python-wled. From a python perspective I want to set everything up in an async-manner, from an OOP perspective I plan to use the principle of least knowledge and the factory pattern. So what does this mean (at least from my point of view):
Also the freeathome object opens a websocket to listen to all change events from the SysAP and forward all messages to the SysAP, which will forward it to the specific Device, which will forward it to the specific Channel, which will forward it to the specific Output datapoint. That is - at least for now - my plan, which I hope to start soon with. For sure the SysAP also has a floorplan, but this is "easy". I have the expectation, that through the use of the Factory classes, especially the development should be simplified as it should be possible to concentrate on specific use cases (e.g. only Weatherstation, only Switch). For now I still have two "big" questionmarks:
If this sounds wrong or if someone has a better idea I'm happy to discuss. |
This is a very good and ambitious plan. I try to implement a rather minimalistic bottom-up approach in my own repository. Maybe we can benefit each other. Here is the link to my repository: HaikoKurt/sysap (just beginning and work in progress) |
Do you mean the pairingID? |
No. Each device and channel also has a field called "parameters" and there are parXXXX key-value pairs in them. In general I understand the meaning when looking at https://github.com/Busch-Jaeger/node-free-at-home/blob/master/src/parameterIds.ts, but some "descriptions" are not really intuitive and I e.g. don't know if they are changeable through the REST-API and so on |
I understand this in such a way that some devices have additional parameters that can be set from the outside. For example, the brightness of the lamps in the switches. Which parameters are present depends on device. |
A very interesting idea with the implementation of RestAPI. if it was possible to try https://github.com/derjoerg/ha_freeathome_local . That would be cool! Please do it! |
Hallo Jörg, eine Python Bibliothek zum Ansprechen der lokalen REST API von free@home fände ich sehr spannend. hast Du schon einen Plan für die Funktionalität? Wenn ich kann, unterstütze ich gerne. Viele Grüße
The text was updated successfully, but these errors were encountered: