Hello - I am trying to add an email notification to a motion sensor / light. I have tried for a while with ChatGPT but that isnt working correctly.
alias: Motion-activated Light-HomeOffice-
description: ""
use_blueprint:
path: homeassistant/motion_light.yaml
input:
motion_entity: binary_sensor.rk_homeoffice_closet_motion
light_target:
entity_id: light.home_office_closet_main_lights
This is the basic one which is part of HA.
When i add code to add the email - it sends the email but the light doesnt go on.
alias: Home Office - closet 1 - Motion-activated Light
description: ""
actions:
- data:
title: RTJ Home Office Closet - Motion Detected
message: >
Motion sensor detected movement at {{ now().strftime('%Y-%m-%d
%H:%M:%S') }}.
action: notify.gmail
use_blueprint:
path: homeassistant/motion_light.yaml
input:
motion_entity: binary_sensor.rk_homeoffice_closet_motion
light_target:
entity_id: light.home_office_closet_main_lights
no_motion_wait: 57