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


  • 0

All Lichting Off, Controlled device with LUA


Question

Posted (edited)

Hello ,here is my question

I have a LUA script that turs of all lichting ,but also the gardenlichting .can some someone tell me if I can use the Controlled device setting in the Lua script.

So that the script only turns off Lichting or other devices.

Thank's in advance.

Please login or register to see this attachment.

Edited by Jaapkooi

8 answers to this question

Recommended Posts

  • 0
Posted

Irony

you forgot to insert jpeg file with LUA into MS word and take picture again!

 

PS: can to read tea leaves. Can find LUA errors by photo, can debug your LUA script with closed eyes ;) 

  • 0
Posted

I use this one

 

 

 

looks cleaner to me and for a modification you should look into this thread

 

 

  • 0
  • Inquirer
  • Posted (edited)
    2 hours ago, 10der said:

    Irony

    you forgot to insert jpeg file with LUA into MS word and take picture again!

     

    PS: can to read tea leaves. Can find LUA errors by photo, can debug your LUA script with closed eyes ;) 

    Hi thank's for your time.

    This script works fine. but it turns of all lichting. That's not wat i want , i want to turn of only inside lichting not the garden lichting.

    Thats why i wonderd f you could turn of by (controlled device) every module can be set to something .In my case Tuinverlichting (Garden licht).

    With my script it wil turn everything that has a conection to lichting off.

    i only want to turn of Verlichting . Foto 2

     

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    1 hour ago, PreHack said:

    I use this one

     

     

     

    looks cleaner to me and for a modification you should look into this thread

     

     

    Hi thank for your help

    It works good i want to modify it.

    # i will try your's

    # Your's also turns of everything what is associated with lichting included my satel alarm system. :)

    Edited by Jaapkooi
    • 2
    Posted (edited)

    I read through

     

     

     

    and I found a chance to optimize my setup :)

    Here is the scene for you :)

     

    Please login or register to see this code.

     

    The diverent deviceControlType are:

    2  Lighting
    5  Bedside Lamp
    7  Wall lamp
    11 Garden Lamp
    23 Dimmer

     

    Edited by PreHack
    • Like 1
    • 0
  • Inquirer
  • Posted (edited)
    22 hours ago, PreHack said:

    I read through

     

     

     

    and I found a chance to optimize my setup :)

    Here is the scene for you :)

     

    Please login or register to see this code.

     

    The diverent deviceControlType are:

    2  Lighting
    5  Bedside Lamp
    7  Wall lamp
    11 Garden Lamp
    23 Dimmer

     

     

    Hi Thank you very much.

    Where do you get these value . 2 lichting 5 bedside----------

    edit-  This script works partial (funny you mite say) all lichts go off ( Lichting and Garden) but in the GUI and brouwser of fibaro the gardenlichts stay on.For propertyvalue i had 2, only lichting.

    Edited by Jaapkooi
    • 1
  • Inquirer
  • Posted (edited)
    On 10/29/2018 at 12:23 AM, PreHack said:

    I read through

     

     

     

    and I found a chance to optimize my setup :)

    Here is the scene for you :)

     

    Please login or register to see this code.

     

    The diverent deviceControlType are:

    2  Lighting
    5  Bedside Lamp
    7  Wall lamp
    11 Garden Lamp
    23 Dimmer

     

    I can't thank you enough..

    I have been kikking the *abuse* out of this script , it realy great.

    2 Lichting

    3 garden sprinkler

    4 Pin    --?

    5 Night cabin licht

    6 Water heater

    7 wall lamp

    8  Airco

    9 Alarm detection

    10 Coffie machine

    11 garden licht

    12 TV   --

    13 Ceiling fan

    14 Breadtoster

    15 Raidio

    16 ?     (For dimmer only)Garage door

    17 Roof window

    18    ?   ( For dimmer only) roller shutter

    19    ? ( For dimmer only) Curtain

    20 different devise

    21 Alarm status in/out

    22 Alarm in

    23  Dimmer

    24 Intercon Bell

    25 Intercon Open 

     

    Edited by Jaapkooi
    • Thanks 1
    • 0
    Posted

    Thank you for the deviceControlType  list :)

    • 0
  • Inquirer
  • Posted
    6 hours ago, PreHack said:

    Thank you for the deviceControlType  list :)

    Thank you  

    Script works fine my problem in the start was my satel alarm . the outputs of the satel are default lichtning (devicecontroltype) I have a lot of links back and forword ,so when i ran the script a lot went on .

    After i changed that it ran great.

    And for others don"t forget you hidden devices.

    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...