Send RelayActuator state back to gateway
-
I have modded a sonoff with the mysensors firmware and added a feature that switches the light on and off by using a gpio pin. The problem is that I can't find a way to tell my gateway the updated state of the relay. If I turn in on from my Vera gateway but then turn it off with the physical switch it still shows as "on" on the vera, which makes it confusing. Is there a way to update it?
-
@nicomedia said:
way to tell my gateway
Guess you mean the controller?
It should be enough to use the send-function like in any other example-sketch.
-
@hek Thanks for the help, but I think I explained it wrong. I wanted my sonoff relay to send the updated state of the relay when I use the physical switch, because it updates the status on the Vera only when I turn it off and on from there. From what I read I can only use the send function to control the relay, but not to send its state back to my Vera.
-
The send-function is used to send updates to the controller, in your case the physical-button-switch-change. Doing the send, does not control anything on the node itself.
Suggested Topics
-
cant get setSafeguard to work with NodeManager 1.8dev
NodeManager • 19 Oct 2018, 18:55 • tomlund 17 Nov 2018, 16:37 -
💬 Simple AC/DC Switch WeMos
OpenHardware.io • 9 Jul 2017, 16:12 • openhardware.io 20 Jul 2017, 03:48 -
Zwave Temp & Humidity?
General Discussion • 13 Nov 2017, 00:01 • Nelson Nico 13 Nov 2017, 16:49 -
Sketch presentation / Vera inclusion
Development • 3 Aug 2016, 18:43 • ejtbpublic 5 Aug 2016, 18:18 -
💬 ESP Power Strip
OpenHardware.io • 23 Apr 2017, 17:37 • openhardware.io 23 Apr 2017, 17:37 -
Loading Data times out
Vera • 4 Oct 2014, 17:12 • BulldogLowell 7 Oct 2014, 00:03 -
Relay / Motion Multisensor
My Project • 30 Jan 2015, 12:26 • Dalhoj 15 Mar 2017, 11:01 -
openLuup - a Vera emulator for all platforms
openLuup • 15 Aug 2015, 17:51 • akbooer 8 Sept 2017, 14:41