26.07.2020, 07:52
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!
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!