This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Solved
Wheather forecast in flow
OetAelse
Member
I'm looking for way to use a wheather forecast for my location as a trigger, for example if the forecast for today is sunny and 25 degrees roll down the shutters.
Tagged:
Comments
https://apps.athom.com/app/nl.inversion.wunderground
https://apps.athom.com/app/com.yahoo.weather
I wanted to have exactly what you are talking about, have shutters go down when between 10:00 and 16:00 the weather is "Zonnig" and temp is > 21degr. But so far my flow is not working somehow. Have to test a bit more
@Priknr1
I did it using my own app, I'll try publishing it next week. Maybe that can help
@OetAelse, here is my flow based on curret weather (updated every 10 min). To stop my curtains going up and down all day, I use the variable to check if the curtain has been moved today (other flow resets the var @ night)
However, I'm making it into a device now (like a multisensor) so you can do weather changes on individual level (so a card for temp changed, card for humidity changed etc)
This evening I've created the weather status from Weather Underground with the HTTP app.
Action Card:
All the possible weather conditions: (last 6 month in the Netherlands)
- Clear
- PartyCloudy
- Scattered Clouds
- Chance of Rain
- Rain
- Snow
- Tstorm
- Overcast
- Fog
- Mostly Cloudy
For the forecast:- URL: "http://api.wunderground.com/api/[PERSONAL_KEY]/hourly/q/pws:IUTRECHT413.json"
- JSONpath: $.hourly_forecast.0.condition !!!!Special number [0]!!!!!
- BetterLogic: String Variable
Changing number [0] will result in the forecast in hours. Eg. $.hourly_forecast.12.condition will response the weather condition over 12 hours.Step 2: Install BetterLogic and HTTP request apps on Homey.
Step 3: Create a new flow with a trigger, e.g. "Every hour". Place the action card from the HTTP APP in the "then" column.
Step 4: Enter the values I recommended, with your own personal key.
Every time when the action card is triggered, the BetterLogic variable is updated with the String of the weather condition. You could follow it in the tag menu.
In the action flow for your screen, you could use the "and-column" to check the weather condition before you close your screens.
In another flow you could use a trigger card "when weather condition-changed", and "weather is rain", than open screen.
Success!
You could make 10 flows, for each condition one. In these flows, you could switch a BetterLogic Boolean: "ZonneSchermWeer/SunScreenWeather " true/false.
This new Boolean you could place in the "And" column.
Trigger: weather conditions is changed
And: SreenWeather is true, and it's between sunrise an sunset.
Then: close screen
Thank you too. I had the same question. You had push me to think smarter.
To be winterproof I created one extra variable: "Max Temp Forecast". Make an extra Flow.
Before closing the Screen, Homey checks this value. At wintertime (Max. temp forecast < 15 degrees) the Sun will help to heat my home.
- URL: "http://api.wunderground.com/api/[Personal_KEY]/forecast/q/wijk_bij_duurstede.json"
- JSONpath: $.forecast.simpleforecast.forecastday.0.high.celsius
- BetterLogic: Number Variable
In total 17 flow to automate a screen. Now I've never think about this screen.Before I had a Sun Sensor, but I have never replace this sensor after a rebuilding.