I am working on a Rube Goldberg project that will turn on a Shelly dimmer on when motion is detected from a Shelly motion sensor and off when the motion stops.
The reason for this complexity is that the Shelly motion sensor uses MOTT to report changes of state. I have not used MOTT. I would prefer to beat my head against a wall to learn something that I can use.
So far I have I have used Maker API Send Device Command to turn on and off a Dashboard tile.
On command
http://192.168.XX.XX/apps/api/1551/devices/1672/activeaccess_token=XXXXXXXXX
Off command
http://192.168.XX.XX/apps/api/1551/devices/1672/inactive?access_token=XXXXXXX
Hopefully, someone can help me out with the following:
- How to use the Send Device Command, to call Rule Machine, to run an automation
- How can I find the ID for my automation?
Any help or incites will be greatly appreciated