#Add email notification to Motion Activated Light Blueprint?

1 messages · Page 1 of 1 (latest)

shy yew
#

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
normal plazaBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

karmic furnace
#

Hi @shy yew,
Seriously, don't do that.

#

I have tried for a while with ChatGPT but that isnt working correctly.

That is a mess and noone can help you with it.

#

If you want to change a blueprint, you need to change the blueprint, not the automation that calls the blueprint. All you can do while creating the automation is change the inputs, code is already locked in.

#

There are many derivations on the motion sensor blueprint, I suggest searching the Home assistant Forum blueprint exchange and see if there is something there that already has what you want or that can be tweaked to what you want.