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.

[solved] Most efficient way to get sum of all light states?
#7
Hi,

@buuuudzik
it works great for me. What I don't understand is, why the "OR" logic don't works...
AND and AVERAGE works, so I made a simple quick&dirty mod and added a forth object "COUNT" and modified for that the function avarage to get the amount of lights which are in state on.

I understand that script in that way, that I can use one script for each room, or sum of windows and so on, for each value I will count. Is that correct?
For example I count with Tag "Spots" all my Downlights which I tagged... If I want to count open windows, I take another copy of that script and Tag all my windows status objects with "windows", and I will get a value for opened windows. ...
Reply


Messages In This Thread
RE: Most efficient way to get sum of all light states? - by Habib - 07.01.2017, 09:49

Forum Jump: