-
-
Notifications
You must be signed in to change notification settings - Fork 2
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 thecontroller_id
-
UL10
is theentity_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.