Logic Machine Forum
Smartthings status update - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: Smartthings status update (/showthread.php?tid=5812)



Smartthings status update - CristianAgata - 02.01.2025

Good morning and happy new year st all.
I'm working with Smartthings API, in command mode I reached good results. My problem it is the status update and I'm asking at the community if some other is working on this.... I 've thought to use the 'https://api.smartthings.com/v1/devices/<deviceId>/components/<componentID>/status' and create a resident script for x seconds to update the values reading the response Json.
I'm asking, is there a more pretty solution?
Best regards Cristian


RE: Smartthings status update - admin - 02.01.2025

Looks like polling is the only way to get the status info.


RE: Smartthings status update - CristianAgata - 02.01.2025

(02.01.2025, 11:35)admin Wrote: Looks like polling is the only way to get the status info.

How many time in a minute, by your experience, do you suggest? I don't want overload the communication with the cloud.
BR Cristian


RE: Smartthings status update - admin - 02.01.2025

This is a question for Smartthings support Smile

Check if API has any rate limits and adjust your scripts accordingly.


RE: Smartthings status update - CristianAgata - 02.01.2025

(02.01.2025, 14:30)admin Wrote: This is a question for Smartthings support Smile

Check if API has any rate limits and adjust your scripts accordingly.

Ok I will check again.
BR Cristian