Page 1 of 1
Change state of device without event to Rflink or Rfxcom
Posted: Monday 29 January 2018 12:48
by EddyG
There is an silent() function. It would be nice to have a function that only changes the state (On/Off) of a device without 'firing' the RFLINK or RFXCOM.
Is such a function available?
Re: Change state of device without event to Rflink or Rfxcom
Posted: Monday 29 January 2018 12:55
by emme
what would be the purpuse of "simulating" a command that a dummy hardware device can't do?
Re: Change state of device without event to Rflink or Rfxcom
Posted: Monday 29 January 2018 13:53
by EddyG
Simpel. I have a master and slave Raspberry Pi.
On one Rasp. RFLink and on the other Rfxcom.
I would like to synchronize all the devices on both Raspberry's
Most of the devices, which are insight of both Rasp. are default synchronized, because they recieve each other signal.
A few devices do not receive the both Rasp. (at least not at all times). Fault are the concrete floors.
So for those devices the Rasp. are not synchronized.
If I find a way to do that, I would have a redundant system.
If 1 crashes or does not function properly I would have the other to control my devices.
Re: Change state of device without event to Rflink or Rfxcom
Posted: Monday 29 January 2018 14:00
by emme
ok, thaks for clarification.
what about a dummy pushbutton
edit it
in the onAction configure the http API for the remote button
http://<remoteIP>:<remoteport>/json.htm?type=command¶m=switchlight&idx=<remoteSwitchIdx>&switchcmd=On
Re: Change state of device without event to Rflink or Rfxcom
Posted: Monday 29 January 2018 14:42
by EddyG
The problem is that one Rasp. fires a switch.
If you activate the other Rasp. with a json call then that switch gets activated and fires the hardware which could be recieved by the initial Rasp.
And then the cycle starts again.
The json call principle would work if it is garanteed that both Rasps would not recieve each other.
But for all the switches on the border of reception of the other Rasp. that creates a problem.
Re: Change state of device without event to Rflink or Rfxcom
Posted: Monday 29 January 2018 15:28
by emme
how would you identify a real switch by a virtual/test operation?
Re: Change state of device without event to Rflink or Rfxcom
Posted: Monday 29 January 2018 16:33
by EddyG
All the switches I use are real (KaKu) switches. There is no virtual/dummy switch involved.
So from master domoticz I have scripts that acts on those Kaku's, at least the ones out of range.
That script sets a variable in the slave domoticz with IDX and On or Off.
On the slave domoticz a script is triggered on the change of the variable.
That script read the variable and reads the content (IDX and On/Off).
Than that device (IDX) is set on or off.
Status of that device on the slave is now in sync with the master.
What I want to stop is that the change in status of the slave device is send to RFLink.
Because that sending operation might be catched by the Rfxcom in the master, and then you get into a loop.