Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Question

Posted

Hi all,

 

I'm seeking for advice with regards to LUA code and how to make a lamp blinking whenever some criteria is met.

 

Background info:

My laundry machine is located in my garage, I don't have a direct view to it and I also don't hear any sound coming from the machine once I'm in my house.

I'd like to create a visual signal that informs me once the laundry machine has finished. All my lights in the house are equipped with Fibaro switches and dimmers, so from that point of view there's no limitation. Also the laundry machine is connected thru a wall plug to the power outlet, which gives me the possibility to power-on/off the machine and allowing me to read out the energy consumption.

 

I don't know the LUA code I need to use in order to let a lamp blink... is there anyone who can help?

 

Thanks and best regards,

Mark

 

 

 

 

2 answers to this question

Recommended Posts

  • 0
Posted

You can do this with a powerplug

 

create a variabele X

 

if powerusage > 1000 watt, change X to 1

if powerusage < 50 for 15 min and X = 1

then sent mail/ switch a light, etc

change X to 0

 

 

the timing is a bit trial and error

 

you can do this with wash dryer etc

 

it's not lua, just as an example

  • 0
  • Inquirer
  • Posted

    Hi Akatar,

     

    Thanks for your update.

    I know how to write the LUA script based on the variable status and power measurements etc., but I only don't know what code I must use in order to get the light blinking.

     

    Is there any specific LUA command that allows light to blink?

     

    Best regards,

    Mark

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...