I’m trying to setup my first automation with my hue motion sensor/SMTP notification and I can’t seem to get it working. If I run just the action, it sends an E-Mail with no problem. I can’t seem to get the trigger working. I’m guessing it has to do with the name of the states but I can’t verify that. Any and all help you’d be willing to provide would be appreciated. Here’s my automation:
- id: '1549945237553'
alias: Test EMail
trigger:
- entity_id: binary_sensor.motion_kitchen
from: Clear
platform: state
to: Detected
action:
- data:
message: Intruder alert at apartment!!
title: Intruder alert
service: notify.eric_notifier
@tom_l
I thought that too but, when I change it to that, I get the following error when I run the “Check configuration”
Invalid config for [automation]: expected str for dictionary value @ data[‘trigger’][0][‘from’]. Got None
expected str for dictionary value @ data[‘trigger’][0][‘to’]. Got None. (See /config/configuration.yaml, line 109). Please check the docs at https://home-assistant.io/components/automation/
@nickrout
When I I remove the “from” field and change the “To” setting to “on”, I get this error:
Invalid config for [automation]: expected str for dictionary value @ data[‘trigger’][0][‘to’]. Got None. (See /config/configuration.yaml, line 109). Please check the docs at https://home-assistant.io/components/automation/
You are awesome! It worked. Thank you so much for the help.
I do have one more question for you though if you don’t mind. Is there some sort of a list that I could find that would show me the different entity trigger options?