Currently Rule Machine does not support custom attributes, only custom commands. This is the same issue as @homeauto2112 using the forecast attribute. Right now the options are: custom app, webCoRE, multiple WU devices changing the temperature mapping, or writing a service manager that creates multiple devices for each attribute. Both those options will clutter up the device list. Custom app right now seems like the best option.
3 day forecast is included with the free API. Yesterday's weather is only included in their top paid API plan. You can check out the features included in each plan here.
One option for the data (though as @mattw mentioned youāll still need an app) is Darksky. They offer precip info and include historical as well in their API
I hacked it a bit and hijacked the humidity and illuminance attributes in @mattw device code. I set the humidity to the forecast high and the illuminance to the forecast low. This allowed me to create a couple of virtual switches and turn them on/off at 6:00 AM to drive my other rules.
As I'm in the UK, we tend to use Celsius rather than Fahrenheit
So... I made it switchable between the two
It's here in case anyone else finds it useful..
Guys
Iām thinking of writing a little custom app for this driver.
I would like the ability to use the data properly
E.g. If the wind is too high I want to turn on/off a switch which controls my conservatory skylight windows.
Or as @homeauto2112 turn on/off a switch at forecast high/low thresholds
Bump.
OK. I have this installed and Iām getting data.
What I would like to do is extract the āsolarradiationā value into a variable in webCoRE.
Does anyone know how I can extract the data?
Thanks.