-
Notifications
You must be signed in to change notification settings - Fork 61
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
How to announce sub specifications #124
Comments
Good question, i can imagine @davidgraeff has an idea?? Side question, can this also allow us to specify (recommendations) on higher level nodes, like a light, relay, or temp sensor ect...? I think it would be nice for the community to also have a place were we can define these things ?? This is also important for Home Automation tools like OH and HA. @davidgraeff , it would be nice to have OH and HA compatible with Homie node definitions IMHO (this is something id like to work with you on)?? |
Personally I think we need about 4 different documents (each in their own repository with own versioning). I have prepared this for the web page script already in https://github.com/homieiot/convention-website/blob/master/multiversion.yml. I assume we'll have homie-core, homie-ota, homie-types and homie-stats. I would say each spec publishes its own version like |
I might be misstaken, but doesn't allow mqtt only for a single last will ? |
You are right, a last will is not a solution then. |
Doesn't work either since a device which doesn't know the subspec can't overwrite it. I propose adding a device attribute to the core spec which lists all supported subspecs. $subspecs, required no, retained yes This would be a non breaking change to the core and allow for good detection of supported specs. Could you outline why you don't like it ? |
I don't get what you mean. And now imagine someone disables OTA in the configuration page, or the firmware is recompiled without OTA support: The device would just erase (publish an empty string) |
I also propose using reverse domain names (similar to java) for subset ids (i.e. homie.ota for official ota) or it.thalhammer.sample for unofficial/vendor additions. |
I like the specification documents to be independent. But I can image that the homie core convention only introduces the |
Yeah that would work, but what if the device does not have the ability to delete the topic ? For example consider this case: |
Thats exactly what I intended. The subset spec would be completly independent, the only thing that changes in core is a single topic that contains a list of ids with all supported specs to allow for discover |
Could you create a PR? I like the idea of reverse domain names. Not so much your "spec-name (version)" syntax which is harder to parse as well as to create in the first place. A single separator should do it. A domain is quite restricted in its allowed character set, a comma might be fine. |
Yeah sure, I'll write it up tomorrow and create a PR. It was just an idea. You can also only list the ideas and provide the version in a topic defined by the individual specs. |
This is a tracking issue for the discussion started in #109.
How should sub specifications for example to support OTA be announced by a homie device ?
What if the device stops to support those ?
The text was updated successfully, but these errors were encountered: