Action based on weather forecast


#1

I tried picking through the older threads for this but couldn’t seem to find an answer. I would like to be able to take action if the forecasted temperature is going to be below X degrees. Even better if I could factor in wind and/or inclimate weather. When the weather is at risk of knocking out our power, and its going to be very cold, I usually keep the heat up all the time as opposed to letting it drop while we are away or asleep. I found the accuweather app but only seem to be able to reference the current temp. Any suggestions?


(ocpd+adhd+alz+md+hfa+fms+lol=me :)) #2

If you’re a coder at all (I’m not advanced enough yet to really help much on this one), you could look at some SmartApps like these to see what they’re doing to get the information, and to see how they use it to spawn automations, etc.


(Robin) #3

There is a standard virtual device type already in the IDE called “weather tile” (or something like that).

CoRE can see the various attributes of this device:


Only snag is that the weather device doesn’t refresh itself very often, but this can be overcome by using a timed piston to force a refresh periodically. I have mine set to refresh every 15 minutes.


#4

Thanks, will give that route a try.


(ocpd+adhd+alz+md+hfa+fms+lol=me :)) #5

I didn’t even consider that was already baked-in. Thanks a lot!

Any idea if it can read same details from the BloomSky Weather Station?
(checking myself now…)

EDIT:
Yep, it works with BloomSky too. :slight_smile:
My results are kinda sketchy so far, but I’m assuming that’s more about my awful Piston writing talents than about whether it should work or not. lol


#6

I got my tile setup but what type of device would I choose when setting the IF condition? I can’t seem to find one that gives me the views from your screen shot. Also, doesn’t look like there is a forecast temp right?


(Sergio Ferreira) #7

I am using core and ifttt integration


#8

What in IFTTT do you use?


(Robin) #9

I find the device in the IF statements via ‘humidity sensor’

In the then statements I go to ‘any device’ and then ‘humidity sensor’.


(Sergio Ferreira) #10

Weather underground channel calling a Webservice.
The Web service is a core piston that does whatever you want.


#11

Awesome, just configured a test IFTTT trigger and it worked so will use the WU next day forecast and do the same. Thanks!


(Derek Murphy) #12

Where is this located?


(Robin) #13
  • log into the IDE
  • go to ‘My Devices’
  • click ‘+ new device’
  • add a name and type a random ID
  • select the type ‘SmartWeather Station Tile’
  • select your location and hub
  • click ‘create’

The new weather device will now appear on your ‘things’ list in the ST app.


(Derek Murphy) #14

It’s so simple!! Thank you!


#15

How do you get to the attribute screen in CoRE? What capability do I need to select?


#16

Do you mean the weather tile method? I couldn’t get that to do what I wanted so ended up using ifttt which has been working great.


(Dustin Clark) #17

You might need to enable expert mode under the main CoRE settings in order to achieve this.


#18

That was it! Thank you!


(Bobby) #19

Check out the Notification Add-on for EchoSistant. It now has triggers for temperature, wind gusts, humidity and precipitation below or above the level you set, with your choice of how often to check for changes. You can install EchoSistant and the Notification add on even if you don’t use Alexa devices. Below is the announcement post for the triggers. … EchoSistant also has inclement weather alerts and hourly forecast changes, which can be delivered in audio format via a remote speaker OR text via sms and push…


(Bobby) #20

Check EchoSistant with CoRE integration (see post above). You create a Profile in EchoSistant that can trigger based on weather events and that would fire a Piston to take the actions you need.