I'm about to roll everything from Vera Plus to a Hubitat hub. I have a weather station that publishes the last hour windspeed gust to a file on my website. I have a scene setup in Vera to look every 10 minutes at the contents of an external file and if its over 15 the condition will come true and the action will be to retract the awning. The luup code is below. Can someone point me in the right direction on how this would be done in Hubitat.
Thanks
Luup code in my vera today:
local threshold = 15
local a,b = luup.inet.wget "website/vera_windgust_hour.php"
local status = false -- by default, abandon scene execution
if a == 0 and b then
status = tonumber(b: match "%d+%.?%d*") > threshold
end
Thanks, The 15 is just a threshold i'm using that when crossed makes the condition true. 15 in this case is a high wind speed of 15 knots. I really was just looking to run a scene say every 15 min to look in the file and if the value is = or > 15 than the scene would trigger an action.
This would clearly be more efficient. I guess I was just being lazy and trying to get it to work the way it is today. Thanks for the direction as Iāll look into endpoint trigger abilities.