Giter VIP home page Giter VIP logo

alko's People

Contributors

jonkristian avatar monitdk avatar sopparus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

monitdk sopparus

alko's Issues

Finding secret and tokens (Android only | Requires adb) - script error

Hello,

I am trying to go through the below procedure described in the documentation:

Manual or via HACS

If you're using HACS you can add this repo as a custom repository and install, otherwise download or clone and copy the folder custom_components/alko into your custom_components/. Be sure to restart.
Finding secret and tokens (Android only | Requires adb)

The AL-KO API is unfortunately not open for 3rd party applications. In order for this component to work you will have to have set up the AL-KO inTOUCH app and a working adb connection to your phone. To extract your secret and tokens I've created a very simple and crude script that will output these in the terminal.

Download [intouch-credentials.sh](https://raw.githubusercontent.com/jonkristian/alko/master/tools/intouch-credentials.sh) (located in tools folder).
Then chmod +x intouch-credentials.sh and ./intouch-credentials.sh to run.
Now unlock your phone and click confirm the backup operation (do not encrypt).
This should print your client_secret, access_token and refresh_token the latter two is required during the integration setup step.
Add the following to your configuration.yaml.

alko:
client_id: inTouchApp
client_secret: your_client_secret

After a restart you should now be able to add the integration via the integrations page, remember that tokens are short-lived 30 minutes.

Unfortunately while trying to run the script I am getting error message that such file or directory does not exist:

obraz

Could you be so kind and advise how to get secret and token to make the integration running on HA?

Issue with configuring: timeout() got an unexpected keyword argument 'loop'

I have a problem with configuring Alko integration in Home Assistant.

I have added client_secret to configuration.yaml. When I'm adding the integration and put all the necessary keys, I get an error: Retrying setup: timeout() got an unexpected keyword argument 'loop'

Complete log:

Logger: custom_components.alko
Source: custom_components/alko/__init__.py:98
Integration: AL-KO ([documentation](https://github.com/jonkristian/alko))
First occurred: 7:37:31 PM (49 occurrences)
Last logged: 8:28:03 PM

Unexpected error fetching alko_coordinator data: timeout() got an unexpected keyword argument 'loop'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 239, in _async_refresh
    self.data = await self._async_update_data()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 195, in _async_update_data
    return await self.update_method()
  File "/config/custom_components/alko/__init__.py", line 98, in async_update_data
    await alko.get_devices()
  File "/usr/local/lib/python3.10/site-packages/pyalko/__init__.py", line 39, in get_devices
    response: ClientResponse = await self._client.get(
  File "/usr/local/lib/python3.10/site-packages/pyalko/client.py", line 25, in get
    return await self.request("GET", url, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/pyalko/client.py", line 45, in request
    async with async_timeout.timeout(20, loop=get_event_loop()):
TypeError: timeout() got an unexpected keyword argument 'loop'

What may be causing that issue?

inTouch app dead ?

Are inTouch servers have some issues ?
Since more then one week my Robolinho is not visible in app. I made a reset inTouch from Robolinho menu , conected once again to wifi , removed from inTouch ap , and it can't connect any more.
I can see , that Robolinho is connecting to Wifi every 2 min. ( and pobably is not able to o something in server , and it do reset after 2 min). Internet is availble from this network , but not works.
I send a mail to Al-Ko support last friday , but till now they answer was a question :" From where am I ? " and no further responce....

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.