troykelly / homeassistant-au-nsw-covid

A group of sensors for Home Assistant that tracks New South Wales COVID-19 Data
GNU General Public License v3.0
1 stars 0 forks source link

Fully vaccinated template... 16 and over? #31

Open daven1985 opened 3 years ago

daven1985 commented 3 years ago

I tried changing the population to the 16 and over amount of 6565651 based of (https://www.health.gov.au/sites/default/files/documents/2021/08/covid-19-vaccine-rollout-update-5-august-2021.pdf).

However instead of giving me the 21% or so it only goes up to 9%.

Thoughts?

troykelly commented 3 years ago

Using the below, and the new sensor.covid_nsw_doses in version 0.0.17 I get 31.51 which seems too high?

           {% set total_population = 6565651 %}
           {% set half_dose_total = (states('sensor.covid_nsw_doses') | int) / 2 %}
           {% set state_second_dose_vaccinated_total = half_dose_total / total_population %}
           {{ (state_second_dose_vaccinated_total * 100)|round(2, 'floor') }}
Screen Shot 2021-08-06 at 12 14 03 pm
daven1985 commented 3 years ago

Yea still too high. Official stats are it should still be around 21.x%.