28.05.2024, 07:03
I have created scripts to monitor the states of different ignitions. A lighting can belong to more than one grouping, for example, I have two independent lights in a hallway. When any of them turn on, I have to indicate the following states:
1. Grouping of hallway lights on floor 1
2. Building Corridor Light Grouping
3. Grouping of lights on floor 1
I have done it with tags, for the activation of the script. I have written the script with OR logic gates.
The CPU saturates when I turn on/off, for example, to all the lights on the floor. I think it is because when the lights change state, it has to enter the script several times and it becomes saturated.
How can i fix it? Or what is the reason for it to saturate so quickly?
1. Grouping of hallway lights on floor 1
2. Building Corridor Light Grouping
3. Grouping of lights on floor 1
I have done it with tags, for the activation of the script. I have written the script with OR logic gates.
The CPU saturates when I turn on/off, for example, to all the lights on the floor. I think it is because when the lights change state, it has to enter the script several times and it becomes saturated.
How can i fix it? Or what is the reason for it to saturate so quickly?