Questions tagged [smartthings]

SmartThings is a connected, open hardware platform for the Internet of Things, most specifically home automation. SmartThings was acquired by Samsung in August of 2014.

Our developer portal: http://developer.smartthings.com/ Getting Started Guide: http://docs.smartthings.com/en/latest/getting-started/up-and-running.html

If you have any questions, our community site is a great resource: http://community.smartthings.com

39 questions
1
vote
1 answer

Subscribe to Events, even when isStateChange is False

Is there a way to run through a function even though there is no state change? subscribe(locks, "codeReport", codeReturn) I'm trying to subscribe to an event, but it only enters the subscription function if there is a state change Eg: isStateChange:…
ethayer
  • 55
  • 1
  • 6
1
vote
3 answers

How do I make my while loop fire once a minute?

I have this while loop: while (now() > timeToday(checkTime).time && now() < timeToday(arrivalTime).time){ I would like for this loop to run only when the real time clock's seconds hits 00 Basically allowing the loop to run once per minute. I am…
Brian
  • 622
  • 10
  • 29
1
vote
1 answer

Is it possible to have a dynamic redirect url

I'm working on connecting Nest and SmartThings and I'm running into an issue with the redirect url for auth. SmartThings requires a redirect url that will be different for every user. But it appears the Nest API will only redirect back to exactly…
Dianoga
  • 329
  • 1
  • 7
0
votes
1 answer

How to get all locations connected to a SmartThings account using Python?

How to get the name of all location you have connected to your SmartThings account using Python with the pysmartthings libary? I tryed this code from the documentation to the libary : import aiohttp import pysmartthings token =…
0
votes
1 answer

Home Assistant - correct syntax for extracting variable

So I am using the SmartThings API integration for my Samsung washer and dryer, and am trying to extract the following items into sensors- remaining time kids lock The format for the sensor.smartthings_dryer_api is as follows: components: main: …
0
votes
1 answer

Receiving error within Smartthings Device Handler

I am receiving the below error when trying to compile the device_handler code for the Sylvania Smart+ Plug. The code comes from https://images-na.ssl-images-amazon.com/images/I/71PrgM-PamL.pdf The…
0
votes
0 answers

how to detect if if a specific string in another groovy file has been modified

this is part of the groovy file that I wanted to detect if the description field has been changed /** * Copyright 2015 SmartThings * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in…
rag j
  • 1
  • 1
0
votes
1 answer

What is Tuya expecting for the time header in API calls?

I'm trying to interact with the Tuya API from a PHP webapp. I have authenticated the user and now have the code which is returned from Tuya. I now need to submit that via the Authorisation Management API to get an authorisation for subsequent API…
Derek
  • 75
  • 9
0
votes
1 answer

Calling Functions in Flask

Apologies in advance as this is probably the most basic question to be found here but I'm the greenest of newbies and cannot get my head around how to call a function in flask so it runs when I land on the URL. My purpose is to try and get a python…
Tim Wagg
  • 11
  • 1
0
votes
1 answer

Unable to discover devices in smartThings

I am developing an IOT device using smartThings.I am using aws lambda function for getting request and sending responses to the smartThings. I am getting request whenever smartThings app hitting lambda function and sending exact response to that…
Revanth
  • 11
  • 4
0
votes
1 answer

Can't implement OAuth for Samsung SmartThings Cloud-To-Cloud integration

I am developing a solution for a product and trying to implement C2C connection. I am in stuck with linking SmartThings with my backend via OAuth. I get request { "lifecycle": "CONFIGURATION", "executionId":…
atlascoder
  • 2,746
  • 3
  • 26
  • 34
0
votes
1 answer

how does && work when both the variables are the same?

I'm learning groovy to work on smartthings and found a relatively common command among the various examples and existing code (see below). Reading the function of the && operator I would think the "&& cmd.previousMeterValue" is superfluous. Or is…
JonRob
  • 43
  • 1
  • 6
0
votes
0 answers

How do I join a list in Groovy (in SmartThings state object)?

This is for a Samsung SmartThings smart app. I've never used Groovy outside of this context, so I'm not sure if this is a quirk of SmartThings or Groovy. It seems that the following should work, but I keep getting a runtime error: def initialize()…
Matt
  • 273
  • 1
  • 2
  • 10
0
votes
1 answer

No SMS text message notifications from SmartThings to my Twilio number

My Twilio number will not receive SMS text messages from SmartThings. I have SmartThings set to send me SMS text message notifications to my Twilio number. According to the API, SmartThings is sending the SMS text messages: { "destinations": { …
Zack Peterson
  • 56,055
  • 78
  • 209
  • 280
0
votes
1 answer

Native android smartapp from SmartThings

I would like to create a native Android app to control my devices with SmartThings. Do you know if it is possible or is it just possible to code a groovy app as they say in their API doc? Here is the Link