Hi!
I am sending payload (ir codes) to my self made ir blaster (eps8266 device) that then blasts the code to my devices. My VSX-S300 AV-Receiver want’s to get the power on signal for at least 3 times in a fast sequence to power on at all. At the moment I try it with this:
script:
vsx_poweron:
alias: "VSX S300 Power On Script"
sequence:
- service: homeassistant.turn_on
data:
entity_id: switch.vsx_poweron
- service: homeassistant.turn_on
data:
entity_id: switch.vsx_poweron
- service: homeassistant.turn_on
data:
entity_id: switch.vsx_poweron
- service: homeassistant.turn_on
data:
entity_id: switch.vsx_poweron
switch:
- platform: mqtt
name: "vsx_poweron"
state_topic: "home/living/u-ir-remote-1/state"
command_topic: "home/living/u-ir-remote-1"
qos: 1
payload_on: "sendgc:38000,1,1,360,180,22,67,22,22,22,67,22,22,22,22,22,67,22,22,22,67,22,22,22,67,22,22,22,67,22,67,22,22,22,67,22,22,22,22,22,67,22,22,22,67,22,67,22,22,22,22,22,22,22,67,22,22,22,67,22,22,22,22,22,67,22,67,22,67,22,989,360,180,22,67,22,22,22,67,22,22,22,22,22,67,22,22,22,67,22,22,22,67,22,22,22,67,22,67,22,22,22,67,22,22,22,22,22,67,22,22,22,67,22,67,22,22,22,22,22,22,22,67,22,22,22,67,22,22,22,22,22,67,22,67,22,67,22,989"
A script with mqtt.publish etc won’t work either…
If I send the payload with the built in mqtt.publish tool in HASS and I press the button fast for three times, it works like a charm. so there is no problem with my ir blaster device. It works fast enough. Problem seems to be the execution time of the script.
Is there a faster way of sending mqtt messages to my device? Say 3 times a second?
Solution is here: Solution in #4