I trying to set up automation for sending telegram notification, if any light is on (group with all lights) and nobody is home (group with persons). But automation was never triggered. Have anyone idea what I doing wrong? Using automation editor create this config:
- id: '1581545836103'
alias: Away mode - light check
description: Send notification if any light is on and nobody home
trigger:
- entity_id: group.all_lights
platform: state
to: 'On'
condition:
- condition: state
entity_id: group.all_persons
state: away
action:
- data:
message: Nobody is home and some lights are on
service: notify.telegram_martin
If I trigger automation manually, notification was sent and arrived. I try your suggestion, but it’s same - on manual trigger notification arrived, but automation is not triggered based on group state change