Painlessly talk to Midea/Nethome Plus devices, how?

Hi all,

I have a Comfee dehumifier which is supported by the Nethome Plus Midea protocol. There is a lib/toolset to talk to these devices in python (GitHub - nbogojevic/midea-beautiful-air: Python client for accessing Midea air conditioners and dehumidifiers (Midea, Comfee, Inventor EVO) via local network) which looks quite complete and nice. There’s also an HomeAssistant integration from the same author (GitHub - nbogojevic/homeassistant-midea-air-appliances-lan: This Home Assistant custom component adding support for controlling Midea air conditioners and dehumidifiers on local network.) which is probably easy and straight forward because python…

I obviously run openHAB and don’t want a parallel HomeAssistant install just because of this device.
Since I’m not good enough either in python nor java to do this in a time efficient manner, what are solutions to integrate this in openHAB without re- writing the python to java for a full binding? Ideas anyone?

best regards
-Jens

  1. Use the Python client to build a stand alone Python service that interacts with OH through it’s REST API or some other means (e.g. MQTT). This is the “x2mqtt” approach.

  2. Call the Python client from OH using the Exec binding or executeCommandLine.

Thanks a lot, that sounds doable. I will try to go with option 2, CLI fits my skill- level more :slight_smile:

Hi Jens
I also got a confee dehumidifer and was wondering if you managed to get it to work with OH.
My coding skills are somewhat limited, and was wondering if maybe you could share your setup I could deduct how to setup my device.

Much appreciated

Nuno

I’m also watching on this one. I’ve seen the same reference than @n8wish . If you need help I can try to jump in but I’ll need a bit of help on the start since I’ve never written custom binding for OH