gysmo38 / mitsubishi2MQTT

Mitsubishi to MQTT with ESP8266 module
GNU Lesser General Public License v2.1
413 stars 141 forks source link

openHAB MQTT Channel Autodiscovery not working cause name=null #245

Open BOFH90 opened 12 months ago

BOFH90 commented 12 months ago

After flashing and connecting to WiFi and setting up the MQTT-connection, openHAB discovered the device, but showed no available channels. After looking through the openhab.log, I discovered that the HA-config could not be adopted, cause the "name" in the config-topic was "null". So I edited the config and changed the name from nullptr to something else, the channels were successfully created.

That's the part, that needs to be adjusted.: haConfig["name"] = nullptr;

Also the swing-modes are not detected by openHAB. I have to find a solution to this problem as well.

willyfromtheblock commented 9 months ago

https://www.openhab.org/addons/bindings/mqtt.homeassistant/

The HomeAssistant Climate Components is not yet supported.

Are you certain this will work even if this field are set correctly?

BOFH90 commented 9 months ago

Yes, I do. I edited the haConfig to something random for my devices and the OH Autodiscovery worked after that.