-
Notifications
You must be signed in to change notification settings - Fork 15
[WIP] Homie v3.0.0 #47
base: master
Are you sure you want to change the base?
Conversation
- Rename Homie class to Device. - Update Node method to addNode. - Update property subscription mechanism. callback(property, value).
Hi Aitor, wow impressive work, once again! Have you seen my efforts in dev from 8 months ago? It might makes more sense to merge your changes here. Let me know what you think. Best regards, |
Hi Jan (@jalmeroth)! Sorry, but I'm not sure if I have understood what you mean. Do you want me to make my changes against your dev branch? I don't know if that's going to be easy 😞 Anyway, we should talk about how to handle this situation: what Homie version should we support in the library? Homie v2? Homie v3? Both at the same time? What's the best way to deal it? Two repositories and two libraries (homie-python and homie3-python)? Everything in the same repository? What about the "pip" installation process? How can that be managed? I think that I will wait until we decide something about this before changing anything in the PR 😉 Best regards! Aitor |
Hi @jalmeroth! I have made a new commit to update the library to Homie 3.0.1 (they have introduced a new "$retained" attribute to the properties to make them stateless) and have added two new examples. Let me know how do you want to address the different versions of the library (Homie 2 and Homie 3) and looking forward to seeing the library marked as stable 😉 Best regards Aitor |
Hi @bodiroga, Shouldn't the isValidFormat check in helper.py check for none for everything except enum and color, as the format is not required for the other datatypes? (or is it because of my old python 3.4 on my pi that I get a WARNING:homie.property:'None' is not a valid format for float) Regards, |
I have tested the branch and have found the following issues:
Thanks for your work! |
Thank you very much for this fork. One question: pls advise ? |
Hi there, Any news on this subject ? I'm also working on an OpenHAB 2.4 integration and this 3.0 binding is just what It needs. The work done by @bodiroga looks awesome. Do you plan to merge it someday ? Thanks for any feedback! |
Signed-off-by: Aitor Iturrioz <[email protected]>
Hi guys!
Fixed @esdeboer!
Fixed @stefanroellin!
Fixed!
Yeah, you are right, but as Homie 4 is going to completely remove the "stats" information, I'm going to keep it for now. It doesn't cause any harm and someone can find it useful 😉
Hi @rafdaems! Could you please be more specific? I need to know first what is what you don't understand? 👍 Please, test the new changes and report if you find any error! Thanks for you help! 👍 Best regards, Aitor |
Thanks for the fixes Aitor, looks good. |
Hi, thanks a lot for this code! I used it for |
Hi, |
OK, I found the answer - it's not homie, but the underlying paho mqtt library which is not thread safe: |
I have put together a python library for Homie 3 that I would like some feedback on. You can get it here https://pypi.org/project/Homie3/ Mike |
I think this pull request needs to land to a separate repo and produce a separate pip package. |
Hi @jalmeroth!
This PR is a WIP to update the library to the latest Homie version: 3.0.0. https://github.com/homieiot/convention
Even if it is WIP, I have updated all the example files to the new API and in my preliminary test everything works fine 👍 But I would like to know for opinion about the new class names and functions. Don't hesitate to suggest or criticize whatever you want 😝
Best regards,
Aitor