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

Feature request template time #7

Open
martijnbuts opened this issue Jun 20, 2024 · 1 comment
Open

Feature request template time #7

martijnbuts opened this issue Jun 20, 2024 · 1 comment

Comments

@martijnbuts
Copy link

Hi,

I am using your esphome config a lot but i am not so handy with lambda.

Would it be possible to add a template time to your example config to view and if possible update the clock of the spa?
https://esphome.io/components/datetime/template

i think it is something like this datetime:

  • platform: template
    id: spa_datetime
    type: time
    name: "Spa Time"
    update_interval: 60s
    set_action:
    • lambda: |-
      auto spareader = new SpaReader(id(spa_uart_bus));
      App.register_component(spareader);
      id(spa_hour).publish_state(spareader->hour_sensor);
      id(spa_minute).publish_state(Minute);
@vBrolin
Copy link

vBrolin commented Jun 20, 2024 via email

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

No branches or pull requests

2 participants