<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.larnitech.com/index.php?action=history&amp;feed=atom&amp;title=Virtual_button</id>
	<title>Virtual button - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.larnitech.com/index.php?action=history&amp;feed=atom&amp;title=Virtual_button"/>
	<link rel="alternate" type="text/html" href="https://wiki.larnitech.com/index.php?title=Virtual_button&amp;action=history"/>
	<updated>2026-05-05T11:44:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.11</generator>
	<entry>
		<id>https://wiki.larnitech.com/index.php?title=Virtual_button&amp;diff=2604&amp;oldid=prev</id>
		<title>Support: Created page with &quot;You need open the link with XML description for each button -&gt; Xml&lt;br&gt; Copy the code of any button you need, for example '''&lt;item addr=&quot;384:6&quot; name=&quot;Garage&quot; type=&quot;gate&quot;/&gt;'...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.larnitech.com/index.php?title=Virtual_button&amp;diff=2604&amp;oldid=prev"/>
		<updated>2021-12-17T14:35:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;You need open the link with XML description for each button -&amp;gt; &lt;a href=&quot;/Xml&quot; title=&quot;Xml&quot;&gt;Xml&lt;/a&gt;&amp;lt;br&amp;gt; Copy the code of any button you need, for example &amp;#039;&amp;#039;&amp;#039;&amp;lt;item addr=&amp;quot;384:6&amp;quot; name=&amp;quot;Garage&amp;quot; type=&amp;quot;gate&amp;quot;/&amp;gt;&amp;#039;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;You need open the link with XML description for each button -&amp;gt; [[Xml]]&amp;lt;br&amp;gt;&lt;br /&gt;
Copy the code of any button you need, for example '''&amp;lt;item addr=&amp;quot;384:6&amp;quot; name=&amp;quot;Garage&amp;quot; type=&amp;quot;gate&amp;quot;/&amp;gt;'''&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Screenshot 001.png|400px]]&amp;lt;br&amp;gt;&lt;br /&gt;
Then open the Structure tab, and click on Edit logic&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Screenshot 002.png|350px]]&lt;br /&gt;
After that will open pop-up window with XML logic&amp;lt;br&amp;gt;&lt;br /&gt;
Add your code with a little configuration below!!!&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Screenshot 007.png|700px]]&amp;lt;br&amp;gt;&lt;br /&gt;
*area name - the room, where you want an object to add&amp;lt;br&amp;gt;&lt;br /&gt;
*addr=&amp;quot;292:&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
'''where &amp;quot;292&amp;quot;'''-  ID of your server (Metaforsa, DE-MG)&amp;lt;br&amp;gt;&lt;br /&gt;
'''and &amp;quot;:&amp;quot;''' - inner ID of the object. '''Assigned automatically by the server''' itself after saving and refreshing the XML logic&amp;lt;br&amp;gt;&lt;br /&gt;
*name - any you like&amp;lt;br&amp;gt;&lt;br /&gt;
*type - the icon (widget) of the object. You can change it to another (Jalousie for example)&amp;lt;br&amp;gt;&lt;br /&gt;
*virtual=&amp;quot;yes&amp;quot; - the object will be able to perform the actions. Without it, object will be only viewed, without performing actions&amp;lt;br&amp;gt;&lt;br /&gt;
After refreshing the XML logic, your line will be like in screenshot below. Inner ID succesfully assigned, in our case it was 240&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Screenshot 008.png|700px]]&amp;lt;br&amp;gt;&lt;br /&gt;
After that object ready to work&amp;lt;br&amp;gt;&lt;br /&gt;
Now we can add physical devices to virtual object and control them by the new object&amp;lt;br&amp;gt;&lt;br /&gt;
For example, you want to create Blinds with Shades and Vanes together&amp;lt;br&amp;gt;&lt;br /&gt;
For that, you need to create two physical devices on your module, via Upgrade HW. And connect them to the virtual object&amp;lt;br&amp;gt;&lt;br /&gt;
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&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Screenshot 009.png|800px]]&amp;lt;br&amp;gt;&lt;br /&gt;
* addr=&amp;quot;292:239&amp;quot; - address of the virtual button&amp;lt;br&amp;gt;&lt;br /&gt;
* virtual=&amp;quot;yes&amp;quot; - ready to use&amp;lt;br&amp;gt;&lt;br /&gt;
* shade=&amp;quot;317:1&amp;quot; - physical address of the device to control the shades&amp;lt;br&amp;gt;&lt;br /&gt;
* vanes=&amp;quot;317:3&amp;quot; - physical address of the device to control the vanes&amp;lt;br&amp;gt;&lt;br /&gt;
The widget will be viewed like this, and by double-tapping on it, you can open/close shades and vanes at once&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:Screenshot 010.png|200px]]&lt;br /&gt;
[[File:Screenshot 011.png|400px]]&amp;lt;br&amp;gt;&lt;br /&gt;
You can create any virtual objects and add physical devices&amp;lt;br&amp;gt;&lt;br /&gt;
'''But, most of the devices have their own buttons (addons or special scripts for different tasks), and don`t need to overuse with this!!!'''&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Support</name></author>
	</entry>
</feed>