Create Swatch / Internet Time sensor for Home Assistant.
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.
You could either install with HACS (recommended) or manual.
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:
- Visit HACS → Integrations → ... (3 dots - upper top corner) → Custom repositories
- Click Add
- Paste
andrewjswan/SwatchTimeinto the URL field - Chose
Integrationas a Category - SwatchTime will appear in the list of available integrations. Install it normally.
- Manually copy
swatch_timefolder from latest release to/config/custom_componentsfolder. - Restart Home Assistant
Add integration via Home Assistant UI.
Add integration via configuration.yaml.
swatch_time: