#Error with Autmation after update

1 messages · Page 1 of 1 (latest)

fierce slate
#

Need some help and getting the following error all of sudden

Error while executing automation automation.motion_plz: 'Event Calendar' config not found

My automation code is below

(https://dpaste.org/J0vk6)

hard bear
#

from what you've posted, that automation isn't called "automation.motion_plz" and there's no mention of "calendar" or "event" in there

fierce slate
#

so the entity id for the automation is plz

#

when I hit the run action for my only automation that is what shows in the logs

#

I get two errors when I I try to run the automation manaully

#

Logger: homeassistant.components.automation.motion_plz
Source: components/automation/init.py:764
integration: Automation (documentation, issues)
First occurred: 4:40:14 PM (1 occurrences)
Last logged: 4:40:14 PM

Error while executing automation automation.motion_plz: 'Event Calendar' config not found

#

Logger: homeassistant.components.automation.motion_plz
Source: helpers/script.py:2032
integration: Automation (documentation, issues)
First occurred: 4:40:14 PM (1 occurrences)
Last logged: 4:40:14 PM

Notification Front PTZ: Error executing script. Error for call_service at pos 3: 'Event Calendar' config not found

hard bear
#

I don't know if it's causing the problem, but this bit is wrong:
as_timestamp('states.binary_sensor.1_front_outside_ptz_motion.last_changed')

#

you need to remove the surrounding quotes

fierce slate
#

It won’t save without the surrounding quotes. I get this below if I remove the quotes and try to save.

Message malformed: template value should be a string for dictionary value @ data['actions'][3]['data']

hard bear
#

It works fine for me in the template editor

#

In any case, the docs say that it takes a datetime object, which is what providing without the quotes, or a comparable string

#

The string that you provided isn't valid

fierce slate