The state of Weather, PWS, and SmartThings? (Jan 2019)

I have been unable to get ST happy with my Github repo, but I modified the ST Smart Weather Station Device Handler:
https://raw.githubusercontent.com/Timeteo/timeteo-smartthings/master/devicetypes/timeteo/smart-weather-tile.src/smart-weather-tile.groovy

ST has updated, but not made live, code changes to allow PWS to work in the Smart Weather Station. Their current implementation is either zip code OR PWS. Unfortunately the PWS API does not return all the same data attributes the zip code does. So I basically modified the handler so that you are required to add both a zip and PWS ID if you are using PWS. It will pull all attributes from zip, and then will overwrite those with PWS attributes for the attributes the PWS API supports.
the following are coming from PWS.
Temp
Feels Like
Humidity
Wind
Wind Vector
Location (PWS name)
UV Index
Alerts

The following are coming from zip:
uvDescription
localSunrise
localSunset
illuminance
percentPrecip
forecastIcon
forecastToday
forecastTonight
forecastTomorrow

This is working for me in ST and ActionTiles… Until ST can restore the same functionality (if they can with the new APIs), I will be using this Device Handler.

4 Likes