-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get Aircon to run as standalone server in Debian 10 or Ubuntu 20.x #91
Comments
After digging around a bit, I was able to make some progress.
FUJITSU WiFi Adapter: APP LOGS TCPDUMP LOGS 01:31:54.147510 IP (tos 0x0, ttl 64, id 58074, offset 0, flags [DF], proto TCP (6), length 125) |
Code now runs but with errors. re-opening as a different issue. |
Glad you managed to resolve this. The issue is with bash (or zsh) resolving arguments. Single quotes should prevent that:
|
Any ideas? Detail below.
System
Issue #1 - Discovery doesn't work.
Command:
python -m aircon discovery fglair-us user pass
Logs:
discovery.py:43] Failed to login to Hisense server:
Status 401: 'Unauthorized'
For testing purposes, I've installed Aircon in windows, copied & pasted the above and the command works. I got 6 config files corresponding to the number of units I have.
Issue #2
As per above, I got around the discovery issue in my debian/ubuntu install, and copied the config files over. But when I try to running the server, it craps out.
Command:
python -m aircon run --port 8888 --config office.json --mqtt_host 158.134.2.56 --mqtt_port 1884 --mqtt_user user:pass --mqtt_client_id mini-split --mqtt_topic fujitsu
Logs:
Apr 12 17:10:17 debian-dev-vm-1 python[27650]: E0412 17:10:17.430 notifier.py:117] [KeepAlive] Sending local_reg failed: 403 (repeats many times)
Apr 12 17:10:19 debian-dev-vm-1 python[27650]: E0412 17:10:19.291 base_events.py:1619] unhandled exception during asyncio.run() shutdown
task: <Task finished coro=<Notifier.start() done, defined at /home/devops/projects/fujitsu-mini-split/AirCon-master/aircon/notifier.py:78> exception=RuntimeError('Lock is not acquired.')>
Traceback (most recent call last):
File "/home/devops/environments/python/Python-3.7.9/Lib/asyncio/runners.py", line 43, in run
return loop.run_until_complete(main)
File "/home/devops/environments/python/Python-3.7.9/Lib/asyncio/base_events.py", line 574, in run_until_complete
self.run_forever()
File "/home/devops/environments/python/Python-3.7.9/Lib/asyncio/base_events.py", line 541, in run_forever
self._run_once()
File "/home/devops/environments/python/Python-3.7.9/Lib/asyncio/base_events.py", line 1750, in _run_once
event_list = self._selector.select(timeout)
File "/home/devops/environments/python/Python-3.7.9/Lib/selectors.py", line 468, in select
fd_event_list = self._selector.poll(timeout, max_ev)
KeyboardInterrupt
The text was updated successfully, but these errors were encountered: