I have the APIXU weather tile device from bengali on my sharptools dashboard. It worked great for a little while but it is not grabbing all of the correct values from the driver. I am installing the tile as a Thing and selecting the weather device i created with his driver, all of the values are there but they do not match up with the values showing in hubitat when i do a POLL or REFRESH.
IMPORTANT: For anyone who has found this post through search, please note that the Hubitat community seems to be moving away from APIXU after they rebranded to ‘Weatherstack’ and reduced their free tier.
Thanks for posting, Jason, and sorry that things aren’t working as expected. The short answer is we are actively working on updating the SharpTools-Hubitat integration based on some APIs that were recently added to Hubitat which should get this working.
Event subscriptions for SharpTools.io in Hubitat are currently setup based on core capabilities that the device reports. Unfortunately, there isn’t a standard set of capabilities for some of the attributes commonly used by weather devices, so those attributes only get updated during the initial device authorization/synchronization process.
That means that standard attributes like temperature and humidity will update as expected, but attributes like forecastIcon, city, feelsLike, percentPrecip and a number of others don’t update.
I should note that it will require an update to the SharpTools ‘app’ on Hubitat which gets released as part of the Hubitat firmware upgrade. I have an initial version working on my development hub and the tests so far have been good. There’s still additional updates and testing that needs to be done before I can release the app update to the Hubitat team. At that point it will become part of the Hubitat update cycle.
Just wanted to be upfront about the interdependencies as that means it may take a bit longer to get it fully released!
That being said, I’ve got the initial stuff done to get weather updating:
It’s included in the Hubitat 2.0.6 beta firmware. The Hubitat team usually keeps a pretty quick pace with their release schedule, so I would expect it to be available for everyone in the next few weeks.
It might be “Always Sunny in Philadelphia” but it’s certainly not always Sunny here in New York despite what my Weather Tile says. It reads the temperature, wind speed, precip, etc correctly. However, it always displays the currently weather as “Sunny” and shows the Sun Icon. For instance today, the APIXU website states the current conditions are: Light Snow despite what my screen shows below:
(The device parameters in Hubitat show the correct conditions, for whatever reason Sharptools is displaying “Sunny”)
What is being reported on your APIXU weather device Current States for forecastIcon?
Also, have you tried changing the location used in the preferences of your driver and saving to see if the data updates? For example, I changed to Paris and I’m seeing a forecastIcon = sunny with weather = clear.
Then if I change to Portland, I’m seeing forecastIcon = snow and weather = Light snow:
SharpTools uses the forecastIcon as the icon. You can see the full list of attributes the weather tile tries to display:
Looking at Bangali’s latest code, it looks like localSunrise and localSunset don’t exist anymore (they are now named with underscores), so if you’ve updated to a newer driver those attributes won’t update as expected. I had created a brand new weather device with the latest Bangali code for testing hence why my tiles above aren’t showing the sunrise/sunset at all.
The rest of the attributes appear to be available and updating as expected from my tests.
Thanks for the screenshots. The forecastIcon, feelsLike, city, and humidity attributes which are visible in the screenshot appear to be reflected properly on the tile. Is everything working as expected now or if not, what is expected?
Sorry I should have been a little more clear, this was taken at 10pm at night, I was expecting to see the cloud icon as shownin the forecasticon field and not a partly sunny icon as shown on the dashboard icon.
The forecastIcon is expected to map to Weather Underground compatible icon keys which also have ‘night’ variants.
For example, there’s a cloudy and a nt_cloudy
Night Cloudy (nt_cloudy):
Looking at the attributes that his APIXU driver exposes, it looks like there is an is_day parameter, so I don’t think it would be hard to append a “nt_” before the forecastIcon in the event that it’s not day time. I’ll make the suggestion and see what he thinks.