Is the mode (daily/hourly) implemented now? In the official doc, the is the configation variable mode listed.
But when I’m trying it in my configuration, only the hourly forecast appears.
To anyone who stumbles on this thread, the “mode” option does NOT work, or you will get errors like this:
Invalid config for [sensor.darksky]: [mode] is an invalid option for [sensor.darksky]. Check: sensor.darksky->mode. (See ?, line ?). Please check the docs at Removed integration - Home Assistant
It’s no wonder so many people are confused. Threads like this continue to be fully accessible even though it’s clearly inaccurate and outdated.
To anyone who stumbles on this misleading post the “mode” option works EXACTLY as documented. If you don’t read / understand the documents you will get errors.
I think (not sure) because the platform is quick & simple to configure, but the sensor is more customisable and can give you history of separate values.
For me, I run both. I use weather to populate my weather card, but I use a few items from the sensor such as the cloud_cover sensor. It returns cloud_cover as a numeric value that I use in a custom low light sensor that is in turn used with sun elevation to automatically determine if lights should be turned on when motion is detected.
This is true. I only wanted the cloud_cover as a numeric percentage for automations, so that’s all I download from the sensor and only update every 15 minutes. I use the defaults for darksky weather. I average 560 API calls per day, well below the 1000 free ceiling.
In my sensor.yaml:
- platform: darksky
api_key: !secret darksky_api_key
monitored_conditions:
- cloud_cover
scan_interval:
# At least one of these must be specified:
days: 0
hours: 0
minutes: 15
seconds: 0