Skip to content
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

我的DYD-E12A3接入也不成功 #3

Open
wuqiyu007 opened this issue Mar 31, 2021 · 3 comments
Open

我的DYD-E12A3接入也不成功 #3

wuqiyu007 opened this issue Mar 31, 2021 · 3 comments

Comments

@wuqiyu007
Copy link

现在HA 版本是Home Assistant 2021.3.4 下载你的最新的components 把mqtt拷贝进custom_components,按要求编写configuration.yaml 实体switch.deye不可以用
我是群晖下docker的Home Assistant
盼回复

@wuqiyu007
Copy link
Author

我的device list by user有这个"payload": "1411020000190000000000000000003C4D0000000000",
是不是和这个有关,怎么转换呢

@yongman
Copy link
Owner

yongman commented Mar 31, 2021

@wuqiyu007 2021.3.4的mqtt集成需要在UI的配置-》集成-》MQTT reconfigure一下,把birth message和will message都取消,才能连上mqtt server,可以试一下。

@wuqiyu007
Copy link
Author

好的好的,我昨天最后一次成功了,我改了__init__.py
if payload == "deye_on":
payload = struct.pack('10b',8,2,1,0,30,0,0,0,0,0)
elif payload == "deye_off":
payload = struct.pack('10b',8,2,0,0,30,0,0,0,0,0)
还有也取消了birth message和will message 不知道哪个起作用了,反正成功了,太感谢了

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

No branches or pull requests

2 participants