Hi,
I have a doubt about automations in home assistant.
In my case i have an automation that is the motion sensor activate and i’m not at home, send me a notification by telegram and works well
the automation is this one:
alias: SensorMovComedorCocina
hide_entity: True
trigger:
platform: state
entity_id: binary_sensor.motion_sensor_15xxxxxxx
to: 'on'
condition:
condition: and
conditions:
- condition: state
entity_id: device_tracker.phone_m
state: 'not_home'
- condition: state
entity_id: device_tracker.xxxxxx
state: 'not_home'
- condition: state
entity_id: input_boolean.limpieza
state: 'off'
- condition: state
entity_id: input_boolean.alarma
state: 'on'
action:
service: notify.telegram
data_template:
title: "Sensor Cocina: "
message: "Activado"
In this automation, i want to add more conditions with other devices, and add this:
alias: SensorMovComedorCocina
hide_entity: True
trigger:
platform: state
entity_id: binary_sensor.motion_sensor_15xxxxxxx
to: 'on'
condition:
condition: and
conditions:
- condition: state
entity_id: device_tracker.phone_m
state: 'not_home'
- condition: state
entity_id: device_tracker.xxxxx
state: 'not_home'
- condition: state
entity_id: device_tracker.telf_n
state: 'not_home'
- condition: state
entity_id: device_tracker.telf_m
state: 'not_home'
- condition: state
entity_id: input_boolean.limpieza
state: 'off'
- condition: state
entity_id: input_boolean.alarma
state: 'on'
action:
service: notify.telegram
data_template:
title: "Sensor Cocina: "
message: "Activado"
But in this case, the automation didn’t worked (not send me the notification by telegram).
I checked and service telegram in HA worked, because i received other notifications, but not this one.
Do you know if the is a limit about conditions in HA like 4 maximum?
There is a possibility to add more conditions? In the case about triggers and action, also the maximum are 4?
thanks,