deiger / AirCon

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

Entity AC Hisense AEH-W4E1 is unavailable #166

Open mmitocariu opened 2 years ago

mmitocariu commented 2 years ago

Hello. I have a problem integrating the Hisense AEH-W4E1 air conditioner. I installed and configured the Mosquitto Broker and HiSense Air Conditioners add-ons. Air conditioning can be controlled via HTTP commands (example: "http://192.168.1.128:8888/hisense/command?property=t_power&value=ON"), but the status of the entity is "Unavailable". Where did I go wrong?

Configuration.yaml climate:

Midea air

HiSense

Mosquitto_Broker Hisense_add_on Hisense_1 Hisense_2 Hisense_3 config_achisense.json.txt

manuele84 commented 2 years ago

Hello

I have your same module and your same configuration, it is also not available to me. Have you found a solution?

addons gives me the following errors:

Traceback (most recent call last): File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/app/aircon/main.py", line 304, in asyncio.run(run(parsed_args)) File "/usr/local/lib/python3.7/asyncio/runners.py", line 43, in run return loop.run_until_complete(main) File "/usr/local/lib/python3.7/asyncio/base_events.py", line 587, in run_until_complete return future.result() File "/app/aircon/main.py", line 253, in run query_status_worker(devices), notifier.start(session)) File "/app/aircon/main.py", line 153, in setup_and_run_http_server await site.start() File "/usr/local/lib/python3.7/site-packages/aiohttp-3.7.4-py3.7-linux-aarch64.egg/aiohttp/web_runner.py", line 128, in start reuse_port=self._reuse_port, File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1389, in create_server % (sa, err.strerror.lower())) from None OSError: [Errno 98] error while attempting to bind on address ('::', 1883, 0, 0): address already in use

Giorgio-Zarantonello commented 2 years ago

same here

image
manuele84 commented 2 years ago

if it helps, I set port 8888 and now everything works.

by mistake I entered the broker's port 1883.

Giorgio-Zarantonello commented 2 years ago

i have also 8888 , setted separated user and password can't see the issue would you help me ? i'm italian too

manuele84 commented 2 years ago

ho anche 8888, utente e password separati impostati non riesco a vedere il problema mi aiutereste? anche io sono italiano

Ci provo... Fammi vedere la configurazione dell'addon Hisense..

Il broker Mqtt ti funziona regolarmente?

szmidtpiotr commented 2 years ago

I can confirm, port 8888 solve the problem

togume commented 1 year ago

+1 on 8888 to solve the problem. Documentation is unclear on what the port should be/purpose of it :). Happy to make changes to README if someone can help me understand what that port is for.