The sensor. is showing wrong values if there is no any schedule in future
See original GitHub issueBefore you submit a new bug report, please check that
- I have read frequently asked questions and limitations
- I’m running the newest version of Garbage Collection, or the next pre-release.
- I have enabled debug logging for my installation.
Describe the bug
Sensor is showing that next schedule will be in 54 days. But there is no future schedule (“Next date”) for this sensor.
Configuration
alias: Include dates - Nebezpečný odpad
description: ""
use_blueprint:
path: bruxy70/include.yaml
input:
garbage_collection_entity: sensor.nebezpecny_odpad
include: |-
2022-02-28
2022-08-24
Sensor is configured as "blank" with manual update.
Debug logs
2022-11-10 10:49:09.061 DEBUG (MainThread) [custom_components.garbage_collection] Setting Nebezpečný odpad (blank) from ConfigFlow
2022-11-10 10:49:19.696 DEBUG (MainThread) [custom_components.garbage_collection.sensor] (Nebezpečný odpad) Calling update
2022-11-10 10:49:19.696 DEBUG (MainThread) [custom_components.garbage_collection.sensor] (Nebezpečný odpad) Dates loaded, firing a garbage_collection_loaded event
2022-11-10 10:49:19.965 DEBUG (MainThread) [custom_components.garbage_collection] called add_date 2022-02-28 from sensor.nebezpecny_odpad
2022-11-10 10:49:20.120 DEBUG (MainThread) [custom_components.garbage_collection] called add_date 2022-08-24 from sensor.nebezpecny_odpad
2022-11-10 10:49:20.171 DEBUG (MainThread) [custom_components.garbage_collection] called update_state for sensor.nebezpecny_odpad
2022-11-10 10:49:20.172 DEBUG (MainThread) [custom_components.garbage_collection.sensor] (Nebezpečný odpad) Looking for next collection
Issue Analytics
- State:
- Created 10 months ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
How To Avoid The Five Most Common Sensor Malfunctions
1. Incorrect Readings Due to Improper Mounting · 2. Calibration Drift in Pressure Sensors · 3. Printed Circuit Board (PCB) Issues · 4....
Read more >Symptoms of a Bad or Failing Oil Level Sensor
Situations like that can indicate a faulty oil level sensor. The wrong message is being sent to the ECU triggering the warning light,...
Read more >Disable learning for the temperature schedule
No temperature schedule: If you don't set up a schedule after clearing it, your thermostat will stay on whatever temperature you set it...
Read more >2022.12: It does matter!
2022 has been a fantastic year for the Home Assistant project. ... And it is not just a calendar with dates and descriptions…...
Read more >COMMON ERRORS IN KRONOS AND HOW TO FIX THEM
Some employees think it is okay to record the time as long as they don't approve it ... For example, if a non-exempt...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the find. I did not really expect this condition, but you are right that with the blank and no dates added it could happen. So I added the code to set the state and next date to None. Check the latest release if it helps. If yes, please close the ticket.
This issue has been automatically marked as stale because it has not had any activity in last 30 days. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.