Skip to content

ConnectionTimeoutError #299

@bblaszkiewicz

Description

@bblaszkiewicz

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 blablabla@gmail.com 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions