Line 1: |
Line 1: |
− | You need open the link with XML description for each button -> [[Xml]]<br> | + | <languages/> |
− | Copy the code of any button you need, for example '''<item addr="384:6" name="Garage" type="gate"/>'''<br> | + | <translate> |
| + | <!--T:1--> |
| + | You need open the link with XML description for each widget -> [[Xml]]<br> |
| + | Copy the code of the widget you need, for example '''<item addr="384:6" name="Garage" type="gate"/>'''<br> |
| [[File:Screenshot 001.png|400px]]<br> | | [[File:Screenshot 001.png|400px]]<br> |
| Then open the Structure tab, and click on Edit logic<br> | | Then open the Structure tab, and click on Edit logic<br> |
− | [[File:Screenshot 002.png|350px]] | + | [[File:Screenshot 002.png|350px]]<br> |
| After that will open pop-up window with XML logic<br> | | After that will open pop-up window with XML logic<br> |
| Add your code with a little configuration below!!!<br> | | Add your code with a little configuration below!!!<br> |
Line 9: |
Line 12: |
| *area name - the room, where you want an object to add<br> | | *area name - the room, where you want an object to add<br> |
| *addr="292:"<br> | | *addr="292:"<br> |
− | '''where "292"'''- ID of your server (Metaforsa, DE-MG)<br> | + | '''where "292"'''- ID of your module (Metaforsa, DE-MG, DW-LC10, BW-SW06 etc.)<br> |
| '''and ":"''' - inner ID of the object. '''Assigned automatically by the server''' itself after saving and refreshing the XML logic<br> | | '''and ":"''' - inner ID of the object. '''Assigned automatically by the server''' itself after saving and refreshing the XML logic<br> |
| *name - any you like<br> | | *name - any you like<br> |
Line 17: |
Line 20: |
| [[File:Screenshot 008.png|700px]]<br> | | [[File:Screenshot 008.png|700px]]<br> |
| After that object ready to work<br> | | After that object ready to work<br> |
− | Now we can add physical devices to virtual object and control them by the new object<br>
| + | </translate> |
− | For example, you want to create Blinds with Shades and Vanes together<br>
| |
− | For that, you need to create two physical devices on your module, via Upgrade HW. And connect them to the virtual object<br>
| |
− | Open the XML logic, find your virtual widget and add the full address of the physical device, like in the screenshot below and Save settings<br>
| |
− | [[File:Screenshot 009.png|800px]]<br>
| |
− | * addr="292:239" - address of the virtual button<br>
| |
− | * virtual="yes" - ready to use<br>
| |
− | * shade="317:1" - physical address of the device to control the shades<br>
| |
− | * vanes="317:3" - physical address of the device to control the vanes<br>
| |
− | The widget will be viewed like this, and by double-tapping on it, you can open/close shades and vanes at once<br>
| |
− | [[File:Screenshot 010.png|200px]]
| |
− | [[File:Screenshot 011.png|400px]]<br>
| |
− | You can create any virtual objects and add physical devices<br>
| |
− | '''But, most of the devices have their own buttons (addons or special scripts for different tasks), and don`t need to overuse with this!!!'''<br>
| |