I would like to ask for a little help.
I have a Xiaomi motion sensor which has timeout 90sec, after timeout state is OFF. If it detects motion state will be ON until no more motion is detected + timeout.
With this automation I wake up my iPad, but because of motion is registered only once I need to call other service every minute to keep my iPad screen ON.
- id: '1605108841343'
alias: Motion Sensor Living Room - turn on iPad
description: ''
trigger:
- type: motion
platform: device
device_id: bbf63cf89b29e5373385a6fe2bc53b67
entity_id: binary_sensor.motion_sensor_living_room
domain: binary_sensor
condition: []
action:
- service: shell_command.unlock_ipad
data: {}
mode: single
How can I call another service (shell_command.touch_ipad
) in every 60 seconds, when
my motion sensor (binary_sensor.motion_sensor_living_room
) is ON? It is possible to combine the two or I need two automation?