deiger / AirCon

Scripts for controlling Air Conditioners, e.g. with HiSense modules.
GNU General Public License v3.0
212 stars 58 forks source link

Missing required option 'mqtt_user' in HiSense Air Conditioners #112

Open blademckain opened 3 years ago

blademckain commented 3 years ago

Hi, all I installed the addon through hassio, following this guide: In the HomeAssistant UI, enter Supervisor → Add-on Store. Click ⋮ menu → Repositories. Add https://github.com/deiger/AirCon to the list. Choose HiSense Air Conditioner and install it.

I modified the configuration file as I attach in this photo, but on saving I get the indicated error aircon_error

kisjeth commented 2 years ago

Use the format visible in documentation

crispy78 commented 2 years ago

I'm adding to this issue because I have the same issue. My config is:

log_level: INFO
mqtt_host: 10.25.10.9
mqtt_user: null
mqtt_pass: null
port: 1883
app:
  - username: f***************@**********.***
    password: *******************************
    code: fglair-eu

I have removed mqtt_user and mqtt_pass because my MQTT-server doesn't require credentials, they'll be added with "null" whenever I save the config. I'm using FGLair and I've entered my credentials. When I start the addon it'll display: "Missing required option 'mqtt_user' in HiSense Air Conditioners". I'm running Home Assistant Core 2022.5.4, Home Assistant Supervisor 2022.05.1, Home Assistant OS 7.6, HiSense Air Conditioners version: 0.3.10

UPDATE #1: I've added a username and password to the config (homeassistant) hoping my MQTT-server would allow a login attempt even though no credentials are needed, the addon has started and has found one device. Now I have to overcome the E0515 12:49:20.297 notifier.py:117] [KeepAlive] Sending local_reg failed: 403

UPDATE #2: I've changed the AC-unit to another WiFi (same ip-range I use for HA), assigned a fixed IP and removed the .json file in the config/hisense folder, so it had to reinitiate the unit again. Eventually I got it to work. Installation isn't as easy as the manual sort of implies.

Alby247 commented 2 years ago

This may or may not be relevant to your install but I can't get my a/c unit to connect to HA if I specify port 1883 (which is my Mosquitto mqqt broker port). It connects if I use a different port eg 1886.

That port in the hisense config is specifying a web server port of some kind not the mqqt broker port as set in HA. No idea what the web server does.

It would be great if the documentation was improved, I wasted hours on this. A single line in the docs that said "This port is a web server port used for [whatever reason] not the mqqt broker port" would save a lot of grief.

kisjeth commented 2 years ago

This may or may not be relevant to your install but I can't get my a/c unit to connect to HA if I specify port 1883 (which is my Mosquitto mqqt broker port). It connects if I use a different port eg 1886.

That port in the hisense config is specifying a web server port of some kind not the mqqt broker port as set in HA. No idea what the web server does.

It would be great if the documentation was improved, I wasted hours on this. A single line in the docs that said "This port is a web server port used for [whatever reason] not the mqqt broker port" would save a lot of grief.

I don't know why, but my only working config is with port 8888