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

Hello,

 

Is it possible to change a scene icon in LUA?

 

The scene is just a simple toggle:

Please login or register to see this code.

Thanks

9 answers to this question

Recommended Posts

  • 1
Posted

Do you mean something like that?

 

Please login or register to see this image.

/monthly_2018_03/5a9e7a753020e_ChangeIconScene.PNG.fa7543c9305d52a362f2b6073389cad2.PNG"> Scene changing icon.gif

 

Please login or register to see this code.

 

Of course, the most vital part is:

Please login or register to see this code.

 

  • 0
Posted

Hi @mazzurra!

 

Could you develop your idea? What do you mean?

 

With a toggle in one place you would like to change the scene icon of some other scene or what?

  • 0
  • Inquirer
  • Posted

    Yes I would like to change the scene icon using code. For example when I run the scene I want  to change the icon of the scene. Would this be possible?

    • 0
    Posted

    Your my hero! This is what I have been searching for too! :)

    • Like 1
    • 0
    Posted

    Is it also possible to change the icon for the same scene where the code is?

    With the above example I only managed to change icons for other scenes.

    The moment I change the id to the scene itself it doesn't work well anymore.

     

     

    • 0
    Posted

    I have been looking for this!, thanks

    • 0
  • Inquirer
  • Posted

    Thanks @I.Srodka, was exactly what i was looking for.

    • 0
    Posted
    On 6.03.2018 at 6:58 PM, Remi said:

    Is it also possible to change the icon for the same scene where the code is?

    Hi!

     

    In a nutshell, when the "icon change code" is at the end, it is possible. However, the icon change requires the scene to reload so you should better change the scene from another scene.

    • 0
    Posted (edited)

    Can anyone confirm, does this api call still work?

     

    api.put('/scenes/49', {iconID=3})

    Edited by Jamie mccrostie

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