Skip to content

Use HA as the time source#1

Open
stalar wants to merge 1 commit into
johannyren:mainfrom
stalar:use-ha-time
Open

Use HA as the time source#1
stalar wants to merge 1 commit into
johannyren:mainfrom
stalar:use-ha-time

Conversation

@stalar

@stalar stalar commented Nov 26, 2022

Copy link
Copy Markdown

Thanks a lot for fun and practical project!

Here is a change that uses the time on Home Assistant (instead of NTP). Hopefully HA is in sync and also handles daylight savings time.

To enable, you need to add this to configuration.yaml

sensor:
  - platform: time_date
    display_options:
      - "time"

The name of the sensor can be configured in settings.h by changing SENSOR_TIME.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant