When i go to developertools i can set the state and it change correct.
Weird, did the exact same thing, using developer tools and I get the same error you did when using the card.
So much has happened. You’ll need to update your Landroid Cloud integration, and if you’re using the card, update that too.
@Barmalej - thanks, I updated the integration but how do I upgrade the card? Seems it did not update when I did the integration upgrade.
ex: here is my code:
image: default
image_size: '4'
show_animation: true
show_status: true
show_toolbar: true
compact_view: false
show_name: true
type: custom:landroid-card
entity: lawn_mower.chip
Here is what the card looks like (nothing):
However, lawn_mower.chip is alive and well:
Disregard.
I resolved the above by re-adding the custom git repo in HACS for landroid-card.
I updated all - the Integration an the repository of the card. New installed it. But the same issue.
@maijo366 - Making sure you did this:
In HACS
- click on Integrations
- Click 3 dots on top right
- Select ‘custom repositories’
- DELETE the landroid-card repo
After the above, re-add the repo. I did have to delete it first.
I’m trying to setup notifications so that when my landroid starts, errors or returns to dock I get a notification. I see there is a notification button in the card but that button doesn’t seem to do anything. Does anyone know how I’m supposed to configure it or has anyone setup notifications for themself?
automation:
- id: mower_notify_status
alias: Mower status notification
initial_state: false
trigger:
- platform: state
entity_id: lawn_mower.mower
condition:
- condition: template
value_template: "{{ trigger.to_state.state != trigger.from_state.state }}"
action:
# - service: notify.telegram_XXXX
# data:
# title: 🏎️ Lanroid M500
# message: "*{{ trigger.to_state.state }}* <- {{ trigger.from_state.state }}"
- service: persistent_notification.create
data:
title: 🏎️ Lanroid M500
message: "*{{ trigger.to_state.state }}* <- {{ trigger.from_state.state }}"
- id: mower_notify_error
alias: Mower error notification
initial_state: true
trigger:
- platform: template
value_template: "{{ states('sensor.mower_error') }}"
condition:
- condition: template
value_template: "{{ trigger.to_state.state != trigger.from_state.state }}"
action:
# - service: notify.telegram_XXXX
# data:
# title: 🏎️ Lanroid M500
# message: >-
# *{{ trigger.to_state.state }}: {{ states('sensor.mower_error') }}*
<- {{ trigger.from_state.state }}: {{ states('sensor.mower_error') }}
- service: persistent_notification.create
data:
title: 🏎️ Lanroid M500
message: >-
*{{ trigger.to_state.state }}: {{ states('sensor.mower_error') }}*
<- {{ trigger.from_state.state }}: {{ states('sensor.mower_error') }}
Thank you for the reply. I think I have been able to get an automation working. I tried setting the button color for the notification button on the card, but it seems to just stay gray whether the automation is enabled or not. Do you know if there is a way to make it more evident that the notification icon is active, so I don’t accidentally turn them off and not realize it?
And thanks for working on this, the card is fantastic, exactly what I needed with my mower.
Unfortunately, you cannot change the color of the button.
The notification button opens Conditional card with automations.
in config:
input_boolean:
mower_views_switch:
name: Mower - Views switch
initial: false
icon: mdi:dip-switch
automation:
- id: mower_notify_status
alias: Mower status notification
initial_state: false
trigger:
- platform: state
entity_id: lawn_mower.mower
condition:
- condition: template
value_template: "{{ trigger.to_state.state != trigger.from_state.state }}"
action:
# - service: notify.telegram_XXXX
# data:
# title: 🏎️ Lanroid M500
# message: "*{{ trigger.to_state.state }}* <- {{ trigger.from_state.state }}"
- service: persistent_notification.create
data:
title: 🏎️ Lanroid M500
message: "*{{ trigger.to_state.state }}* <- {{ trigger.from_state.state }}"
- id: mower_notify_error
alias: Mower error notification
initial_state: true
trigger:
- platform: template
value_template: "{{ states('sensor.mower_error') }}"
condition:
- condition: template
value_template: "{{ trigger.to_state.state != trigger.from_state.state }}"
action:
# - service: notify.telegram_XXXX
# data:
# title: 🏎️ Lanroid M500
# message: >-
# *{{ trigger.to_state.state }}: {{ states('sensor.mower_error') }}*
<- {{ trigger.from_state.state }}: {{ states('sensor.mower_error') }}
- service: persistent_notification.create
data:
title: 🏎️ Lanroid M500
message: >-
*{{ trigger.to_state.state }}: {{ states('sensor.mower_error') }}*
<- {{ trigger.from_state.state }}: {{ states('sensor.mower_error') }}
In dashboard:
type: vertical-stack
cards:
- image: default
image_size: '4'
show_animation: true
show_status: true
show_toolbar: true
type: custom:landroid-card
entity: lawn_mower.mower
shortcuts:
- name: Notification
service: input_boolean.toggle
icon: mdi:bell
service_data:
entity_id: input_boolean.mower_views_switch
stats:
default:
- entity_id: sensor.mower_blades_total_on_time
subtitle: Total blade time
value_template: '{{ as_timedelta((value | float(0) * 3600) | string) }}'
- entity_id: sensor.mower_blades_current_on_time
subtitle: Current blade time
value_template: '{{ as_timedelta((value | float(0) * 3600) | string) }}'
- entity_id: sensor.mower_total_worktime
subtitle: Work time
value_template: '{{ as_timedelta((value | float(0) * 3600) | string ) }}'
- entity_id: sensor.mower_distance_driven
value_template: '{{ (value | float(0) / 1000) | round(3) }}'
unit: km
subtitle: Distance
mowing:
- entity_id: sensor.mower_yaw
subtitle: Yaw
unit: °
- entity_id: sensor.mower_roll
subtitle: Roll
unit: °
- entity_id: sensor.mower_pitch
subtitle: Pitch
unit: °
show_name: true
image_left: false
compact_view: false
- type: conditional
conditions:
- entity: input_boolean.mower_views_switch
state: 'on'
card:
type: entities
entities:
- entity: automation.mower_notify_error
- entity: automation.mower_notify_status
For me pressing the notification icon enables or disabled the automation i have, never seen this popup. I may just take that bit out because I don’t really want the automation to ever be disabled.
Hello @Barmalej
Great Work, I love this card!
Just a question (or a feature request :-)):
Is there any way to add a custom entity to the “Tools” section of the card? I have an input_boolean with which I can bypass the rain delay whenever my Landroid detected moisture, but it isn’t actually raining. It would be great to be able to control this input_boolean from within your card. The same way party mode is controlled for example.
Thx again!
hello, who managed to get it on the nspanel?
Good morning everyone, is it possible to insert the map with the various areas to be cut into the Lovelace Landroid-card?
I couldn’t find this info anywhere.
Has anyone had experience with this?
Thanks to anyone who will give me feedback
Instead of a static picture, you can use any camera feed. If you have your map set up as a camera entity, you can insert it into the Lovelace Landroid card.
Hey there.
I installed the card on my system today.
I am using an iPad wall mounted as control system. (With the iPad application)
I am getting an error.
Can someone tell me if I am able to fix this and if yes how?
Just found out myself.
I reseted the setting of application then cleared the cache.
After that I went back to my theme and it worked