This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Search Group names for string
#1
Hi,

I have a project that requires a script to check the state of multiple groups in a room, and then alter their state state based on conditions. This is to be applied across a large project so im looking for a way to build this out dynamically. The script will be triggered from a sensor.

The sensor group address can be named "MD Room 1.01". The load group address can be named "load 1 Room 1.01", "load 2 Room 1.01", "load 3 Room 1.01"

The sensor objects will be in a separate middle group to the load groups.

Is it possible to extract the "Room 1.01" string from the sensor object name when it triggers the script and then search for object names that contain "Room 1.01" and alter their state?

Any help would be greatly appreciated!
Reply


Messages In This Thread
Search Group names for string - by Diggerz - 26.07.2020, 07:52
RE: Search Group names for string - by admin - 27.07.2020, 05:55
RE: Search Group names for string - by admin - 27.07.2020, 09:18
RE: Search Group names for string - by admin - 03.08.2020, 06:44

Forum Jump: