Scenario actions
- what can a scenario do
- how do i make a scenario turn on an effect
- send a chat message to discord from a scenario
- can a scenario add time to a timer
- the call another service step stopped working after I moved to a new computer
Comes with strAImer: this module is installed together with the app, so there is nothing to download. It is listed under Module Catalog → Built-in.
What this page is
+ Action in a scenario opens Add Action with three groups of steps: OBS steps, which need the OBS connection; Canvas steps for the strAImer canvas; and strAImer steps, which the app does itself. How a scenario is built and saved is in the guide "Automation Scenarios".
The steps
OBS — needs the OBS connection, and the pickers are filled from OBS itself:
- OBS: Switch scene — Select Scene.
- OBS: Show or hide source — Select Scene, Select Source, What to do (Show source, Hide source, Toggle).
- OBS: Source filter — the same plus Select Filter and Filter State (Enable filter, Disable filter).
- OBS: Mute or unmute audio — Audio input, then Mute, Unmute or Toggle.
- OBS: Audio input volume — Audio input and a Volume slider.
Canvas — the same things you do by hand on the Canvas: Layouts tile on the Control Panel:
- Canvas: Layout — Canvas and Layout. It puts that layout on air, just like its button on the tile; if the layout is linked to an OBS scene, OBS switches to that scene too.
- Canvas: Element — Canvas, Element and What to do (Hide, Show, Toggle), plus Switch back after, sec. It works like the eye on the tile: in the layout on air, and in the vertical layout that goes with it if the element is in that vertical layout too. Other layouts do not change. Leave the time empty to keep the change. If you set a time and undo the change yourself with the eye before it is up, the step does not switch the element back.
- Canvas: Effect — Canvas, Element, Effect and What to do (Turn on, Turn off, Toggle), plus Switch back after, sec; leave it empty to keep the effect as the step left it. It switches an effect already set up on that element in its Effects on the Canvas page. The element is looked up in the layout on air, and the same effect on the vertical canvas switches too. Effects of a canvas group cannot be switched by a scenario.
strAImer — everything the app does itself:
- Play Sound: Select Sound is a slot with a ▶ button to listen. Click it and the Choose a sound window opens, where every file shows its length, a waveform and its own ▶, and any folder can be opened. Plus Volume.
- Say it out loud and Send chat message — both take Text; the chat one also takes Where to send (All connected chats, Twitch, YouTube or Kick).
- Smart Plug — the plug and What to do: Turn on for a while (which adds Duration, sec), Turn on and leave it on, or Turn off. With no plugs it says "No plugs added — see Devices → Shelly".
- Create Twitch clip.
- Timer: pick the timer, then What to do: Start, Pause, Start or pause, Reset, Add time or Take time away; the last two add Minutes. With no timers the list says "No timers yet. See Widgets → Timers".
- Overlay effect — Overlay, Widget, Effect, What to do and the same Switch back after, sec. It switches an effect set up in the widget's editor, in its Effects section, and works where the widget is added to OBS by its own link. On a canvas, the effects of the canvas element apply there instead of the ones in the widget's editor. Leave the time empty to keep the effect as the step left it.
- Call another service — Address, What to send (Send data (POST) or Just open the address (GET)), Data to send as JSON or Plain text, and Extra headers, one per line as "Name: value", if the service asks for an access key. It is how a word in chat reaches Discord, n8n, Make, a smart home or anything of your own. The reply is not read: the log keeps the status code and the name of the service, and the next step runs either way. The address and the headers are stored encrypted on this computer and are not part of a backup. After a backup is restored on another computer, the step says "Not saved on this computer. Enter the address again": paste the address, and the headers if the service needs them, once more. On the same computer a reopened step shows an empty field with "Saved: {host}. Leave empty to keep it", so the address is still there.
Under Text and Data to send sit the chips {user}, {amount}, {reward}, {message} and {args}: "Click a name below to insert it. It is replaced by what triggered the scenario; an unknown name is left as is." {args} belongs to the chat trigger — it is the text after the command, so "!order pizza" gives "pizza". Quotes and line breaks in what a viewer wrote are escaped on the way into JSON, so the data stays valid.
What it cannot do
- A step does not read the reply of another service: the next step runs either way.
- Effects of a canvas group cannot be switched by a scenario, only the effects of an element.
- Scenes, sources, filters and audio inputs are read from OBS. Without the OBS connection those pickers have nothing to offer.
- Duration, sec exists only for Turn on for a while. The other two plug actions are ended by the chain, not by a countdown.