Skip to content

Timer functionality per switch #72

Closed

Description

@theyosh

Add an option to created separated timers for switches. This will allow the switch to turn off and on on a time based schedule.

Needed input per switch:

  • Timer start time - ex: 09:00
  • Timer stop time - ex: 22:00 or 10:00 PM
  • Timer on duration - ex: 180
  • Timer off duration - ex: 90

In this example the timer will run between 9 AM and 10 PM. In that period the power will be on for 180 minutes and then off for 90 minutes. This repeats till 10 PM.

If this timer is enabled on the switch, it cannot be used on the environment page. Because the switch has its own timer logic and not using the central logic anymore.

The on and off durations are in minutes.

The power switch will be checked every 30 seconds if a power switch change is needed.

The power switch indicator will have a clock icon to it to show that it is timer based.

timerswitch

Activity

  1. Repository owner deleted a comment from Barbara1984 on Jan 13, 2018
  2. Repository owner deleted a comment from Aapjes94 on Jan 13, 2018
  3. Barbara1984 commented on Jan 22, 2018

    @Barbara1984

    Hi, I do not want to be silly but when will this update come about? :-)

  4. theyosh commented on Jan 25, 2018

    @theyosh
    OwnerAuthor

    Updates for this feature can be tested in branch https://github.com/theyosh/TerrariumPI/tree/feature/switch_timers. So update with git pull. Then use git checkout feature/switch_timers. Then restart TerrariumPI and clean your browser cache.

    Also keep a copy of your settings file before testing this.

  5. Barbara1984 commented on Jan 25, 2018

    @Barbara1984

    Ok, thanks, I'll tell you how it works

  6. Aapjes94 commented on Jan 25, 2018

    @Aapjes94

    From my end, this branch seems to work. The update worked and it's installed. The 'translations' are still missing, so it isn't exactly clear how this function work.

  7. theyosh commented on Jan 27, 2018

    @theyosh
    OwnerAuthor

    At this point I think I got it working. So it could be fully tested now.

  8. Barbara1984 commented on Jan 27, 2018

    @Barbara1984

    Very cool thanks for your work I will test it tomorrow.

  9. Barbara1984 commented on Jan 28, 2018

    @Barbara1984

    Hi, I have now made the update but unfortunately I find no setting for the timer

  10. theyosh commented on Jan 28, 2018

    @theyosh
    OwnerAuthor

    Clear browser cache, and select activate at the timer pull down when editing the switches.

  11. Barbara1984 commented on Jan 28, 2018

    @Barbara1984

    Sorry maybe I'm too stupid but I think nothing has done the update and emptied cache. But I can not find the timer mode.

  12. Barbara1984 commented on Jan 28, 2018

    @Barbara1984

    terrarium

  13. Aapjes94 commented on Jan 28, 2018

    @Aapjes94

    It worked for me so something went wrong during your install. Are you sure you used git checkout feature/switch_timers after git pull

    cd TerrariumPi
    git pull
    git checkout feature/switch_timers
    sudo ./install.sh
    probably a sudo reboot is needed after this as well to get everything set up properly

  14. Barbara1984 commented on Jan 29, 2018

    @Barbara1984

    Thanks for the help now it works :-)

  15. theyosh commented on Jan 29, 2018

    @theyosh
    OwnerAuthor

    Cool, I have it also merged to master branch. So everybody can use it now 👍

  16. Barbara1984 commented on Jan 29, 2018

    @Barbara1984

    Can you please # 82 again open the subject is unfortunately not done :-(

  17. theyosh commented on Feb 3, 2018

    @theyosh
    OwnerAuthor

    Update the code that timer functionality is also in all the environment parts. Same logic.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions