Hi,
I’ve been using this for over a year, and it seems to work correctly, but my logs are being filled with the following errors:
2022-12-09 12:13:39.486 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'None' has no attribute 'notReady' when rendering '{% set mapper = {
0 : 'n-a',
2 : 'Uneven Ground',
15 : 'Low Battery',
39 : 'Pending',
48 : 'Path Blocked' } %}
{% set state = state_attr('sensor.rest980', 'cleanMissionStatus')['notReady'] %} {{ mapper[state] if state in mapper else state }}'
2022-12-09 12:13:39.553 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'None' has no attribute 'error' when rendering '{% set mapper = {
0 : 'n-a',
15 : 'Reboot Required',
18 : 'Docking Issue'} %}
{% set state = state_attr('sensor.rest980', 'cleanMissionStatus')['error'] %} {{ mapper[state] if state in mapper else state }}'
2022-12-09 12:13:39.557 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'None' has no attribute 'split' when rendering '{% if state_attr('sensor.rest980', 'softwareVer') is defined %} {% set version = state_attr('sensor.rest980', 'softwareVer') %}
{{ version.split('+')[1] }}
{% else %}
n-a
{% endif %}'
2022-12-09 12:13:39.564 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'None' has no attribute 'phase' when rendering '{% if state_attr('sensor.rest980', 'cleanMissionStatus')['phase'] == 'charge' and state_attr('sensor.rest980', 'batPct') == 100 %}
Idle
{% elif state_attr('sensor.rest980', 'cleanMissionStatus')['cycle'] == 'none' and state_attr('sensor.rest980', 'cleanMissionStatus')['phase'] == 'stop' %}
Stopped
{% else %} {% set mapper = {
'charge' : 'Charge',
'run' : 'Run',
'evac' : 'Empty',
'stop' : 'Paused',
'stuck' : 'Stuck',
'hmUsrDock' : 'Sent Home',
'hmMidMsn' : 'Mid Dock',
'hmPostMsn' : 'Final Dock' } %}
{% set state = state_attr('sensor.rest980', 'cleanMissionStatus')['phase'] %} {{ mapper[state] if state in mapper else state }} {% endif %}'
2022-12-09 12:13:39.571 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'None' has no attribute 'full' when rendering '{% set mapper = {
true : 'Full',
false : 'Not Full' } %}
{% set state = state_attr('sensor.rest980', 'bin')['full'] %} {{ mapper[state] if state in mapper else state }}'
2022-12-09 12:13:39.577 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'None' has no attribute 'present' when rendering '{% set mapper = {
true : 'Yes',
false : 'No' } %}
{% set state = state_attr('sensor.rest980', 'bin')['present'] %} {{ mapper[state] if state in mapper else state }}'
2022-12-09 12:13:39.589 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'None' has no attribute 'initiator' when rendering '{% set mapper = {
'schedule' : 'Scheduler',
'rmtApp' : 'App',
'manual' : 'Robot',
'localApp' : 'HA' } %}
{% set state = state_attr('sensor.rest980', 'cleanMissionStatus')['initiator'] %} {{ mapper[state] if state in mapper else state }}'
2022-12-09 12:13:39.603 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: 'None' has no attribute 'notReady'') while processing template 'Template("{% if state_attr('sensor.rest980', 'cleanMissionStatus')['cycle'] == 'none' and state_attr('sensor.rest980', 'cleanMissionStatus')['notReady'] == 39 %}
Pending
{% elif state_attr('sensor.rest980', 'cleanMissionStatus')['notReady'] > 0 %}
Not Ready
{% else %} {% set mapper = {
'clean' : 'Clean',
'quick' : 'Clean',
'spot' : 'Spot',
'evac' : 'Empty',
'dock' : 'Dock',
'train' : 'Train',
'none' : 'Ready' } %}
{% set state = state_attr('sensor.rest980', 'cleanMissionStatus')['cycle'] %} {{ mapper[state] if state in mapper else state }} {% endif %}")' for attribute '_attr_native_value' in entity 'sensor.vacuum'
2022-12-09 12:13:39.608 ERROR (MainThread) [homeassistant.helpers.template_entity] TemplateError('UndefinedError: 'None' has no attribute 'split'') while processing template 'Template("{% if state_attr('sensor.rest980', 'softwareVer') is defined %} {% set version = state_attr('sensor.rest980', 'softwareVer') %}
{{ version.split('+')[1] }}
{% else %}
n-a
{% endif %}")' for attribute 'software_ver' in entity 'sensor.vacuum'
This is causing Home Assistant to hang, sometimes for hours at a time. Disabling the Rest980 Add-on prevents it happening.
Thanks
Guyan