<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — changing state of switch programmatically]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=628&amp;type=atom" />
	<updated>2018-12-27T03:19:01Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=628</id>
		<entry>
			<title type="html"><![CDATA[Re: changing state of switch programmatically]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1939#p1939" />
			<content type="html"><![CDATA[<p>You have encountered &quot;the wall&quot;, in that all of the RemoteXY controls are <strong>one-way only</strong>, they simply write values to your controller, and do not update their values or visual indications if they are changed from another source.</p><p>That&#039;s the way it is, and we have to live with it, unless the developer can make it bi-directional.....</p>]]></content>
			<author>
				<name><![CDATA[Daba]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=630</uri>
			</author>
			<updated>2018-12-27T03:19:01Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1939#p1939</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[changing state of switch programmatically]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=1938#p1938" />
			<content type="html"><![CDATA[<p>Hi,</p><p>i am trying to use remote xy together with a node red home automation installation witch works pretty well in general. I have a quit simple test configuration containing a switch and a led (remotexy) and a switch (node-red). The both switches should control the same tp-link hs100 smart plug, which is generally working from both sides (remotexy and node-red). My &quot;problem&quot; is, that the node-red switch is not everytime aware of the current state of the smart plug.</p><p>if i toogle the remotexy switch from my android phone, the remotexy switch of course changes its state and i get the signal within node red and can manipulte the node red switch which than manipulates the remotexy led and the smart plug - everything is fine.</p><p>but, if i toggle the node red switch, the &quot;signal&quot; is transfered to the smart plug and even to the remotexy led - this works pretty well, except that the remotexy switch doesnt takes notice the state of the smart plug (and the node red switch) has changed. I have not found a possibility to manipulate an input variable of remotexy from within node red (which makes sence in general for me). This way the remotexy switch is not &quot;aware&quot; of the current state of the smart plug.</p><p>My question is how can I take care of the remotexy switch current state is corrsponding to the smart plugs current state. As the remotexy led has the correct state I could programmatically take care of the remotexy switch state within &quot;loop ()&quot; but i dont know how it is possile to set the current state of the switch within remotexy. I havent found an example, maybe someone could point me to the specific docs or show me an example.</p><p>thanks in advance</p><p>Michael</p>]]></content>
			<author>
				<name><![CDATA[mxwx]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=798</uri>
			</author>
			<updated>2018-12-26T22:20:54Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=1938#p1938</id>
		</entry>
</feed>
