Difference between revisions of "Virtual device"

From Larnitech wiki page
Jump to navigation Jump to search
Line 1: Line 1:
 +
<languages/>
 +
<translate>
 
You need open the link with XML description for each button -> [[Xml]]<br>
 
You need open the link with XML description for each button -> [[Xml]]<br>
 
Copy the code of any button you need, for example '''<item addr="384:6" name="Garage" type="gate"/>'''<br>
 
Copy the code of any button you need, for example '''<item addr="384:6" name="Garage" type="gate"/>'''<br>
Line 17: Line 19:
 
[[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>
 +
</translate>

Revision as of 13:26, 13 January 2022

Other languages:
English • ‎русский

You need open the link with XML description for each button -> Xml
Copy the code of any button you need, for example <item addr="384:6" name="Garage" type="gate"/>
Screenshot 001.png
Then open the Structure tab, and click on Edit logic
Screenshot 002.png
After that will open pop-up window with XML logic
Add your code with a little configuration below!!!
Screenshot 007.png

  • area name - the room, where you want an object to add
  • addr="292:"

where "292"- ID of your module (Metaforsa, DE-MG, DW-LC10, BW-SW06 etc.)
and ":" - inner ID of the object. Assigned automatically by the server itself after saving and refreshing the XML logic

  • name - any you like
  • type - the icon (widget) of the object. You can change it to another (Jalousie for example)
  • virtual="yes" - the object will be able to perform the actions. Without it, object will be only viewed, without performing actions

After refreshing the XML logic, your line will be like in screenshot below. Inner ID succesfully assigned, in our case it was 240
Screenshot 008.png
After that object ready to work