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


Recommended Posts

Posted

I have created a quick app that toggles my Kasa Smart Wi-Fi Plug and would like to add a custom icon.  However, in the general tab, there is no 'Add Icon' button.  I am logged in locally and the Add Icon button appears for regular devices (such as my motion sensor)  but not for Quick App devices.  Any thoughts?

 

Please login or register to see this attachment.

Please login or register to see this attachment.

Posted (edited)

@anthonyc0603
It depends on the type of quickapp device you create whether you can add an icon

 

 

 

Edited by SmartHomeEddy
  • Topic Author
  • Posted

    I created a generic device.  Do you know which ones allow the add icon feature?

    Posted

    I don’t have a complete list. I created temperature, humidity, multilevel, binary. All of them can change the icon. I think if you look at all your devices, if you can change the icon, you know the type. 

    Posted

    @SmartHomeEddy

    You are talking about devices like sensors, switches etc. There you can change the icons.

    @anthonyc0603 wondering how to change the icon on a QuickApp which does not work, yet. In any case, I have not found any way to change it on a QA.

    Posted (edited)

    Here are Quickapp and child devices with a custom icon (except temperature, I can change it but is not necessary) 

     

     

    Please login or register to see this attachment.


     

     

    also for the Unify presence quickapp 

     

     

    Please login or register to see this attachment.

    Edited by SmartHomeEddy
    Posted

    @SmartHomeEddy

    You are partly right, but then you have to choose that your QA should be e.g. a sensor. But in my case, my QA is neither a sensor nor a switch, and if I then choose Generic or Device controller, it is not possible to change the icon :-(

    Posted

    If you choose for eg a binary or multilevel sensor, doesn’t your quickapp work ?

    Posted

    Well I suppose it works. But there should be a reason to choose a certain category.

    Why else would you choose from several different categories?

    And if you choose the wrong category, then it is not possible to change it to another.

  • Topic Author
  • Posted

    Yep @SmartHomeEddy and @RH_Dreambox that is exactly what I did and it works.  

     

    Each category is, in fact, a LUA template and it expects certain methods (functions) to be implemented. The binary switch has  'turnOn' and 'turnOff' functions and the interface has an automatic on and off button. I implemented a 'toggle' function which I then use in a scene.  So it is kind of a kludge but works fine.  I have no idea why they do not allow an icon change for a generic device.  

    • Like 1
    Posted

    Find humidity sensor 

    change / add icon (ok add a new one)

    memory icon NO

    back to your genetic device 

    add code like self:setIcon(NO) 

    ta dam you changed icon for generic device 

     

    do not ask me why Fibaro prevents to change icon natively 

    Posted (edited)
    On 7/13/2020 at 8:57 PM, 10der said:

    Find humidity sensor 

    change / add icon (ok add a new one)

    memory icon NO

    back to your genetic device 

    add code like self:setIcon(NO) 

    ta dam you changed icon for generic device 

     

    do not ask me why Fibaro prevents to change icon natively 

     

    Oh great 10der, ..
    Your contributions are invaluable.
    Probably many of us are dealing with the same thing: changing icons in QA.

    The problem is not if you want to do it in your own installation, but how to insert the appropriate icon to QA so that it is part of the package and there is an automatic import (probably also with the help of preparing the encoding in QA). After all, you can't expect all users to be able to edit it.
    Fibaro has to work here ... Please!
    eM.

     

     

     

    Edited by Martin_N
    • 3 months later...
    Posted

    Hi 

    Please login or register to see this link.

     

    can you sahre the Quick app? thanks

    • 3 months later...
    Posted

    would it be possible to elobrate on how i can set an icon in a qa

    Posted (edited)

     

    @Jay Ess to use a user defined icon in a QuiciApp: 

     

    Please login or register to see this code.

    Edited by SmartHomeEddy
    Posted

    @SmartHomeEddy Thank you for the reply,

    i have added your code to the qa and it now shows me a blank white box as the icon, i have a few icons which i have added how can i specify which icon to use?

    thank you

    Posted

    You can add a icon with an other device. You don't have to change the icon of that other device, only add the icon. If you click on the added icon (right mouse) and try to save the icon and at that moment you can see the number of the icon, in the filename, for example 1020. 

     

    That number you can fill in the quickapp variable. 

    Posted

    when i right click on the image i get this

    Please login or register to see this link.

    Posted

    You need to login locally, on the homecenter

    Join the conversation

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

    Guest
    Reply to this topic...

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