• Bluesheep@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 year ago

    Nice tutorial! You used a date time helper. I did something similar using a timer helper instead.

    You set the timer for your duration, then every time you turn on/off the boiler you ‘reset’ the timer. You can then have a trigger in your automation for when the timer reaches zero. Same solution but without the need to work with templates and other ‘codish’ things.

    Timer Helper

      • Bluesheep@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        It does! They added it a while ago, you need to tick the restore check box when you create it and it will survive reboots. It’s very clever.

      • PHLAK@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        11 months ago

        Yes, as long as you use the restore option, if a timer were to finish while Home Assistant is offline, when it starts up again the event will fire and any automations listening for the event will be triggered. Timers are incredibly powerful.