Skip to content

renemarc/home-assistant-doomsday-clock

Repository files navigation

๐Ÿ•š
Doomsday Clock sensor
๐Ÿก a Home Assistant custom component โ€ฆfor your fallout shelter? ๐Ÿ˜ฑ

GitHub Release Commits to be deployed Sensor Home Assistant Community Store Custom Updater Community Forum Maintainer All Contributors PRs Welcome License Tweet

Add support for the Doomsday Clock world threat assessment index from the Bulletin of the Atomic Scientists inside the Home Assistant open-source home automation platform.

Be sure to โญ๏ธ this repo if you find it useful! ๐Ÿ˜ƒ

Sensor state card Sensor details

Sensor state card and details popup.

๐Ÿ”

Description ๐Ÿ•š

The Doomsday Clock helps monitor how close humanity is to a man-made global catastrophe, its own destruction if you will, either through nuclear war or climate change. Useful in case egocentric psychopaths keep on playing Russian roulette with humanity's future. Makes a great addition to your fallout shelter's Home Assistant build! ๐Ÿ˜ฑ

The clock doesn't change often, at most once a year, and offers no API. Since we rely on web scraping of TheBulletin.org the component has a goodwill throttle of 6 hours (21,600 seconds), but it would be best to set the scan interval for the sensor to 1 day (86,400 seconds) or more.

๐Ÿ”

Usage ๐Ÿ’ป Home Assistant Community Store Custom Updater

To enable the Doomsday Clock sensor in your installation:

  1. Install the component using one of these methods:
    • Using HACS (Home Assistant Community Store):
      Add the following URL as a custom integration repository through the Community Store interface.
      https://github.com/renemarc/home-assistant-doomsday-clock
    • Using Custom Updater (now deprecated):
      Add the following to your configuration.yaml file.
      custom_updater:
        component_urls:
          - https://raw.githubusercontent.com/renemarc/home-assistant-doomsday-clock/master/tracker.json
    • Manually:
      Copy the folder /custom_components/doomsday_clock/ to your configuration's /custom_components/ directory (create it if needed).
  2. Add the sensor to your configuration.yaml file (see below โฌ‡๏ธ).
  3. Restart Home Assistant.
  4. Despair. ๐Ÿ˜ญ
  5. Tell your government representatives that you want to live in a healthy, peaceful world free from nuclear threats and fossil fuel pollution.
    ๐Ÿ•Š๐ŸŒฑ
    It's easy and fast, just find and tweet them using these free online lists:

๐Ÿ”

Configuration โš™

# Example configuration.yaml entry
sensor:
  - platform: doomsday_clock
    scan_interval: 86400
  • icon (string) (optional)
    Material Design Icon that illustrates the sensor. (default = mdi:nuke)
  • name (string) (optional)
    Custom name of sensor. (default = Doomsday Clock)
  • scan_interval (number) (optional)
    Number of seconds between polls. (minimum = 21600 seconds [6 hours])
  • unit_of_measurement (string) (optional)
    Custom unit of measurement for the value. (default = min)
  • value_template (template) (optional)
    Custom template to manipulate the state of the sensor.

๐Ÿ”

Contributors โœจ All Contributors Community Forum

Renรฉ-Marc Simard
Renรฉ-Marc Simard

๐Ÿ’ป ๐Ÿ“–
jamiepryer
jamiepryer

๐Ÿ›
John Dyer
John Dyer

๐Ÿค”

This project follows the all-contributors specification (emoji key available here). Found a bug, want to suggest an idea or share some improvements? Contributions of any kind are welcome! ๐Ÿ˜ƒ

๐Ÿ”

Thanks ๐Ÿ’•

๐Ÿ”

Don't forget to โญ๏ธ this repo! ๐Ÿ˜ƒ