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

issues while running in a multi interface environment #15

Open
kovaga opened this issue May 14, 2019 · 0 comments
Open

issues while running in a multi interface environment #15

kovaga opened this issue May 14, 2019 · 0 comments

Comments

@kovaga
Copy link

kovaga commented May 14, 2019

UPDATE: Fixed it. My bad, didnt pay enough attention to little things
I was having problem discovering the devices rnning mosquito on a multi interface server ad solved it by modifying the code and setting the fixed IP addresses of the thermostats as per

++++++
To do so, I changed line 213:

devices = broadlink.discover(timeout=conf.get('lookup_timeout', 5))
To something like:

hysen = 0x4EAD
d1 = broadlink.gendevice(hysen, ('192.168.1.61', 80), bytearray(b'>\xenn\xebw\x0fx'))
d2 = broadlink.gendevice(hysen, ('192.168.1.62', 80), bytearray(b'\x18\vebw\x0fx'))
d3 = broadlink.gendevice(hysen, ('192.168.1.63', 80), bytearray(b'\xb5\xef\xeb\x0fx'))
d4 = broadlink.gendevice(hysen, ('192.168.1.64', 80), bytearray(b'\x93@4\xea4'))
devices = [d1, d2, d3, d4]
++++++

However, in such setup I am only able to receive updates over the MQTT. When I try to publish using mosquito_pub the changes are not applied to the device. On a contrary, when I run the same command in a single interface environment all works fine.

Any ideas on how to solve that?

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

1 participant