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

Move equipment in bulk to another room


petro_cz

Question

Hi, I have a  question, is it possible to move more devices to another room, for example the electricity meter has about 30 items, it is very inconvenient to move it one line at a time, thank you 

 

 

 

Please login or register to see this attachment.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
  1. Find out the id of the room you want to move the device to: https://hc3-ipaddress/api/rooms
  2. Find the id of the device you want to move
  3. Fill the variables with the id's and run this code in a Lua scene:

Please login or register to see this code.

 

If you want to move all the devices, you have to create a for loop. Finding the id's is slower than they click over by hand.

 

💡Extra tip: if you want to move all devices from the install room at once you can use the script:

Please login or register to see this code.

 

More about working with devices and the API you can find at my blog: 

Please login or register to see this link.

 

Edited by Joep
grammar
  • Thanks 1
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.

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