rambo350z / ST-API-ios-Shortcuts

ios Shortcuts for interacting with SmartThings API
GNU General Public License v3.0
13 stars 0 forks source link

Juno Connect (Acuity Brands/Lithonia Lighting) SmartThings Speaker Light #1

Open EddieDaYankee opened 6 months ago

EddieDaYankee commented 6 months ago

Hi, I have 2 Juno Connect (Acuity Brands/Lithonia Lighting) SmartThings compatible Speaker Lights. I have added them successfully to my SmartThings app and am able to turn them on and off and change the color of the light. Separately, I have the two speaker lights in a speaker group that I can connect to via Bluetooth to stream music. I want to be able to control them in HomeKit. Since I have HomeBridge, I added the SmartThings plugin and can see all my Samsung/SmartThings devices on my iPhone’s Home app. Unfortunately, interacting with the light switches doesn’t actually control my speaker lights. As a result, I went looking for a way to control my speaker lights using iOS shortcuts. I found your solution. But I can’t get it to work. I believe the shortcuts are setup with the correct info (I.e. Personal Access Token, Device IDs, Location IDs, etc. According to the shortcut results, attempts to turn the devices on and off are successful, but visually the lights never change. Perhaps you can help me? Thanks.

rambo350z commented 6 months ago

Eddie,In order to change lights will require you to figure out what command formatted in json you need and put that in the shortcutI know the next question is how do I determine what command to sendBelow is how I determined the appropriate json command for another user:The way I can up with this json command was to create a routine for the virtual garage door device, setting the If part to anything (I used a specific time) and the Then part to how you want to control the device. I then used Todd Austin’s API Browser+ to look at the Routine's details to see what parameters ST used for the device. Below is an example from the Then part of the routine:          "commands": [            {              "component": "main",              "capability": "doorControl",              "command": "open"            }          ]Note there maybe extra meta-data items in the json that needs to be removed. If it doesn’t work send me the json and I’ll see if I can fix itLet me know if this cmd json works with your garage door device. If it doesn’t work, you’ll need to create a temporary ST routine for your garage door device to see what parameters are necessaryIf you haven’t seen the discussion thread on the ST forum, the link is below Using iOS Shortcuts and Siri to Interact with Smartthingscommunity.smartthings.comAlso you can use a json formatter site to validate the json and minimize it for pasting into the shortcut. Though I don’t think you need to minimize it, but I’ve never tried without minimizing the jsonBest JSON Formatter and JSON Validatorjsonformatter.orgLet me know if you have other questions On Mar 27, 2024, at 10:22 PM, EddieDaYankee @.***> wrote: Hi, I have 2 Juno Connect (Acuity Brands/Lithonia Lighting) SmartThings compatible Speaker Lights. I have added them successfully to my SmartThings app and am able to turn them on and off and change the color of the light. Separately, I have the two speaker lights in a speaker group that I can connect to via Bluetooth to stream music. I want to be able to control them in HomeKit. Since I have HomeBridge, I added the SmartThings plugin and can see all my Samsung/SmartThings devices on my iPhone’s Home app. Unfortunately, interacting with the light switches doesn’t actually control my speaker lights. As a result, I went looking for a way to control my speaker lights using iOS shortcuts. I found your solution. But I can’t get it to work. I believe the shortcuts are setup with the correct info (I.e. Personal Access Token, Device IDs, Location IDs, etc. According to the shortcut results, attempts to turn the devices on and off are successful, but visually the lights never change. Perhaps you can help me? Thanks.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>