Another Status:
PARKED_AUTOTIMER = Autotimer
This is a feature of the 420 (amongst others) which ends the current activated timer in case the grass did not grow enough (determined by the force necessary to cut the grass).
Another Status:
PARKED_AUTOTIMER = Autotimer
This is a feature of the 420 (amongst others) which ends the current activated timer in case the grass did not grow enough (determined by the force necessary to cut the grass).
Hi
Is it possible to get this to work if you run HA as a hassio?
I get this error:
Error during setup of component automower
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/setup.py”, line 145, in _async_setup_component
component.setup, hass, processed_config)
File “/usr/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/automower.py”, line 104, in setup
api.login(config.get(CONF_USERNAME), config.get(CONF_PASSWORD))
File “/config/deps/lib/python3.6/site-packages/pyhusmow/husmow.py”, line 137, in login
response.raise_for_status()
File “/usr/lib/python3.6/site-packages/requests/models.py”, line 935, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://iam-api.dss.husqvarnagroup.net/api/v3/token
Hi,
I am pretty new with Home Assistant.
I know how to add zones, but what I was not able to figure out is how to update the zone with the current location of the mower…
Br,
Johannes
Hi,
I have two questions regarding this project:
1st: How do I get the Mower Tracking Info into a Zone?
2nd: I have a wunderground weather-station. As I am living on a sealevel of 850 Meters I have in spring sometimes the issue, that it is freezing during the night for a couple of days. If the mower is mowing then, then the grass doenst look nice anymore.
So I want to get the temp from wunderground and send the mower to Park, when the temperature is below 4 Degree Celsius and Back to mowing if higher then 8 Degree Celsius.
How can I achieve this?
Br,
Johannes
Regarding my second issue I found a solution which is half-way working:
When my Weatherunderground-Station is below 4 Degree I am sending the Mower back to the Charging-Station. That works fine.
I created a second automation rule where I turn on the mower, if the degree is higher then 6 degree. Here I have an issue: The mower starts also if there is no time schedule on the mower. Can I take the Automower Schedule somehow as a Condition?
Best Regards,
Johannes
Don’t have a Automower, but you can use Conditions who match your schedule:
condition: or
conditions:
- condition: time
after: '06:30:00'
before: '10:00:00'
- condition: time
after: '18:30:00'
before: '22:00:00'
would work, but then I need to adopt the HA-Timer whenever I change the Timer on the mower.
More problematic: The Mower has an Weathertimer: He detects, that the mow is not growing fast and stops, although there is still a timer valid.
But would it be possible with the information I have on HomeAssistant?
If my mower is parked, I can see in the Attributes the next Start-Timer:
nextStartTimestamp
connected: true
operatingMode: AUTO
nextStartTimestamp: 2018-04-27T19:00:00
nextStartSource: WEEK_TIMER
supported_features: 223
battery_icon: mdi:battery
status: Parked due to timer
storedTimestamp: 2018-04-27T11:57:22.199000
icon: mdi:timetable
showAsDisconnected: false
friendly_name: Mähschweinchen
battery_level: 100
Would it be possible to extract this TimeStamp and use it as condition?
Best Regards,
Johannes
I was now able to extract the nextStartTimestamp from the attributes into a sensor template and I am getting now at least the following result:
sensor.automower_330_nextstart 2018-04-27 19:35:49 friendly_name: automower_330_nextstart
So the next question would be, how I can interpret the timestamp (date + time) and use it as a condition…
Br,
Johannes
Hi,
Thanks for the nice addon, I was looking for this
‘model’: ‘L’, Is a Husqvarna Automower 315x
Greetings,
Arjen
Just installed successfully, thank you!
Model G = 430X
What version of HA are you installing it in?
Did you use the custom_component?
I’ve tried a few versions of HA and had no luck.
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: entity_id=group.monitoring, old_state=<state group.monitoring=unknown; entity_id=('group.online_devices', 'group.security', 'group.power_consumption'), order=6, view=True, friendly_name=Monitoring, hidden=True, custom_ui_state_card=state-card-custom-ui @ 2018-05-08T08:47:50.320720+10:00>, new_state=<state group.monitoring=home; entity_id=('group.online_devices', 'group.security', 'group.power_consumption'), order=6, view=True, friendly_name=Monitoring, hidden=True, custom_ui_state_card=state-card-custom-ui @ 2018-05-08T08:47:53.177598+10:00>>
INFO:homeassistant.core:Bus:Handling <Event platform_discovered[L]: service=load_platform.device_tracker, platform=automower, discovered=>
INFO:homeassistant.setup:Setup of domain automower took 4.4 seconds.
INFO:homeassistant.core:Bus:Handling <Event component_loaded[L]: component=automower>
INFO:homeassistant.loader:Loaded vacuum from homeassistant.components.vacuum
ERROR:homeassistant.loader:Error loading custom_components.device_tracker.automower. Make sure all dependencies are installed
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/homeassistant/loader.py", line 142, in get_component
module = importlib.import_module(path)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/Volumes/Macintosh HD/Users/retroneo/.homeassistant/custom_components/device_tracker/automower.py", line 8, in <module>
from homeassistant.components.automower import DOMAIN as AUTOMOWER_DOMAIN
ModuleNotFoundError: No module named 'homeassistant.components.automower'
ERROR:homeassistant.loader:Unable to find component device_tracker.automower
ERROR:homeassistant.setup:Unable to prepare setup for platform device_tracker.automower: Platform not found.
INFO:homeassistant.core:Bus:Handling <Event system_log_event[L]: timestamp=1525733274.2429929, level=ERROR, message=Error loading custom_components.device_tracker.automower. Make sure all dependencies are installed, exception=Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/homeassistant/loader.py", line 142, in get_component
module = importlib.import_module(path)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/Volumes/Macintosh HD/Users/retroneo/.homeassistant/custom_components/device_tracker/automower.py", line 8, in <module>
from homeassistant.components.automower import DOMAIN as AUTOMOWER_DOMAIN
ModuleNotFoundError: No module named 'homeassistant.components.automower'
, source=custom_components/device_tracker/automower.py>
INFO:homeassistant.core:Bus:Handling <Event system_log_event[L]: timestamp=1525733274.276128, level=ERROR, message=Unable to find component device_tracker.automower, exception=, source=loader.py>
INFO:homeassistant.core:Bus:Handling <Event system_log_event[L]: timestamp=1525733274.281787, level=ERROR, message=Unable to prepare setup for platform device_tracker.automower: Platform not found., exception=, source=setup.py>
INFO:homeassistant.core:Bus:Handling <Event call_service[L]: domain=persistent_notification, service=create, service_data=title=Invalid config, message=The following components and platforms could not be set up:
- device_tracker.automower
Please check your config., notification_id=invalid_config, service_call_id=4506073072-5>
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: entity_id=persistent_notification.invalid_config, old_state=None, new_state=<state persistent_notification.invalid_config=notifying; title=Invalid config, message=The following components and platforms could not be set up:
- device_tracker.automower
Your component works fine. I have only the issue, that I cannot display the mowers on the map. How have you achieved that? If I reduce the radius of my HOME to 1 Meter, then I will see the mowers, but as soon as the mowers within my HOME Area, they are not shown anymore.
Br,
Johannes
Devices that are in the zone ‘Home’ will not appear on the map in the Home Assistant UI.
Hi, this I am aware, but if you check the post with screenshots of @jansh, then you will see the tracker of the mower within the home zone…
I guess the other Zones overwrite the Homezone. So add a Zone in the Homezone ant it should work.
Hi,
I added an additional zone, but how would I assign the “device-tracker” (automower) to it?
Br,
Johannes
Ok, I am one step ahead.
I created 2 additional zones for my two mowers. The problem is only that one mower (+ corresponding zone) is overlapping with the home zone. Depending if the mower is then assigned to the home zone or the mower zone I can see the mower on the map or not.
Any ideas how I could permanently assign the mower to the mower zone?
Br,
Johannes
Br,
Johannes
I think I found an workaround, not sure if this is a good idea:
I have my house with garden around it and a second garden several meters away from my house
Now I can see the mower correctly in their zones, but I wouldnt be able to use my “HOME” Zone for Tracking but instead I would use the zone of the mower which is located at the same place as my house.
Is my understanding correct?
Br,
Johannes
Hi Christian,
yes, it works with hassio. I set it up for myself a couple of days ago.
You can either, use the linked zipfile from above, or go to github of @jansh and grab the most recent version (minor changes compared to zipfile) from his homeassistant fork. (you need to switch the github view to the right branch (automower))
For the linked zipfile, this folderstructure based off of your config folder will work:
/config/custom_components/automower.py
/config/custom_components/device_tracker/automower.py
/config/custom_components/vacuum/automower.py
If you want to use the github version, you need to place them as seen there.
What Automower version do you have?