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:
@josh did this change get implemented in the latest hubitat firmware the other day? I havenât updated yet because of some xiaomi driver issues that need to get ironed out first.
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â)
Once youâve updated your Hubitat firmware, youâll need to reload a SharpTools page at least once so the system can determine that you have the new Hubitat code and enable the dynamic subscriptions.
After that, each time you visit a dashboard, it will check to make sure all required subscriptions are setup.
You can verify which version is being reported to SharpTools by following these steps:
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
Cloudy (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.