Replies: 2 comments
-
I don't plan in overhauling the library architecture short term, as there are no real issues with it right now, and it needs a significant amount of work to facilitate this. It's not worth the effort for me atm.
It's not hundreds of new additions which are done right now. Maybe 1 or 2 a week. Which is perfectly managable with the current system. It's definitely something I have on the roadmap When the library grows significantly and contribution frequency increases it's definitely something to consider. Btw what made you think the current folder structure is specialized to light models? It can also contain fixed / linear configurations etc. in model.json. And we just started adding standby usage of smart switches to the library. |
Beta Was this translation helpful? Give feedback.
-
I see, and I am glad this is something on your roadmap. As to what you said, it's not an issue at the moment. I think this topic is very far-forward looking. An internal downloader component makes a lot of sense compared to what I was thinking. And if bundled with the .storage directory with version/hash information, then Update needs could be detected and automated similar to how HACS works. I'll tinker with the downloader approach and see what I can come up with in the next few months. If I can develop something that can give a smooth transition with regards to the bullet points above, I'll create a draft PR for a Proof of Concept.
As to the light models. I've only seen a few models on there that weren't lights, and I've seen a lot of discussion on new model type additions. (anecdotal logic on my part, which is/was error prone) |
Beta Was this translation helpful? Give feedback.
-
I'm trying to think far ahead with this one.
While I think the current LUT data folder works great for now, I don't think it is very scalable for the long term.
(For example, HomeAssistant has monthly builds, that'd be a significant slowdown for this project)
The solution I am proposing, is the ability to define data folders inside powercalc's global config, and the eventuality of switching the data folder into another repository. This has a few advantages:
(Validation pipeline by type, resulting in a lower complexity, and fewer chances for bugs)
Some Disadvantages:
With knowledge of the global_config was done, this would probably be easy to implement; however, I wanted to propose it here first. Any ideas to this?
(I did see #466; however, this isn't for the addition of custom models, but ones from a secondary repository)
Beta Was this translation helpful? Give feedback.
All reactions