question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not Able to Pull data for Auckland

See original GitHub issue

Hi, What a wonderful idea to automatically update it. Great concept. I think Documentation is lacking for new users. Probably would be ideal to have more step by step guides.

I have got the following config in YAML, took ages to generate it without errors. My sensors show up but they are blank, no information is getting pulled. Any help will be much appreciated.

`waste_collection_schedule: sources: - name: aucklandcouncil_govt_nz args: area_number: 12342560766 customize: - type: brown bin show: no - type: Rubbish - type: Recycling sensor:

next collection

  • platform: waste_collection_schedule name: next_collection

next yard waste collection

  • platform: waste_collection_schedule name: next_yard_collection types:
    • Rubbish

next garbage collection

  • platform: waste_collection_schedule name: next_garbage_collection types:
    • Recycling`

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kellyatkinsoncommented, Jul 6, 2022

Could I request that this very valuable info be transferred to https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/aucklandcouncil_govt_nz.md?

I’ve created a pull request which adds an additional example to the existing documentation on that Auckland Council-specific page as suggested. For formatting the sensors, that will be too complex for the Auckland Council-specific description page; it’s a general Home Assistant formatting step.

1reaction
kellyatkinsoncommented, Mar 27, 2022

I wish I’d seen this sooner @kiwilarka as I could have helped too. Here is what I am using myself:

In configuration.yaml:

waste_collection_schedule:
  sources:
    - name: aucklandcouncil_govt_nz
      args:
        area_number: 12343981102 
        # from https://www.aucklandcouncil.govt.nz/rubbish-recycling/rubbish-recycling-collections/Pages/rubbish-recycling-collection-days.aspx
      customize:
        - type: rubbish
          alias: Rubbish
          icon: mdi:trash-can
        - type: recycle
          alias: Recycling
          icon: mdi:recycle
      calendar_title: Auckland Council Rubbish & Recycling Collections
  day_switch_time: "17:00"

In my sensors file (I have sensors in a separate .yaml file, but you could have these in configuration.yaml under sensors:) They are all slight tweaks on the same data so I can display it in different formats for different purposes - the “this week” set is what I use the most.

- platform: waste_collection_schedule
  name: Next Rubbish Collection Date
  types:
    - Rubbish
  value_template: '{{value.date.strftime("%d %b")}}'

- platform: waste_collection_schedule
  name: Next Recycling Collection Date
  types:
    - Recycling
  value_template: '{{value.date.strftime("%d %b")}}'

- platform: waste_collection_schedule
  name: Next Rubbish Collection Days
  types:
    - Rubbish
  value_template: '{% if value.daysTo == 0 %}Today{% elif value.daysTo == 1 %}Tomorrow{% else %}in {{value.daysTo}} days{% endif %}'

- platform: waste_collection_schedule
  name: Next Recycling Collection Days
  types:
    - Recycling
  value_template: '{% if value.daysTo == 0 %}Today{% elif value.daysTo == 1 %}Tomorrow{% else %}in {{value.daysTo}} days{% endif %}'

- platform: waste_collection_schedule
  name: Next Rubbish Collection This Week
  types:
    - Rubbish
  value_template: '{% if value.daysTo == 0 %}Today{% elif value.daysTo == 1 %}Tomorrow{% elif value.daysTo <= 6 %}This {{value.date.strftime("%A")}}{% else %}in {{value.daysTo}} days{% endif %}'

- platform: waste_collection_schedule
  name: Next Recycling Collection This Week
  types:
    - Recycling
  value_template: '{% if value.daysTo == 0 %}Today{% elif value.daysTo == 1 %}Tomorrow{% elif value.daysTo <= 6 %}This {{value.date.strftime("%A")}}{% elif value.daysTo < 13 %}Next {{value.date.strftime("%A")}}{% else %}in {{value.daysTo}} days{% endif %}'

Glad you have it working now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

If you see No Service, Searching, or SOS on your iPhone or iPad
Go to Settings, then tap Cellular or Mobile Data. If you're using an iPad, you might see Settings > Cellular Data. If you're...
Read more >
Nz Function - Microsoft Support
This argument enables you to return a value other than zero or a zero-length string. Note: If you use the Nz function in...
Read more >
Individual and household survey information | Stats NZ
Our published statistics and research do not identify individuals, households, or businesses. We store data securely. If it's not needed, we destroy it....
Read more >
COVID-19: Current cases | Ministry of Health NZ
Information about confirmed and probable cases of COVID-19 in New Zealand. Last updated 1pm 19 December 2022. This data is usually updated weekly....
Read more >
International travel | Unite against COVID-19
Travellers and crew do not need proof of COVID-19 vaccination to enter New Zealand. Please check with your airline or cruise provider as ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found