#gardena mower card - anyone got it running?

1 messages · Page 1 of 1 (latest)

safe storm
#

Hi all,
does anyone got the Gardena-mower-card running?
https://github.com/Cavemanz/lovelace-gardena-mower-card
I download it, added it to resources, restartet HA, reloaded the browser - but it's always : "Custom element doesn't exist: gardena-mower-card."

What's the problem? To avoid unnecessary search of failures: Can anybody confirm, that this card is running on any system?
Thanks!

GitHub

Simple card for Gardena Robotmower in Home Assistant's Lovelace UI - Cavemanz/lovelace-gardena-mower-card

wheat shell
#

That card hasn't been updated in 5 years. Generally, cards that old tend to not work any more.
Looking at the forks, the lovelace-parkside-mower-card might be an option. It at least has had some changes in the past six months. Most of the changes appear to be in the name and some stuff for HACS, but there looks like there was a change in how the card is rendered.
Full disclosure: I don't know what most of the code means but the word Polymer stands out and I think that was a big change that happened years ago.

safe storm
#

Good idea to look at the forks! I will try the lovelace-parkside-mower-card, if it fits for the Gardena as well…

wheat shell
#

So... on a whim, I tried it and it didn't work for me... But, if you like that card, it would be relatively easy to replicate with the custom:button-card. The mower card looks like a couple of label fields and some extra buttons. I'll try to put something together when I get home from work.

safe storm
#

Great idea to use the custom Button card! I‘ll give it a try… thanks for the hint!

wheat shell
#

This is what I've been able to throw together to get started. I used the actual attributes that were defined in the card which, obviously, doesn't work for me since I don't have the mower which is why the screenshot shows undefined. I think I was able to get most of it looking about the same. It doesn't handle hiding the title or buttons (but that wouldn't take much to integrate if needed.) The buttons don't function; they will need tap_actions defined. Looking at the card's code, I found: ```yaml
startMower() { this.callService(this.vendor === 'ecovacs' ? 'turn_on' : 'start'); }
stopMower() { this.callService(this.vendor === 'ecovacs' ? 'turn_off' : 'stop'); }
returnMower() { this.callService('return_to_base'); }

#

Be sure to either view the whole file or the message.txt to get all of the code. (Expanding only shows the first 100 lines.) I applied a little bit of background opacity to the labels because they were a little hard to read over top of the mower.

safe storm
#

Oh, that's brilliant and a lot more than I was able to achieve! Many many thanks! It worked nearly complete out of the box after changing the entities...

Great help!

safe storm
#

@wheat shell One more question from me: I have one entity (sensor) which is not part of the entity.

Exmaple:
running_time: "[[[ return Running time: ${entity.attributes.running_time}]]]"
works fine, if the running-time ist within the entitiy-attributes

How do I have to modify the line if the running-time is outside of the entity-attributes e.g. sensor.mower_running_time?

Thanks a best regards