jonkristian / alko Goto Github PK
View Code? Open in Web Editor NEWAL-KO Robolinho component for Home Assistant
AL-KO Robolinho component for Home Assistant
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:
Could you be so kind and advise how to get secret and token to make the integration running on HA?
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?
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....
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.