Hi, I recently added some LoraTap wifi modules in order to control my roller shutters. It works fine via Tuya app and Home Assistant as well. The thing is, I would like to automate them when a Xiaomi Light sensor gets a certain maount of lux and close them but not entirely, but keep them almost “ajar”
I can roll them, unroll them completely, and pause them, but the module doesn’t allow rolling/unrolling them at a certain position, so I thought to keep closing them a certain amount of seconds (21 in my case) and then stop it, but it seems that the script doesn’t continue to the Stop statement until it finishes unrolling completely the shutter.
Any ideas of how could I accomplish this? The Script GUI generated this YAML:
bajar_persianas_casi_hasta_abajo:
alias: Bajar persianas casi hasta abajo
sequence:
- device_id: e7bb0ba737d06063a87b4b43e73869ef
domain: cover
entity_id: cover.0005081570039f8c3b80
type: close
- wait_template: '21'
- device_id: e7bb0ba737d06063a87b4b43e73869ef
domain: cover
entity_id: cover.0005081570039f8c3b80
type: stop
mode: parallel
max: 10