Skip to content

andrewjswan/SwatchTime

Repository files navigation

SwatchTime for Home Assistant

hacs_badge GitHub Workflow Status GitHub GitHub release (latest SemVer including pre-releases) HA Installs StandWithUkraine

Create Swatch / Internet Time sensor for Home Assistant.

Swatch Time

Description

In version Home Assistant 2024.2.0, it was decided to remove the Swatch / Internet time (beat) sensor from the Time & Date integration, a message appeared in the logs:

The `beat` Time & Date sensor is being removed
This stops working in version 2024.7.0. Please address before upgrading.
Please remove the `beat` key from the `display_options` for the time_date entry in your configuration.yaml file and restart Home Assistant to fix this issue.

This custom integration returns this sensor to Home Assistant, the functionality remains the same.

Installation

You could either install with HACS (recommended) or manual.

Method 1 (recommended):

hacs_default

This integration is part of the default HACS repository. Just click Explore and add repository and search for SwatchTime to install, or use this link to go directly there:

Add to HACS via My Home Assistant

Method 2:

hacs_custom

  1. Visit HACSIntegrations... (3 dots - upper top corner) → Custom repositories
  2. Click Add
  3. Paste andrewjswan/SwatchTime into the URL field
  4. Chose Integration as a Category
  5. SwatchTime will appear in the list of available integrations. Install it normally.

Method 3:

manual

  1. Manually copy swatch_time folder from latest release to /config/custom_components folder.
  2. Restart Home Assistant

Configuration

Method 1 - GUI:

Add integration via Home Assistant UI.

Method 2 - YAML:

Add integration via configuration.yaml.

swatch_time: