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

I really dont understand LUA


Question

Posted

Hi everyone me again...

 

I really dont understand, I have used sankatronics awesome VD for all my philips hue and set them up so they work in the app etc

 

Now I wanted to learn LUA and Im currently following robbshops tutorial.

 

Thing is not even the simplest scene is working?

 

I have done this code and also a debug, the debug checks out, but the scene does nothing...no lights turns on

This is getting a bit on my nerves since this seems like a totally simple thing to do and even that spells trouble?

Please login or register to see this attachment.

Please login or register to see this attachment.

3 answers to this question

Recommended Posts

  • 0
Posted

Why not start here? Lua för nybörjare (av Bamsefar)

Please login or register to see this link.

 

  • 0
  • Inquirer
  • Posted
    25 minutes ago, RH_Dreambox said:

    Why not start here? Lua för nybörjare (av Bamsefar)

    Please login or register to see this link.

     

     

    Wow tack :) ska kolla på den oxå :)

     

    Men vad är det jag har gjort fel i min kod?

    • 0
    Posted

    Hej @Pacho

    Du har skapat en scen som när den körs manuellt av dig anropar en VD med ID 28.

    Där skall en knapp med ID 11 aktiveras (pressButton).

    Vad du inte visar är hur din VD ser ut. Det är ju där som kommandot att tända lampan skall ske enligt din kod.

     

    Om jag förstår dig rätt så har du skapat en VD med knappar där du kan tända och släcka lampan. Hur ser den ut?

    Scenen antar jag att du har skapat enbart för att testa att trigga din VD till att tända lampan. Har jag förstått dig rätt?

    Om du tänker använda din VD via telefonen så behövs inte den scenen du har skrivit. Men jag antar att det bara är en test.

     

     

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