Skip to content

重构,支持多网关#82

Open
caibinqing wants to merge 15 commits intomypal:testfrom
caibinqing:refactor
Open

重构,支持多网关#82
caibinqing wants to merge 15 commits intomypal:testfrom
caibinqing:refactor

Conversation

@caibinqing
Copy link
Contributor

@caibinqing caibinqing commented Sep 5, 2024

重构了一下项目结构,并且试着支持多网关(我没有多个网关,需要帮忙测试)

顺便支持了一下新的实体命名规则,传感器的实体应该默认就有翻译了。

版本号修改到了 2.0.0
没有破坏性改动,原来单网关的用户应该可以安全升级。

fix #78
fix #74
fix #84


修改细节:
基本逻辑没动,把 Service 从静态改成可以实例化的类,相关的 Config listener 等都整合进 Service 里面了,现在应该没有全局变量了。

This was referenced Sep 5, 2024
@xrh0905 xrh0905 mentioned this pull request Feb 10, 2025
@enjoyzhuang
Copy link

确实支持双网关了, 但是添加第二个只显示一个实体,其他没显示出来。 重启ha之后, 两个网关的都重叠了。。 求解决

@caibinqing
Copy link
Contributor Author

oh 那看来还有点问题,我手头也没有两个网关,不太好测试。(最近比较忙,暂时也没有时间研究这块)

@enjoyzhuang
Copy link

oh 那看来还有点问题,我手头也没有两个网关,不太好测试。(最近比较忙,暂时也没有时间研究这块)

嗯,如果需要的话我给你寄过去啊。 等你抽空再搞吧, 感谢了!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HA版本2025之后插件无法正常工作 关于同时接入两个大金网关的问题 申请增加多网管支持!

2 participants