Trigger SmartThings scene from MacroDroid [Please scroll to see Sept 2023 updates]

Yochai

New member
Per https://developer.smartthings.com/docs/automations/getting-started-with-automations, looks like rules created outside of the API aren't visible/available in the API:
View attachment 10522

In general, Rules ("automatic routines") are designed to be triggered by events (time of day, sensor activation, etc.), vs. manually, so maybe that's why this isn't straightforward. If you want to avoid cluttering up your list of scenes with scenes that only exist to trigger a rule, the only thing I can think of would be to
  1. set up virtual switches (one per rule, and accessible from the "Labs" icon in the app on the "Menu" tab)
  2. trigger each rule based on its associated switch being turned on
  3. turn off the switch at the end of the rule
  4. hide the virtual switches in the app's Device display using its "Select Devices to Use" option (in its three-dot menu). Alternatively you could just create a Room called "Virtual Switches" or "Rule Switches" or something and put all the virtual switches there...
Thanks. Your suggestion is pretty much what I had in mind.
 

Dimlos

Well-known member
SwitchBot API requires the use of Python from version 1.1 onwards, but SmartThings-compatible products can be controlled via HTTP requests using the SmartThings API.
This should be good news for users who have difficulty using Python with Termux and Termux:Tasker.
 

Winny57

Active member
Isn't it simpler like this? Just put your key (no addition) then you would get a list of available scenes you just have to click on it to activate it
 

Attachments

  • Smartthing_command.macro
    11.1 KB · Views: 2
Top