Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DS1307 real time clock component #910

Merged
merged 6 commits into from
Jan 8, 2021
Merged

Conversation

badbadc0ffee
Copy link
Contributor

Description:

initial brief documentation for DS1307 RTC component

Pull request in esphome with YAML changes (if applicable): esphome/esphome#1441

Checklist:

  • Branch: next is for changes and new documentation that will go public with the next ESPHome release. Fixes, changes and adjustments for the current release should be created against current.

@badbadc0ffee badbadc0ffee changed the title add DS1307 documentation DS1307 real time clock component Jan 3, 2021
# in case you need to specify the DS1307 id
- ds1307.read:
id: ds1307_time

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I expected to read more, like how to use this in conjuntion with another time source so this source is used as a fallback mostly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to elaborate a bit more on this once the PR esphome/esphome#1442 has settled: I'd rather give a more complete example once there are elegant ways to synchronize clocks instead of the - kind of improvised - possibilities that now exist in more or less bulky lambda expression.

That would then look similar to this:

esphome:
  on_boot:
    then:
      ds1307.read:

time:
  - platform: ds1307
    update_interval: never
  - platform: homeassistant
    on_time_sync:
      then:
        ds1307.write:

@glmnet glmnet added this to the 1.16.0b2 milestone Jan 8, 2021
@glmnet glmnet merged commit f848da8 into esphome:next Jan 8, 2021
jesserockz pushed a commit that referenced this pull request Jan 11, 2021
* add DS1307 documentation

* add sync to/from rtc actions

* changed action names

* reformat action documentation

* cleanup lint

* link actions
@jesserockz jesserockz mentioned this pull request Jan 11, 2021
@badbadc0ffee badbadc0ffee deleted the ds1307 branch January 13, 2021 00:48
This was referenced Feb 3, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants