I have a couple of basic scripts to send commands to a Moes IR blaster (ZHA integration) and each of them works fine on their own, but when I try to run them in sequence in an automation or repeat one in an automation only the first instance seem to fire. I’m not sure if this is an issue with my script or an issue with the IR blaster, but here’s an example of the basic script I use for each command on the IR blaster (let’s call them “test1”, “test2” etc.):
alias: test1
sequence:
- data:
cluster_type: in
ieee: 8c:65:a3:ff:fe:a1:cd:d3
endpoint_id: 1
command_type: server
cluster_id: 57348
command: 2
params:
code: >-
[base64 code]
action: zha.issue_zigbee_cluster_command
icon: mdi:remote
mode: single
description: ""
and then I call these scripts in an automation with a sensor and time trigger, in this example to run in sequence with a brief pause between them:
alias: test_automation
description: ""
triggers:
- type: temperature
device_id: bdcbbd4c9376c0bb602c1783b6ceba89
entity_id: 24ff6a7d82b938b5d9b8020ef8315a3e
domain: sensor
trigger: device
id: BR temp <67
below: 67.9
conditions:
- condition: time
after: "01:00:00"
weekday:
- sat
- fri
- thu
- wed
- tue
- mon
- sun
before: "07:00:00"
actions:
- sequence:
- action: script.test1
metadata: {}
data: {}
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 200
- action: script.test2
metadata: {}
data: {}
mode: single
I can see from the device that it’s only receiving one command from the IR blaster. The same thing happens when I set up a single script to repeat twice. No idea why the second script in that sequence is not running, but any insight appreciated.