renemarc / home-assistant-doomsday-clock

🕚 Display the Doomsday Clock inside your Home Assistant's …fallout shelter? 😱
https://community.home-assistant.io/t/doomsday-clock-custom-sensor/40758
Apache License 2.0
8 stars 1 forks source link

Sensor reports unknown value #9

Open renemarc opened 4 years ago

renemarc commented 4 years ago

Description of the bug

Lately, this sensor component has been failing at parsing the Doomsday Clock sentence as it is now showcased in seconds to midnight instead of minutes.

This component should replace its logic with to the new Countdoom Python package available on PyPI that provides better regex extraction and handles seconds as well.

See:

JamieP83 commented 4 years ago

my issue shows as following in the logs

2020-07-01 00:26:36 ERROR (SyncWorker_9) [custom_components.doomsday_clock.sensor] Could not find any regex pattern in sentence: IT IS 100 SECONDS TO MIDNIGHT