Code Monkey home page Code Monkey logo

homeassistant-waste_management's Introduction

homeassistant-waste_management

hacs_badge Buy Me A Coffee

Waste Management integration for Home Assistant

Pull your next pickup date for your trash and recycle from the Waste Managemet API. You will need an account to wm.com for this to work.

homeassistant-waste_management's People

Contributors

dcmeglio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

homeassistant-waste_management's Issues

RuntimeWarning: coroutine 'WasteManagementSensorEntity.async_update' was never awaited

Sensor stopped updating, I have tried removing and re-adding but it has not made any change. The sensor is unavailable.

I turned on debug logging but it didnt show to much more...

2024-01-05 17:50:37.564 INFO (MainThread) [homeassistant.components.sensor] Setting up waste_collection_schedule.sensor
2024-01-05 17:50:37.576 INFO (MainThread) [homeassistant.components.sensor] Setting up waste_collection_schedule.sensor
2024-01-05 17:50:37.603 INFO (MainThread) [homeassistant.components.sensor] Setting up waste_collection_schedule.sensor
2024-01-05 17:50:37.624 INFO (MainThread) [homeassistant.components.calendar] Setting up waste_collection_schedule.calendar
2024-01-05 17:50:51.686 INFO (MainThread) [homeassistant.setup] Setting up waste_management
2024-01-05 17:50:51.686 INFO (MainThread) [homeassistant.setup] Setup of domain waste_management took 0.0 seconds
2024-01-05 17:51:10.009 INFO (MainThread) [homeassistant.components.sensor] Setting up waste_management.sensor
2024-01-05 17:51:10.012 INFO (MainThread) [homeassistant.components.sensor] Setting up waste_management.sensor
2024-01-05 17:51:20.215 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform waste_management is taking over 10 seconds.
2024-01-05 17:51:20.215 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform waste_management is taking over 10 seconds.
2024-01-05 17:51:30.410 ERROR (MainThread) [homeassistant.components.sensor] Platform waste_management does not generate unique IDs. ID 000264663993008_2 already exists - ignoring sensor.waste_management_recycle_pickup_day
2024-01-05 17:51:31.863 ERROR (MainThread) [homeassistant.components.sensor] Platform waste_management does not generate unique IDs. ID 000264663993008_1 already exists - ignoring sensor.waste_management_trash_pickup_day
2024-01-05 17:51:51.382 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({% set t = now() %} {% set midnight = today_at() %} {% set event = states('sensor.waste_management_recycle_pickup_day') | as_datetime | as_local %} {% set delta = event - midnight %} {% if delta.days == 0 %}
2024-01-05 17:51:51.386 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('AttributeError: 'NoneType' object has no attribute 'tzinfo'') while processing template 'Template<template=({% set t = now() %} {% set midnight = today_at() %} {% set event = states('sensor.waste_management_recycle_pickup_day') | as_datetime | as_local %} {% set delta = event - midnight %} {% if delta.days == 0 %}
2024-01-05 18:50:07.366 INFO (MainThread) [homeassistant.components.sensor] Setting up waste_management.sensor
2024-01-05 18:50:55.371 INFO (MainThread) [homeassistant.components.sensor] Setting up waste_management.sensor
2024-01-05 18:51:05.371 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform waste_management is taking over 10 seconds.
2024-01-05 18:53:13.605 INFO (MainThread) [homeassistant.components.sensor] Setting up waste_management.sensor
2024-01-05 18:54:35.839 INFO (MainThread) [homeassistant.components.sensor] Setting up waste_management.sensor
2024-01-05 18:54:53.419 INFO (MainThread) [homeassistant.components.sensor] Setting up waste_management.sensor
2024-01-05 18:58:03.944 INFO (MainThread) [homeassistant.components.sensor] Setting up waste_management.sensor
2024-01-05 18:58:13.061 ERROR (MainThread) [homeassistant.components.sensor] Platform waste_management does not generate unique IDs. ID 000264663993008_2 already exists - ignoring sensor.96_gallon_cart_service_recycle_materials
2024-01-05 18:58:13.339 ERROR (MainThread) [homeassistant.components.sensor] Platform waste_management does not generate unique IDs. ID 000264663993008_1 already exists - ignoring sensor.96_gallon_toter
2024-01-05 19:01:00.160 WARNING (MainThread) [py.warnings] /config/custom_components/waste_management/sensor.py:72: RuntimeWarning: coroutine 'WasteManagementSensorEntity.async_update' was never awaited
2024-01-05 19:01:17.053 WARNING (MainThread) [py.warnings] /config/custom_components/waste_management/sensor.py:72: RuntimeWarning: coroutine 'WasteManagementSensorEntity.async_update' was never awaited
2024-01-05 19:01:47.052 WARNING (MainThread) [py.warnings] /config/custom_components/waste_management/sensor.py:72: RuntimeWarning: coroutine 'WasteManagementSensorEntity.async_update' was never awaited

Home assistant 2024.01

Holiday Delay Not Accounted For

I have a day delay because of Memorial Day, but it isn't showing up. Logging into my WM account, it still shows my normal pickup day but has a secondary info header of 'Holiday Schedule' that only lists Memorial Day and says it will be delayed by a day as a result. Not sure if this can be picked up somehow in the API, but I see this as primary use of this integration (dynamically adjusting for delays).

Reset for new pickup date?

When does WM change from the previous (today's) backup to the next one?
My bins have been emptied several hours ago and I was hoping to use the change to next week's date as indication that they've been emptied.

I assume that ideally, that would come across on the API like it does on the app, but I understand that this is not in scope of this integration (yet), hence my interest in looking for the 'change of pickup date' as the workaround.

image

Add a config example to docs

I'm assuming I need to add a config to my yaml similar to the following?

waste_management:
  username: xxx
  password: xxx

Calendar?

I've installed the integration, and have two sensors ( one for each trash service) but I'm not seeing a calendar entity. Is there a way to integrate this into the calendar?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.