slashback100 / presence_simulation

Home Assistant Presence Simulation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Help re event presence_simulation_change

Wright55 opened this issue · comments

You advise
Each time the simulation calls a service (turn on a light, open a cover, ...), an event presence_simulation_change is fired. You can catch this event in an automation, to notify you for instance.
Would appreciate if you can help in setting this up.
I have a group with 11 lights listed.
I know how to set up basic automations but researching has not helped.

Here is a simple example that will create a persistent notification :

alias: Test Simulation Event
trigger:
  - platform: event
    event_type: presence_simulation_change
action:
  - service: persistent_notification.create
    metadata: {}
    data:
      message: >-
        Simulation of the entity {{ trigger.event.data.entity_id }},  {{
        trigger.event.data.service }} called with following parameters: {{
        trigger.event.data.service_data }}
mode: single