Hi
I have a automation for my dishwasher that says when its done
Yesterday before the update it did work, now it just not working, cant even trigger it.
What could be wrong?
in automation.yaml i have this
- alias: 'Rule 018 - Diskmaskinen'
trigger:
platform: state
entity_id:
- sensor.dishwasher_running
from: 'True'
to: 'False'
action:
- service: notify.iphone7
data:
message: 'Diskmasinen är klar (current power: {{ states.switch.diskmaskin.attributes.current_power_mwh }})'
and in sensors.yaml i have this
- platform: template
sensors:
dishwasher_running:
value_template: '{{ states.switch.diskmaskin_32.attributes.current_power_mwh > 1401}}'
friendly_name: 'Diskmaskin pa'
I did change the switch.diskmaskin to switch.diskmaskin_32 (After update)
Only thing i can see in the log is this
[ATTR_MESSAGE] = message.async_render()
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/template.py”, line 101, in async_render
raise TemplateError(err)
homeassistant.exceptions.TemplateError: UndefinedError: ‘None’ has no attribute ‘attributes’
17-03-12 12:15:05 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/template.py”, line 99, in async_render
return self._compiled.render(kwargs).strip()
File “/srv/homeassistant/lib/python3.4/site-packages/jinja2/environment.py”, line 1008, in render
return self.environment.handle_exception(exc_info, True)
File “/srv/homeassistant/lib/python3.4/site-packages/jinja2/environment.py”, line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File “/srv/homeassistant/lib/python3.4/site-packages/jinja2/_compat.py”, line 37, in reraise
raise value.with_traceback(tb)
File “”, line 1, in top-level template code
File “/srv/homeassistant/lib/python3.4/site-packages/jinja2/sandbox.py”, line 385, in getattr
value = getattr(obj, attribute)
jinja2.exceptions.UndefinedError: ‘None’ has no attribute ‘attributes’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/lib/python3.4/asyncio/tasks.py”, line 237, in _step
result = next(coro)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/core.py”, line 1010, in _event_to_service_call
yield from service_handler.func(service_call)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/notify/init.py”, line 133, in async_notify_message
kwargs[ATTR_MESSAGE] = message.async_render()
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/template.py”, line 101, in async_render
raise TemplateError(err)
homeassistant.exceptions.TemplateError: UndefinedError: ‘None’ has no attribute ‘attributes’