Looks like the Smart Weather app isn’t updating again.
Same with RBoy’s controller app.
Supposedly, it uses events as well as schedule, but mine keep showing same temp for long periods when the temp has definitely changed by a lot.
I think it’s all related to ST scheduler not working.
I still haven’t tried the event-driven method, but I guess I will soon…
SmartTiles calls the Weather “refresh()
” method ever full poll cycle (I think it defaults to 30 minutes).
I add my weather station to the pollster to poll every half hour as well… seems to work better.
Well, I reset my ST hub and it still doesn’t seem to be updating, so… yeah.
Make sure you’re using the code version 1.4.
It uses sunrise and sunset events to kick start timer.
Also reinitialize the SmartApp once (open and hit done), I noticed after the last platform update apps using sunrise and sunset need to resubscribe because the events were not being sent.
Oops. Somehow, even though I’m pretty sure I took it right from the same place, I had 1.3
So, I’m going to upgrade it now. Thanks.
So, are sunrise and sunset the only events you’re using in your Event-Driven method of refreshing the weather tile app?
EDIT: OK, I updated it in the IDE.
When I opened the app and clicked Done, it first gave me an error (red pop-down), but then immediately gave me the green pop-down saying it’s been updated.
I did Done again, and second time, just the green good msg.
Now, it went by too fast to read. So, I have no idea what the red pop-down error was about, but it’s not happening now. So, I guess I’ll just assume I’m good to go.
Still interested in the whole event-driven thing though.
Too bad this never got in the released version!
Daniel, your “Manual Weather Refresh” app worked perfectly for me. I’m using a motion sensor to trigger updates to the weather tile…and using LUX values to control the Auto Dimmer app. Thanks for posting your code: Smart Weather station tile app
Dan I like you logic for refreshing the weather tile. It works perfectly with the SmartWeather tile device. I was looking to add it to a modified weather device that was made, but it is not selectable from the list of weather device.
[Release] Weather Station Tile 2.0
Is there something simple I’m missing to have it get found?
Funny you should mention that :). I recently updated the app to (also) work with the BloomSky device type.
If you replace the input section{} with the code below, it will probably allow your device type to be selected:
section {
input "devices", "capability.temperatureMeasurement", title: "When these devices sends events", multiple: true, required: true
input "weather", "capability.relativeHumidityMeasurement", title: "Update this weather device:", multiple: true, reguired: true
}
This will allow any device that has a relative humidity measurement capability to be selected, so you could potentially also select a humidity sensor. Let me know if you still have issues. I’ll add my code to github some time to make updates easier.
That was it. It worked perfectly. Thanks.
Sgnihttrams, Daniel’s app allows you to select the SmartThings motion sensor to trigger an update. I set it up so that a motion event would trigger a weather tile update. Mike Maxwell’s Auto Dimmer app manages dimming all of my lights (4 levels) based on the level of light (LUX) outside. LUX values are coming from the Weather Tile, which is detected as a LUX meter. I tested power levels of dimmed Zigbee lights and found that they use a lot less power, and run cooler when dimmed where appropriate.
I also had success using Rule Machine to trigger a “refresh” (custom command) of the Smart Weather Tile based on the same criteria…namely a motion detection event on one of the SmartThings motion sensors used to control lighting.
Comparing both, the simple Rule Machine refresh has been 100% reliable, and the LUX values show constant changes during sunrise / sunset or partly cloudy days. It’s possible I was using Daniel’s app during ST issues, but I saw periods where the LUX values were not updating as expected. This is a copy/paste of my post on the subject in Mike’s Auto DImmer Thread:
Some information for those looking to pull LUX from the free Smart Weather Tile for this app:
A. Install the Smart Weather Tile from the web IDE as a device for
yourself. There is a template provided. You just need to define a zip
code in the device settings
I’m not in the US, so a zip code does not work for me. Fortunately
you can leave it blank and your hub location will be used. Alternately
you can enter in a weather underground station ID (pws:STATIONID). If
you look on the weather underground web site for your area, you can find
stations near you. Look in the web URL for the pws:STATIONID and enter
that into the device settings for the Smart Weather Tile (instead of a
zip code) on your smartphone. I tried a few until I found one with more
accurate LUX updates.
B. The weather tile doesn’t update itself, and the programs I tried
to fix it don’t work as they seem to have timer issues. This one, using
events to trigger updates, worked perfectly: "Manual Weather Refresh"
written by Daniel Vorster: Smart Weather station tile app
I
copied the code and published the app to myself using the web ide. This
app updates the weather tile perfectly driven off events, rather than
timers. Being that I have lights activated by motion sensors, I used
one of those sensor events to trigger a Weather Tile update.
Loving the auto dimmer
You can change the Initialize function to subscribe to motion instead of, or additionally to, the current temperature event:
def initialize() {
subscribe(devices, "temperature", appHandler)
subscribe(devices, "motion", appHandler)
weather.refresh()
}
ah…this is why the app didn’t work for me. It was letting me add the motion sensor, and I was assuming it was triggering on motion…but it was waiting for temp changes, yes? In that case, I was missing that code change.
Given that I am using the Weather Tile only for LUX, it makes sense to trigger updates on motion rather than temp, particularly at dawn and dusk where LUX changes pretty steadily. The same motion sensors that control the main floor lights are triggering updates. Thanks for posting the tweak Dan.
Excuse my ignorance as what I am about to ask may not even be a function of the this device but Is there any way to give this device handler the capability of DewPoint measurement the same as Temperature and humidity? I know Dew point is a formula of Temp and RH but it would be nice just to pull the number in the same way temperature is
This would be valuable for use in HVAC applications.
Hey all,
Not a programmer so let’s get that out there from the jump
My thoughts are to use Lux to turn lights on rather than Sunset… As it drifts between cloudy and sunny at this time of year in Southern California, my lights are either coming on early or way to late.
I have this tile set to refresh every 15 mins using a Piston from CoRE. Can I use the lux value to key off of to turn on lights?
What am I not considering, or need to do differently?
Thanks in advance
Rick
I have been using Lux for evening lighting since last year and it works great. I gave up on using sunrise/sunset back when it barely worked. Not sure if it ever was fixed. BTW, I am using the Smart Weather station tile connected to a Davis Vantage Pro in the back yard but any station nearby will work. Not all stations report Lux so you will have to look at each one near your area.
Can anyone confirm if the obs.precip_1hr_metric**
is working via this and the getWeatherFeature()
API? Trying to manually add precipitation to my Google Sheets log and I am able to add temperature via obs.temp_f
, but whenever I reference obs.precip_1hr_metric
, nothing is logged to Sheet. If I look at the wunderground JSON response for my city, it has the data I want (currently 0mm though).