I suspect that Smarttiles is querying the driverā¦
The sendevents are needed for WS to āsubscribeā to the events (and therefore act upon them)
Do you have duplicate entries on the ādeviceā page now?
Andy
I suspect that Smarttiles is querying the driverā¦
The sendevents are needed for WS to āsubscribeā to the events (and therefore act upon them)
Do you have duplicate entries on the ādeviceā page now?
Andy
That would explain it. I learn something new every day. Here's a screen shot. And, point-of-fact, the SmartTiles are reading the lower case temperature which isn't accurate.
Back to the drawing board.
As you donāt have the sendEvent statements for the lower case info, it wonāt update correctly (if at all)
What you are seeing is probably legacy data
If you donāt mind the duplicate entries then I can probably get this to work for SmartTiles as well as WS
Itās 1am in the UK now so Iāll have a look tomorrow for you.
Andy
Get some sleep! This is a fantastic app and Iām so happy you wrote it. I think there are really only 4 items that need a bit of nudging:
weather
temperature
humidity
feelslike
I need to step off and get some food and grog. Iāll take a swing at it a bit later (Iām -8 hours from you). I was just focusing on the driver. Now that Iāve taken a bit of a look at the child-class code, it doesnāt seem insurmountable.
I am working on the driver and app anyway tomorrow
Iām going to try to get the driver to compile a sort of āreportā so I can get WS to send via SMS or pushover (until we have TTS then Iāll get Sonos to speak it)
I canāt use the built in report (fcctext or fcctext_metric) because I prefer to use a mixture of imperial and metric
In WS I plan to trigger the report with a virtual momentary switch so I can get it any time.
Andy
@homeauto2112
I had a 'play' this morning...
I have added the following lowercase attributes and events
See how this works for you
WeatherUndergroundCustomLowercase.groovy
https://github.com/CobraVmax/Hubitat/tree/master/Drivers/Weather
If there is anything still missing, please let me know (and if it works OK or not)
Andy
Ok
New version released on GitHub (link above)
The driver now creates a 'summary report' of the data collected.
You can select how to format it (imperial/metric etc)
I'm intending to use this with a new release of Weather Switch to SMS or use PushOver to send this report
For this version I have included the lowercase attributes
Let me know what you think and how you get on.
Andy
Good Afternoon!!
I loaded the new driver (with lowercase in the title) and the WS app is working find. Here's the view of the summary though I have to force a poll to get it on the page:
Here is the weather tile:
I added in an - attribute "city", "string" to pull the city:
I'm getting called into work early so I don't have time to hunt down by the percentPrecip nor the humidity are showing up. I'll give it a look over when I get back though.
Everything is looking pretty solid so far!
If you are using station id: KCALOSAN362
Then I canāt see that it reports percentPrecip
I loaded this station into my driver and did a search for it but could not find it
Humidity is being reported from the capability so that should be the same as previuosly
Andy
I think we are both dancing around the same head of a pin. In that SmartTile, the info use to be there. This whole experience now leads me to question whether it was accurate which links to your point about my station. The perecentPrecip is a forecast and wouldnāt be provided by the weather station. So how it use to get it from the default or older driver I was using (which I lost in all of this shuffle), is still a mystery to me.
As far as Iām concerned your app is spot on and works for me. The SmartTile is more of a distraction with an app that isnāt being updated so itās more of a curiosity to me. Iām sure thereās an easy answer to it.
Iāve added the ācityā attribute and sendEvent so that should work ok now.
Iāve also marked a couple of things to refresh when polled - they were not refreshing correctly before
Latest Driver version: 1.8.0
Andy
Okā¦ I think I got it!
we were looking for the wrong data name - Itās not percentPrecip but āpopā (Probability of Precipitation)
Also I found a bug with the summary so it should show correctly now without having to poll
Have a look at version 1.9.0 on GitHub
This now has an attribute & sendEvent for āpercentPrecipā as requested
I have also uploaded a new version of the app which can use āChance Of Rainā as a trigger
Andy
Good afternoon!
Just got up and will try the drive as soon as the coffee is brewed. The āpercentPrecipā came directly from the code in SmartTiles. At this point (without having tried the 1.9.0 driver), the WS app works and most of the SmartTiles code works as well. For some odd reason, the humidity isnāt reporting correctly and I didnāt have any time yesterday to look into it.
Coffee is done and trying the new driver now.
Okay, the driver looks good. App is responding as it should. I forgot to post this earlier, but I receive the following error when I select the "poll"
This error seems to occur whether the auto poll is on or off.
BTW: Iām really enjoying the illuminance!
I started to play with the HU dashboard and here's a screenshot. Not sure why the humidity is showing a double % sign.
For Cobra's driver are you using the attributes option when setting up the tile? I was first just using the Humidity and was getting the double % like yours is showing. I also noticed that the value was wrong. Started digging around and found the attribute option and all is good now.
Hope this helps.
Thatās a nice find!!
Iāve noticed the values were wrong too, but Iām also seeing that it may be due to the differing refresh times. If there are two ādevicesā with refresh commands timers and cacheing, there will be some differences. If I refresh both the WU and the dashboard, then I get a correct entry. Now sometimes I have to refresh a few times to sync things.
Guys
Iāve 'tweakedā the driver to try and get rid of the double percentage
Not sure if it will work
If it doesnāt please let me know and Iāll look again
Uploaded new files to github (same version number)
Andy