// Added by JHOKE to collect more info for Hubitat Dashboards
attribute "icon_url", "string"
attribute "icon", "string"
attribute "wind_dir", "string"
and then
// Added by JHOKE for other needs - may add additional as I dig in more
sendEvent(name: "icon_url", value: resp.data.current_observation.icon_url)
sendEvent(name: "icon", value: resp.data.current_observation.icon)
sendEvent(name: "wind_dir", value: resp.data.current_observation.wind_dir)
I am going to play around with tryign to get a tile to display an icon based on these values ā¦
I will say when it comes to illuminance, i find that itās a little buggy compared to Smarttthings. Not buggy as in it does not work, but maybe itās just too accurate. Smartthings used some logic to create a āfakeā illuminance based on weather, time of day and a couple other things (i Believe). I actually did not even know that until i moved over to HE, and wanted to add illiuminance into my routines.
It looks like Solar Radiation is just too accurate. As in sometimes when itās light enough outside (1st couple of hours in the morning, or near the end of the evening), my routines based on illiminace fire when with ST they did not.
Itās not horrible, and I am glad to have it as an option, it will just require more tweaking to figure it out.
At the moment it just turns on/off a switch in response to a weather item and doesn't have my usual time/day/presence restrictions but I'll add them soon.
I'll look at adding additional actions later if required.
Thatās not a bad idea. I think thatās beyond my programing abilities at this point (note the word āhackā)
I set the poll on the custom driver to 1 hour so to not piss off the WU gods. I also forgot that I have to setup a separate RM Poll for the default WU driver.
You might want to host it on github or similar so others,can use it ;
My developement of this driver is related to my Weather Switch app,so probably wonāt be much good for others (donāt really have time to maintain both)
I believe @Cobraās changes stops the logging data from being shown (āAdded the ability to disable the majority of the loggingā) . Is that what you are referring to? If you look at the driver āStatesā it does show the observation time and mine is updating at the requested interval.
With the old code, polling was done every 5 minutes and I could see Lux, SolarRadiation, Humidity etc. updating every 5 minutes.
When I loaded your code there was no polling every 5 minutes.
I filled in all the configurable fields. Polling was already populated with 5 so I left it alone.
EDIT: Well I re-installed and now its working. Not sure what happened but as long as its working, thatās all that matters.
I like the extra features by the way. Nice one.
Made a minor update to my version of the driver. For the three capabilities I added, I had to change to lower-case the attribute title (they were all in Title-Case). I added those capabilities so I could use them in HousePanel, but HousePanel did not pull in the values until I changed them to lower-case.
Just an update on the problem I saw yesterday when there was no polling.
It looks like it occasionally does not poll. It misses the 5 minute poll.
As you can see from the events for the device below, there was no poll at 1:55pm.
Guys
I've posted a new driver which includes all the correct attributes for use with dashboards if you want to try that
I have also added a 'Weather Summary' which I hope to use later in WS