This is a custom component for Home Assistant that integrates Medole Dehumidifier devices via Modbus (serial or TCP). You need to connect a RS485 to Ethernet/Wi-Fi converter to the RS485 port of the Medole Dehumidifier.
- Control dehumidifier operation (on/off)
- Set target humidity
- Control fan speed
- Monitor temperature and humidity sensors
- Monitor device status and errors
- Copy the
custom_components/medole_dehumidifier
directory to your Home Assistantcustom_components
directory. - Restart Home Assistant.
- Add the integration through the Home Assistant UI (Configuration > Integrations > Add Integration).
The integration can be configured through the Home Assistant UI. You'll need to provide:
- Name for the device
- Connection type (Serial or TCP)
- For Serial: Port, Slave ID, and optionally baudrate, bytesize, parity, and stopbits
- For TCP: Host, Port, and Slave ID
This project includes a Makefile with various targets for development:
# Install development dependencies (in a virtual environment)
make install-dev
# Run linters
make lint
# Format code
make format
# Check formatting without making changes
make check
# Clean up cache files
make clean
This project is licensed under the MIT License - see the LICENSE file for details.