Jump to content
Guides for the Forum Read more... ×
Poradniki na Forum Read more... ×
  • 0
Sign in to follow this  
Helm

How to start a fibaro wall plug from a VD button

Question

Posted (edited)

Hi, I am trying to start a fibaro wall plug from a VD button.

I have 4 buttons and would like the first buttons to start the fibaro wall plug for 15min and turn off.

Second button starts the fibaro wall plug for 20min and turn off.

Third button starts the fibaro wall plug for 25min and turns off.

Forth buttons starts the fibaro wall plug for 30min and turns off.

 

Could someone help me in doing this? Any help is much appreciated.

Edited by Helm

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

In Hc2

 

 

Button1      fibaro:call(5,”turnOn”)                    —  5 = wallplug id

                    fibaro:sleep(900000)                     — time in  miliseconds 15 min

                    fibaro:call(5, “turnOff”)

 

 

Button2      fibaro:call(5,”turnOn”)

                     fibaro:sleep(1200000)

                     fibaro:call(5,”turnOff”)

Edited by Jamie mccrostie
  • Like 2

Share this post


Link to post
Share on other sites
  • 0
  • Inquirer
  • Posted (edited)

     

    20 hours ago, Jamie mccrostie said:

    In Hc2

     

     

    Button1      fibaro:call(5,”turnOn”)                    —  5 = wallplug id

                        fibaro:sleep(900000)                     — time in  miliseconds 15 min

                        fibaro:call(5, “turnOff”)

     

     

    Button2      fibaro:call(5,”turnOn”)

                         fibaro:sleep(1200000)

                         fibaro:call(5,”turnOff”)

     

     Each time the Buttons are pressed the sleep function starts again. Do you think it is possible to add a label and display a countdown in the VD and each time the button is pressed, the countdown starts from the beginning?

    Edited by Helm

    Share this post


    Link to post
    Share on other sites
    • 0
    Posted (edited)
    19 hours ago, Helm said:

     

     

     Each time the Buttons are pressed the sleep function starts again. Do you think it is possible to add a label and display a countdown in the VD and each time the button is pressed, the countdown starts from the beginning?

    @HelmTry this VD attached you have to change your device ids.

    There is a 60sec odd delay before you can restart after resetting timer.

    You may be able to adapt it further to suit. Once time is set you can also start with main button of VD.

    Please login or register to see this attachment.

    Edited by Jamie mccrostie

    Share this post


    Link to post
    Share on other sites
    • 0
  • Inquirer
  • On 3/7/2018 at 8:21 AM, Jamie mccrostie said:

    @HelmTry this VD attached you have to change your device ids.

    There is a 60sec odd delay before you can restart after resetting timer.

    You may be able to adapt it further to suit. Once time is set you can also start with main button of VD.

    Please login or register to see this attachment.

    @Jamie mccrostie Thanks, This helps alot.

    Share this post


    Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    Sign in to follow this  

    ×