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

Add support for managing dehumidifier via LAN #30

Open
flyboy013 opened this issue Jun 12, 2021 · 1 comment
Open

Add support for managing dehumidifier via LAN #30

flyboy013 opened this issue Jun 12, 2021 · 1 comment

Comments

@flyboy013
Copy link

It would be nice to be able to manage the dehumidifier directly instead of via the cloud. The device has port 6444 open and this can used to control the device. There is a Home Assistant integration for Midea air conditioner units that has this local management support. It is at https://github.com/mac-zhou/midea-ac-py

Since I don't have a Midea AC I am not familiar with the quality of the other integration, but perhaps the two integrations can be merged to provide support for both types of systems.

@35gh
Copy link

35gh commented Sep 10, 2021

The integration mentioned above uses the msmart library which can detect my dehumidifier in my LAN:

pip3 install msmart
midea-discover

INFO:msmart.cli:msmart version: 0.1.35 Currently only supports ac devices.
INFO:msmart.cli:Sending Device Scan Broadcast...
INFO:msmart.lan:Got TCP key for 192.168.1.1:12947 -> 192.168.1.244:6444 retries: 0 time: 0.48 xxxxxxx INFO:msmart.cli:*** Found a device: {'type': 'a1', 'support': False, 'version': 3, 'ip': '192.168.1.100', 'id': iiiiiiiiiiiiii, 'port': 6444, 'token': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'key': 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy', 'ssid': 'net_a1_F58D'}'

This library currently supports only AC but I guess it should not be too difficult to adapt it for dehumidifiers.
It would definitely be a nicer integration than relying on the NetHome cloud.

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