Skip to content

Run automation when scene is executed

Thomas D edited this page Dec 13, 2023 · 1 revision

You can execute a scene from Home Assistant and Qbus will act on it. However, the other way around, when executing the scene from Qbus (i.e. you push a switch or something), Home Assistant will not know about it. Thus you cannot use the Home Assistant scene as a trigger in your automations.

To workaround this, you'll need to use an MQTT trigger.

trigger:
  - platform: mqtt
    topic: cloudapp/QBUSMQTTGW/UL1/UL10/state

In the example above:

  • UL1 is the controller_id
  • UL10 is the entity_id of the scene

The controller_id and entity_id can be found in the attributes of the Home Assistant entity (Developer Tools > States). The controller_id will be UL1 most of the time, unless you have multiple controllers.

Clone this wiki locally