Skip to content
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

ConnectionTimeoutError #299

Open
bblaszkiewicz opened this issue Nov 26, 2024 · 0 comments
Open

ConnectionTimeoutError #299

bblaszkiewicz opened this issue Nov 26, 2024 · 0 comments

Comments

@bblaszkiewicz
Copy link

Hi!
I had the AirCon server installed on my Raspberry Pi and everything worked beautifully with the Hisense AC. Recently I had to reinstall the system and the problems started. I transferred all the files but I can't start the server.

python3.11 -m aircon run --port 8888 --config config.json --mqtt_host localhost
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/pi/Desktop/AirCon/aircon/__main__.py", line 303, in <module>
    asyncio.run(run(parsed_args))
  File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/pi/Desktop/AirCon/aircon/__main__.py", line 173, in run
    device = Device.create(config, notifier.notify)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/Desktop/AirCon/aircon/aircon.py", line 68, in create
    model = config['model']
            ~~~~~~^^^^^^^^^
KeyError: 'model' 

So I tried to set everything up again. The problem now pops up when I try to use the discovery function:

pi@raspberrypi:~/Desktop/AirCon $ python3.11 -m aircon discovery hisense-eu [email protected] blablabla
Error occurred:
ConnectionTimeoutError('Connection timeout to host https://user-field-eu.aylanetworks.com/users/sign_in.json')

The air conditioner is connected to the network all the time and the Hismart Life app connects to it without any problems. Where to look for the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant