This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Turn on device according to label/tag
Hi,
Is it possible to ID a device with a tag. For example having a variable as input from IFTTT and using that variable to identify what device to manipulate?
What I currently is trying to accomplish is to turn on a light (Y) and turn it off X second later, but only if it is turned off to start with. I can address on light at a time, but I want to do this with many flows and is trying to make it more efficient.
Is it possible to ID a device with a tag. For example having a variable as input from IFTTT and using that variable to identify what device to manipulate?
What I currently is trying to accomplish is to turn on a light (Y) and turn it off X second later, but only if it is turned off to start with. I can address on light at a time, but I want to do this with many flows and is trying to make it more efficient.
Comments
Question is: how would you identify the devices? Just by their name (which isn't necessarily unique)? Perhaps a combination of the device class (`light`, `socket`, ...) and the name?
(not having this made me decide to create the Heimdall app so i guess something good came from it)
I think the question here is a bit different: the ability for actions to accept a tag that contains the name of a device, and evaluate that name into an actual device instance with that name, and perform an action on that device (turn it on/off, for instance). @nmeden, did I understand that correctly?
Triggerd me into understanding it like that, but perhaps I’m way off