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!



Smart Home Forum by FIBARO Team

User changeable device GUID.


Recommended Posts



Currently any API calls or even historic energy data related to device ID.

All is good as long as you don't need to replace device.

If you need to replace old device, you need to rewrite all scenes, quick apps which are related to it.

If there were user settable GUID id, no code rewrites needed, also energy data continues to work ok when device replaced.


For example:


Scene condition now

   conditions = { {
      id = 83,
With proposed GUID   
 conditions = { {
      guid= 'e71d1a45-cee8-4846-bcb8-5dadf2ba6665',
Some calls 
fibaro.call(88,'turnOn')        ----> fibaro.call('e71d1a45-cee8-4846-bcb8-5dadf2ba6665','turnOn')
fibaro.getValue(83,"value") ---->fibaro.getValue('e71d1a45-cee8-4846-bcb8-5dadf2ba6665',"value")
Offcourse there may be totally new methods for calling GUID values, if to hard to accept same time old ID and GUID for old methods:
or new method deviceIdFromGuid()
fibaro.call(deviceIdFromGuid( 'e71d1a45-cee8-4846-bcb8-5dadf2ba6665'),'turnOn')
Adding new device just generates random guid, but later user cand change it as needed(replaced device to uses old device guid).
Edited by ivx
Link to comment
Share on other sites

Join the conversation

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

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