Received MQTT topic not starting AutoHotkey script.
Posted: Sat Jun 29, 2024 5:35 pm
I use Home Assistant with MQTT topics to startAutoHotkey scripts in Windows11. The Script doesn't start after upgrading to v4.8.3 but it does with v4.6. I normally use # in the filter, but i also put the tried the literal topic also. I tried with and without admin privileges, and I tried with a compiled AutoHotkey script.
Push Card Details :
================
Description: Turn Brown Noise On
Listen For: noise_on
Open: D:\My Tools\AHK\Repo\Noise Box\BN_On.exe
Start Directory: D:\My Tools\AHK\Repo\Noise Box\
Home Assistant .yaml scripts:
=========================
bnoise_on_mqtt:
alias: "MQTT: Start Brown Noise"
sequence:
- service: mqtt.publish
data:
topic: "noise_on"
payload: on <-- also used true
bnoise_off_mqtt:
alias: "MQTT: Stop Brown Noise"
sequence:
- service: mqtt.publish
data:
topic: "noise_off"
payload: on
v4.6 Session Log:
===============
2024-06-29 16:30:41.321 - MQTT incoming message:
2024-06-29 16:30:41.322 - Topic: noise_off
2024-06-29 16:30:41.322 - Payload: True
2024-06-29 16:30:44.015 - command processed based on the 'No matching phrases' card
2024-06-29 16:30:44.015 - command processed based on the 'No matchingdoub phrases' card
2024-06-29 16:30:44.016 - No matching phrases found
2024-06-29 16:32:40.508 - MQTT incoming message:
2024-06-29 16:32:40.510 - Topic: noise_on
2024-06-29 16:32:40.510 - Payload: True
2024-06-29 16:32:43.208 - command processed based on the 'No matching phrases' card
2024-06-29 16:32:43.208 - command processed based on the 'No matchingdoub phrases' card
2024-06-29 16:32:43.208 - No matching phrases found
v4.8.3 Session Log:
================
2024-06-29 16:37:01.913 - MQTT incoming message:
2024-06-29 16:37:01.913 - Topic: noise_on
2024-06-29 16:37:01.916 - Payload: True
2024-06-29 16:37:02.139 - No matching phrases found
2024-06-29 16:37:35.670 - MQTT incoming message:
2024-06-29 16:37:35.671 - Topic: noise_off
2024-06-29 16:37:35.672 - Payload: True
2024-06-29 16:37:35.849 - No matching phrases found
Push Card Details :
================
Description: Turn Brown Noise On
Listen For: noise_on
Open: D:\My Tools\AHK\Repo\Noise Box\BN_On.exe
Start Directory: D:\My Tools\AHK\Repo\Noise Box\
Home Assistant .yaml scripts:
=========================
bnoise_on_mqtt:
alias: "MQTT: Start Brown Noise"
sequence:
- service: mqtt.publish
data:
topic: "noise_on"
payload: on <-- also used true
bnoise_off_mqtt:
alias: "MQTT: Stop Brown Noise"
sequence:
- service: mqtt.publish
data:
topic: "noise_off"
payload: on
v4.6 Session Log:
===============
2024-06-29 16:30:41.321 - MQTT incoming message:
2024-06-29 16:30:41.322 - Topic: noise_off
2024-06-29 16:30:41.322 - Payload: True
2024-06-29 16:30:44.015 - command processed based on the 'No matching phrases' card
2024-06-29 16:30:44.015 - command processed based on the 'No matchingdoub phrases' card
2024-06-29 16:30:44.016 - No matching phrases found
2024-06-29 16:32:40.508 - MQTT incoming message:
2024-06-29 16:32:40.510 - Topic: noise_on
2024-06-29 16:32:40.510 - Payload: True
2024-06-29 16:32:43.208 - command processed based on the 'No matching phrases' card
2024-06-29 16:32:43.208 - command processed based on the 'No matchingdoub phrases' card
2024-06-29 16:32:43.208 - No matching phrases found
v4.8.3 Session Log:
================
2024-06-29 16:37:01.913 - MQTT incoming message:
2024-06-29 16:37:01.913 - Topic: noise_on
2024-06-29 16:37:01.916 - Payload: True
2024-06-29 16:37:02.139 - No matching phrases found
2024-06-29 16:37:35.670 - MQTT incoming message:
2024-06-29 16:37:35.671 - Topic: noise_off
2024-06-29 16:37:35.672 - Payload: True
2024-06-29 16:37:35.849 - No matching phrases found