You need to define value range entries (Add New Range Value) in order to populate that pick list. The section above where you defined the Status Graphics.
Announcement
Collapse
No announcement yet.
Event: If a device's value is in the range....
Collapse
X
-
Originally posted by IKUS View PostHere's a proposed solution...
Create a virtual device called "gloomy outside" with binary values of ON & OFF or TRUE & FALSE, whichever works best for you...you can even set the icon values for these as a cloud and a sun using the HS delivered icon packs or something you find from google. Then create two events on your luminance device using the triggers "device had it's value set and is less than" and "device had it's value set and is greater than". The two events would toggle the virtual "gloomy outside" device on and off based on the luminance value you decide upon as the boundary between bright enough and not bright enough outside. Hopefully this isn't a battery operated luminance sensor and you can increase your reporting interval. This will let your events react quicker.
Then create a third event that uses the "has been/for at least" trigger on your "gloomy outside" device, which you can set at 5 minutes or however long you want that "gloomy outside" to have to be on before turning the lights on. You should also *AND* this with an "the time is daytime" trigger so that it doesn't even attempt to trigger at night. You can further limit event triggering if you *AND* that with a check that the light you're about to turn on isn't already on.
You'll likely want a fourth event out there to turn those lights off when "gloomy outside" returns to OFF/FALSE.
Depending on how often you have huge changes in lighting due to clouds and eclipses or whatever you want your lights to react to, play with the "Can Not Re-Run For" advanced option on the events to keep the light on/off changes throughout the day from becoming annoying.
Jim Speiser
35-year veteran of Home Automation
Still don't know squat
Comment
-
Originally posted by zwolfpack View PostYou need to define value range entries (Add New Range Value) in order to populate that pick list. The section above where you defined the Status Graphics.
But you say, "'Add New Range Value" THAT'S what I'm actually looking for. But where is it?
Jim Speiser
35-year veteran of Home Automation
Still don't know squat
Comment
-
Can you not have this:
Event 1
If the sensor changes and becomes < 150
and if
scene is off
then
turn on the scene after a delay of x
If the sensor changes and becomes > 150
then
turn off the scene
Cancel delayed event 1
Greig.
Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
Scripts = Various
Comment
-
Originally posted by JimSpy View Post
But you say, "'Add New Range Value" THAT'S what I'm actually looking for. But where is it?
Comment
-
Originally posted by zwolfpack View PostAs I said, in the section above where you defined the Status Graphics. In the image in your post #13, you can see the button labeled 'Add New Range Value' right near the top.
So, I Add a New Range Value to my status graphics list. How is that "range value" brought into the pick list for the event trigger? As you can see, I already have several range values set for the status graphics, but those range values do not currently appear in my pick list. Why would it be different for a new one? Am I misunderstanding?
Jim Speiser
35-year veteran of Home Automation
Still don't know squat
Comment
-
I often use a virtual device like above (I have "Sunshine", "Daytime", "Raining" to name a few physical states).
But in this case I'd use a timer:
- if the value moves into your dark range, resume the timer (you don't want to reset the time, in case the light level is moving within your dark range)
- if the value moves into your light range, stop the timer and set the value to zero; also turn off the lights
- if the timer reaches five minutes, turn on the lights
Comment
-
At the risk of further adding to the confusion, I do something like this by treating it as a hysteresis issue. That is, it needs to be darker to turn the lights on than to turn the lights back off. I then adjusted (fooled around with) the two values until I got the desired result. In my case I also found that the season was important because the light sensor was more sensitive to changes in light level (compared to my own perception) in the winter than the rest of the year.Mike____________________________________________________________ __________________
HS3 Pro Edition 3.0.0.548, NUC i3
HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti
Comment
-
Originally posted by Uncle Michael View PostAt the risk of further adding to the confusion, I do something like this by treating it as a hysteresis issue. That is, it needs to be darker to turn the lights on than to turn the lights back off. I then adjusted (fooled around with) the two values until I got the desired result. In my case I also found that the season was important because the light sensor was more sensitive to changes in light level (compared to my own perception) in the winter than the rest of the year.
With the light sensor, the one I use is hidden away from the sun under a large car port, so it's quite good at determining a useful brightness. Another identical one that is more exposed (but still shaded) is not as useful, it basically saturates at 100% far too soon.
Comment
-
Originally posted by JimSpy View PostSo, I Add a New Range Value to my status graphics list. How is that "range value" brought into the pick list for the event trigger? As you can see, I already have several range values set for the status graphics, but those range values do not currently appear in my pick list. Why would it be different for a new one? Am I misunderstanding?
The entries from the value section are what appear in the event value selectors. This also allows customization of how the value appears in the device view, i.e. number of decimal places, units, etc.
Here are a couple of examples. In the first, wind speed, I have only one range value, 0 - 359.9999 degrees. But there are 16 range graphics, for different compass points.
In the second, UV Index, each value range corresponds exactly to a matching graphics range. Each value range has a suffix assigned as well; thus the value displayed on the device view right now is "9.5 - Very high".
Comment
-
OK, so I'm in the wrong section. I'm in Status Graphics when I should be in Status Text. I never realized that values in one do not have to match up 1 to 1 in the other. Faaascinating.
So, let's say I break my 0-255 range into two ranges, 0-102 and 103-255. (I'll have to play with the actual values later, when it actually gets dark!) Now, these 2 ranges should appear as choices under a drop-down menu in my event, yes? Well, let's see....
[a period of time passes]
Well, that's different. I've been using "has been/for at least". This gives me several options in the drop-down, NONE of which correspond to a range from the Status Text section. HOWEVER, if I use "This Device changes and becomes", and choose "a custom value or value range of", I get two fields to set minimum and maximum, exactly what I want. DOUBLE HOWEVER, I am sacrificing the ability to delay the action for 5 minutes.
So I guess I can't do this.
Jim Speiser
35-year veteran of Home Automation
Still don't know squat
Comment
-
Well, part of it worked - it didn't trigger after sunset.
I guess I'll either have to wait for a cloudy day in Arizona, or put some electrical tape over the sensor face.
Just checked and there's no rain in the forecast for 2 weeks. So I'll try the tape method and let ya know.
Jim Speiser
35-year veteran of Home Automation
Still don't know squat
Comment
Comment