logo elektroda
logo elektroda
X
logo elektroda

[OpenBK] Publishing Command-Alias-Script via autoexec.bat to HomeAssistant

andreasR 9 0
ADVERTISEMENT
  • #1 21787054
    andreasR
    Level 1  
    Dear all,

    I would like to publish a command/alias/script to Home Assistant.
    Goal is to not manually add this in HA.
    Can this be done using OpenBeken autoexec.bat?

    My alias is "OpenShutter"
    Device name: "shutter03"

    I tried this:
    publish cmnd/shutter03/OpenShutter 1 "Open Shutter"

    Unfortunately, my Home Assistant does not see anything.

    What am I missing?

    Thanks a lot for your help!
    AI: Could you please confirm if you have set up the MQTT integration in Home Assistant and which MQTT broker (including server address and port) both OpenBeken and Home Assistant are using?
    Yes.
    AI: Is Home Assistant subscribed to the topic "cmnd/shutter03/OpenShutter", or have you checked the MQTT logs to see if the message is being received at all?
    I have checked the logs: Yes.
  • ADVERTISEMENT
ADVERTISEMENT