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.

The sensor. is showing wrong values if there is no any schedule in future

See original GitHub issue

Before you submit a new bug report, please check that

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.

image

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:open
  • Created 10 months ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bruxy70commented, Nov 21, 2022

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.

0reactions
github-actions[bot]commented, Dec 22, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

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