Hi everyone, I have written an implementation targeting the MAC-568IF-E Wi-Fi adaptor.
It does not require connectivity to the MELVIEW or MELCLOUD services, and instead uses the local ECHONET-lite feature available on the module. 100% Python3, no NodeJS middleware needed. Uses a simple UDP socket implementation (almost too basic really). A lot of stuff is missing at this stage, but the basics are there - set temp, set mode, turn it on and off…
It is a VERY early build, and pretty rough around the edges, but I am keen to develop it a bit further
Clone the repo and copy
/bin/mitsubishi.py into your
In ‘configuration.yaml’ add the following lines:
- platform: mitsubishi
- Make sure you enable the ECHONET Lite service in the official Mitsubishi AU/NZ Wifi App.
Help me - Home assistant is basically broken and didn’t install the component
In theory, Home Assistant should recognise the required dependancy and download the library. Well, that’s the idea anyway. However this is not happening for a lot of people (even me) and the various flavours of home assistant are wildly varied. So in the first instance try to let Home Assistant download the module automatically, but it that fails there are a couple of workarounds:
If the module fails to install - you can install the official hass.io add-on called ‘Custom Deps Deployment’ - this should allow you to install the library. Use the following yaml in the config for the add-on to install the library and start the addd on.
This method has been tested working on HassOS 2.3 (VM) and HassOS 1.12 (Raspberry Pi 1)
If the PyPI dependancy fails to automatically install you can cheat a little and clone the external directly into ‘custom_components’
- Download the ‘mitsubishi-echonet’ folder that is inside the git repo directly into the ‘custom_components’ folder.
- You now have the ‘mitsubishi-echo’ folder under 'custom components.
- Copy the ‘mitsubishi.py’ file into ‘custom_components/climate’. Modify the following lines of code so it looks like this:
# REQUIREMENTS = ["mitsubishi_echonet==0.1.7"]
SUPPORT_FLAGS = SUPPORT_TARGET_HUMIDITY_LOW | SUPPORT_TARGET_HUMIDITY_HIGH
# import mitsubishi_echonet as mit
import custom_components.mitsubishi_echonet as mit
If you are having no luck whatsoever with getting the dependancies right (and I cannot blame you because HASSIO is a mess in that regard) then this is your last option:
Clone the git again and you will see a file
/bin/mitsubishi_mini.py - drop that straight into
\config\custom_components\climate. No dependancies needed. Set up your config.yaml like this:
- platform: mitsubishi_mini
I am interested in feedback, because the other ECHONET-lite libraries were all NodeJS middleware running in docker containers that didn’t seem to work properly in hass.io.
Not really too keen to explore MELVIEW or MELCOULD integration at this stage.
The hope is that if I can iron out the bugs that I will request this be added in as an officially supported component.
I swear to the almighty this works!