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

Virtual Device - Device type / kind


Question

Posted

Hi,

 

I have a motorized curtain which can only be controlled by dry contacts. So I am using a Fibaro 1.5x2 relay and created a virtual device to trigger the required combination to operate. Its working fine. 

 

Now, couple of issues with mobile GUI, this being a virtual device, how can I change the device type or kind for it to appear under the blind tab in the interface rather than under virtual device? 

 

Secondly, the icon on the device preview comes as a power button (refer attached image) is there any way to change that button icon

Please login or register to see this attachment.

and also put more buttons?

 

Thanks in advance!

7 answers to this question

Recommended Posts

  • 0
Posted

You can't set Virtual Device to be treated as real device of some category. Also in default view only one button (main one) can be displayed. Button icon can not be changed, but device icon can be amended by adjusting property of virtual device:

Please login or register to see this code.

Where:

- XX is device ID

- YY is icon ID

  • 0
Posted

Will this be a future improvement? I have the same problem with my Hue VD's. (even the plugin isn't in the lamps category)

It would be very nice if they showed in the lamps category. It would improve the professional appearance of the system.

 

You can't set Virtual Device to be treated as real device of some category. 

  • 0
Posted

I believe it will be rather implemented in plugins in the future, which will allow much more flexibility.

  • 0
Posted

You can't set Virtual Device to be treated as real device of some category. Also in default view only one button (main one) can be displayed. Button icon can not be changed, but device icon can be amended by adjusting property of virtual device:

Please login or register to see this code.

Where:

- XX is device ID

- YY is icon ID

 

How do you find the Icon ID?

  • 0
Posted

How do you find the Icon ID?

Yeah, want to know that too. Is this the normal name of the Icon like: user4.png?

  • 0
Posted

How do you find the Icon ID?

 

 

Yeah, want to know that too. Is this the normal name of the Icon like: user4.png?

The trick to find the icon number is when you see the list of icons  (during changing device icon) do as following:
1. Set the mouse pointer on desired icon
2. Press mouse right button
3.Choose "Inspect Element"
4. On your right should appear HTML screen with marked line like:
    <img id="icon_type_2" src="/fibaro/n_vicons/User1052.png" class="DeviceIcon96x96" style="float: none;"> 
5. The icon number in this case is 1052.
 
to set the icon use fibaro:call(XX, "setProperty", "currentIcon", "1052")
  • 0
Posted

Hi! 

 

Thanks for sharing solutions. 

 

Everything works on web access (I can see the icons assigned to VD) but Fibaro app didn't show my new icons. Only default icons. What I am doing wrong?    

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