I have uploaded a fix of the custom_component. This has still errors, and is a work-in-progress. But for now, you can at least get the state of the Indego mover in HA.
The Custom component had some breaking changes some versions ago, that is why this old CC didnt work.
I am working on developing a new Custom Component. This new component will give you the state of the mover, and also be able to control the mover (start, pause, return to dock).
If I am lucky (I am no programmer!) and have the time maybe I can implement alerts, map, schedule, reset blade hour counter and all other cool functions.
This is awesome, thanks! Just one question, should the location in āconfig/custom_componentsā not be āconfig/custom_components/bosch_indegoā
AS per the description on the install, you state that the files should be placed into the root of custom_components folder, but I think that these should be placed into a bosch_indego directory in the custom components directory?
Anyway, thanks for all your work on this, look forward to watching all the other functionality appear! Let me know if you need help testingā¦
I know that the files uploaded may not work. Sorry for that!
Update since last post:
I have learned a lot about Python and development.
I have written an python API for all the data pulling from the Indego cloud service. I can get status, percentage lawn mowed, name of mower, serial number, mower modeā¦
I am in the process of creating a python package at pypi.org for the python api files. This is a neccesary step in following the code writing guidelines from the HA community.
Left to do:
Re-write the custom component to use the pypi package.
Update the Github repository with an updated component
Today I have uploaded the first version of the pypi package: https://pypi.org/project/pyIndego
It is possible to install in an python environment via the command:
pip install pyIndego
Next step:
Rewrite the component on github to use this API package.
Document how to use the API package and the rewritten component
Update: I have tested the python API package in Home Assistant and it loads fine.
Next step:
Rewrite the sensor code for the component to use the API package.
Document how to use the component.
Kind regards Jens
ADDITION: The forum prevents posting more than 3 posts in a row from the same author. So I cannot post more update posts. If you are interested in my work, please see the Github and pypi.org links above. Or post in this thread!
Hey @jm_73 IN terms of installing the custom component, can you confim the location/directory name for the files? I am placing these in \custom_components\indego\ but just watned to check with you as to naming convention etc. Thanks
Regarding the Github repo, there are a non-working component there for now. I have one more thing to solve before posting new code to an working component. Hopefully I have the time this weekend to solve the remaining issue.
The positive side is that the pip package pyIndego seems to be solid with the basics at least. The remaining thing to solve is how to get the updates of the state of the mower into the sensor. I can get the state in python and in the log, but I have to code it right in the Home Asistant framework.
Kind regards Jens
Update 2019-07-24: Hassio version 0.96 broke my Custom Component. I have some more work in front of me now! Sorry for thatā¦
New version on Github. Working sensor for the Indego Mower. It is just the mower state at the moment.
Really ugly code (please dont look), will probably break in updates. But at least something to play with when I learn HA development.
Please feel free to post issues and if it is working for you!
@jm_73 Thanks for the update - when I look in the code the only file, that is changed, is sensor.py. As Iāve had the sensor working until now with your code, can you tell more about whatās new?
Sorry, I cannot remember how often the āoldā version updated. I have really been struggling to get the development going, so I have changed a lot in the code I am writing.
The ānewā platform code is updating every 30/60 seconds I think. Havenāt clocked it, but is definitely more often than 5 minutes.
Regards Jens
Update: That is correct, the old code had a throttle of 5 mins. It is configurable in the component code, but not i the config.
Not at the moment. As i know, it is not possible when the component is implemented as a platform.
I am working on an implementation that builds on the domain-type of custom component. As far as I understand, the domain can have different type of sensors and also services exposed to HA. Then I will be able to implement sending commands to the mower.