Thank you for this amazing work!!
I’ve also been able to use the last notification sensor to derive a few other states from the Navimow app notifications too.
A few other states that maybe useful to include:
‘Returning’ state - “Lawn mower back to charging station” or “Scheduled mowing is completed”
‘Delayed’ state - “Scheduled mowing delayed”
‘Schedule cancelled’ state - “Unable to start schedule mowing”
‘Stuck’ state - “Mower stuck out of boundary (error code: 6109)” or “Mower is unable to move (error code: 6108)” or “Unable to start one-time mowing”
‘Stalled’ state - "Mowing motor stall protection (error code: 1105) or “Wheel motor stall protection (error code: 3101)”
‘Can’t dock’ state - “Mower docking error (error code: 6113)”
‘Come get me’ state - “Mower now stays inside an isolated zone”
I’ve built an automatic mower gate (that my dog also loves to use
)… so found the delayed and returning states super useful to open/close the gate at the right times - also for influencing fast/slow polling for Google updates too.
Edit:
Spent the morning figuring this out. so here is the additional code for anyone else
Create another automation that maps and sends status to same event type:
alias: "Navimow: App notification parser"
description: ""
triggers:
- trigger: state
entity_id:
- sensor.phone_alex_last_notification # Your entity here
to: null
from: null
conditions: []
actions:
- variables:
title: "{{ state_attr('sensor.phone_alex_last_notification', 'android.title') }}"
status: |-
{% set mapping = {
"Lawn mower back to charging station": "is returning",
"Scheduled mowing is completed": "is returning",
"Scheduled mowing delayed": "is delayed",
"Scheduled mowing suspended due to rain": "is delayed",
"Unable to start schedule mowing": "is cancelled",
"Mower stuck out of boundary (error code: 6109)": "is stuck",
"Mower is unable to move (error code: 6108)": "is stuck",
"Unable to start one-time mowing": "is stuck",
"Mowing motor stall protection (error code: 1105)": "is stalled",
"Wheel motor stall protection (error code: 3101)": "is stalled",
"Mower docking error (error code: 6113)": "is not docked",
"Mower now stays inside an isolated zone": "is waiting"
} %} {{ mapping[title] if title in mapping else 'unknown' }}
- event: set_navimow_i108_state
event_data:
status: "{{ status }}"
mode: single
Adjust template sensor for new mappings and for battery sensor to conditionally handle the missing update
- trigger:
platform: event
event_type: set_navimow_i108_state
sensor:
- name: "Navimow i108: Battery level"
unique_id: "navimow_i108_battery_level"
device_class: battery
state_class: measurement
unit_of_measurement: "%"
state: "{{ trigger.event.data.battery_level | default(states('sensor.navimow_i108_battery_level')) }}"
- name: "Navimow i108: Status"
unique_id: "navimow_i108_status"
icon: "mdi:robot-mower"
state: |
{{
{
"is running": "Running",
"isn't docked": "Running",
"is paused": "Paused",
"is docked": "Docked",
"isn't running": "Docked",
"is returning": "Returning",
"is delayed": "Delayed",
"is cancelled": "Schedule Cancelled",
"is stuck": "Stuck",
"is stalled": "Stalled",
"is not docked": "Not docked",
"is waiting": "Waiting in isolated zone"
}[trigger.event.data.status] | default('unknown')
}}
Now the additional status can be used to support automations:
)

