Page 1 of 1

How to configure Fibaro binary sensor in Domoticz

Posted: Saturday 28 September 2019 21:53
by JWM22
Hello,

I am fairly new to Domoticz, so I like to apologize in advance when this is a silly question.
I recently bought an Fibaro Binary Sensor (the old one).

My idea is, to connect this sensor to a pulse switch, to make a smart switch, wich looks like any other normal switch in the room.

The idea is like this.
Binary-switch 1, if scene 1 is of, then switch scene 1 on.
Binary-switch 1, if scene 1 is on, then switch scene 1 off.

So, just like a normal switch, but now it switches scenes on and off. and because the sensor has 2 switches, I can switch 2 scenes.
That is the idea at least.

My problem is, that I can program 1 action. So when, the switch is pressed, it turns the scene on.
The problem starts when I make it relative to the state of the scene (on or off)
Then it falls in a loop. When I press the switch the scene goes on, off, on, off, on, off, on, well, you get the idea.

I have the settings of the binary sensor on default, except the type of input, that is "normal open" (made more sense)
However when I put it on NC, normal closed, it makes absolutely no difference.

Also I noticed, (see picture with log) when I press the switch, the sensor gives 2 reactions. No idea why.

What am I doing wrong?
Hope you guys have any ideas!

Thanks a lot...

Re: How to configure Fibaro binary sensor in Domoticz

Posted: Wednesday 09 October 2019 22:50
by JWM22
No one any clue?

really? :(

Re: How to configure Fibaro binary sensor in Domoticz

Posted: Friday 11 October 2019 16:29
by Peterus
I really don't know Blockly this well but perhaps try to create a dummy "FakeSwitch"?
You try to toggle the same switch that is in the condition.

Re: How to configure Fibaro binary sensor in Domoticz

Posted: Friday 11 October 2019 16:30
by Peterus
... or just a little time delay so that the Pulse is not causing a loop?

Re: How to configure Fibaro binary sensor in Domoticz

Posted: Sunday 13 October 2019 17:22
by JWM22
Hi Peterus,

Thanks for your response.
the time delay, was something I thought of myself, but all it did was a time delay in the loop. :-)
So not the result I hoped for.

How could a dummy switch be of help?

Re: How to configure Fibaro binary sensor in Domoticz

Posted: Sunday 13 October 2019 17:34
by JimmyH1969
Thats why i like LUA more, it has options like:

if (devicechanged['name-of-your-switch']) then
or
if (devicechanged['name-of-your-switch']) == 'Off' then

You get the idea. The script will only react on the devicechange

Re: How to configure Fibaro binary sensor in Domoticz

Posted: Sunday 13 October 2019 20:33
by JWM22
Hi Jimmy,

scripting, whether it is in C, in Java or in Lua, doesn't come easily to me.
So that is why I try to avoid it much as I can.

However, I am thinking about writing it in Lua indeed, Blockly just is not going to work.