walthowd / ha-automower Goto Github PK
View Code? Open in Web Editor NEWAutomower Custom Component for Home Assistant
Automower Custom Component for Home Assistant
For the MODELS mapping,
Model 'K' = Automower 310
Hello!
Component seems to work, however I receive many (> 2800 times) errors in the log-file like these:
I use HomeAssistant 0.108.6
Protokolldetails ( ERROR )
Logger: homeassistant.helpers.entity
Source: custom_components/automower/__init__.py:290
First occurred: 20. April 2020, 16:41:42 (2885 occurrences)
Last logged: 9:29:42
Update for vacuum.edelsgrub fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 476, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/automower/__init__.py", line 290, in update
self._state = self._api.status()
File "/usr/local/lib/python3.7/site-packages/pyhusmow/husmow.py", line 182, in status
response.raise_for_status()
File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 941, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://amc-api.dss.husqvarnagroup.net/v1/mowers/181003060-171934209/status
Can you please look into this and let me know if I can provide additional information / do testing, etc!
Thank you very much!
Albert
Is there a way to update the icon used via the config? I'd really like to use mdi:robot-mower-outline as it's more appropriate.
Firstly, thanks for creating this custom component. I recently bought an automower and it was great to be able integrate it within home assistant using this component.
I'd like to request the addition of "Park until next schedule". Currently when I invoke the return_to_base
service, the mower is parked manually which means I have to manually turn it on the following day. I would like to request an additional service that will park the mower but will it will start on next schedule.
From this morning the card shows that the mower is still charging. Unfortunately, the plug-in has stopped showing real data.
For the last couple of days been getting this error regularly. Only two of three mowers are appearing now too.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 449, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 444, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/lib/python3.10/http/client.py", line 1374, in getresponse
response.begin()
File "/usr/local/lib/python3.10/http/client.py", line 318, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.10/http/client.py", line 287, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
The state of mower shows eg as "docked" despite the activity is "cutting".
I must create a template sensor for this?
HA 2022.3.7
Integation no longer works.
From the log:
Felet härrör från en anpassad integration.
Logger: homeassistant.setup
Source: custom_components/automower/init.py:217
Integration: automower (documentation)
First occurred: 10:10:40 (1 occurrences)
Last logged: 10:10:40
Error during setup of component automower
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 235, in _async_setup_component
result = await task
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/automower/init.py", line 217, in setup
robots = api.list_robots()
File "/usr/local/lib/python3.9/site-packages/pyhusmow/husmow.py", line 162, in list_robots
response.raise_for_status()
File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://amc-api.dss.husqvarnagroup.net/v1/mowers
Bonjour,
I tried to set it into HA, but without success.
I installed it through Home Assistant Community Store.
Then I added the relevant infos in my configuration.yaml and secrets.yaml files.
I have also added the camera with my google API.
It did not create a vacuum entity nor a device_tracker entity...
I get the following warning/notification message instead :
Invalid config
The following integrations and platforms could not be set up:
automower
Please check your config.
Any idea on how to fix it ? Thank you :)
Installed via HACS and configured my automower. When restarting HA,the following error message appears in the log:
2020-06-10 16:18:39 WARNING (MainThread) [homeassistant.components.vacuum] VacuumDevice is deprecated, modify AutomowerDevice to extend VacuumEntity
Hello,
thanks for the ressources, it really work well.
do you think it possible to have the cutting height option ? (model 430x)
The link for the google maps card is no longer available
https://www.home-assistant.io/cookbook/google_maps_card/
if anyway would have a tutorial or something that would be great.
2019-07-23 23:56:05 ERROR (MainThread) [homeassistant.setup] Error during setup of component ha-automower
Traceback (most recent call last):
File "/usr/src/app/homeassistant/setup.py", line 156, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/ha-automower/init.py", line 117, in setup
api.login(config.get(CONF_USERNAME), config.get(CONF_PASSWORD))
AttributeError: 'NoneType' object has no attribute 'get'
Hi,
I saw this message in the core logfile.
"No 'version' key in the manifest file for custom integration 'automower'. This will not be allowed in a future version of Home Assistant. Please report this to the maintainer of 'automower'"
I hope this is an easy fix.
Kind regards,
Peter
I've started getting the following message upon startup of home assistant:
2022-01-22 00:24:33 WARNING (MainThread) [homeassistant.helpers.entity] Entity vacuum.jabba (<class 'custom_components.automower.AutomowerDevice'>) implements device_state_attributes. Please report it to the custom component author.
Not sure what it means but I hope reporting it is the right thing to do! ;-)
I'm running core-2021.12.10
Installed using Hacs. Mower shows up OK as vacuum entity but no device tracker is created. I have an Automower 430x and is using HA 0.97.2. Any suggestions?
It would be great if the automower custom component would support localization e.g. German
I translated all status and error codes in the init.py, but this obviously doesn't make sense e.g. in combination with HACS where everything will be overwritten with the next update.
I tried to understand the principle of strings.json and translation folder for the status and error descriptions, but my python knowledge is very limited...
Best,
Tobias
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.