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...
How to configure Fibaro binary sensor in Domoticz
Moderator: leecollings
-
- Posts: 5
- Joined: Tuesday 30 October 2018 11:43
- Target OS: Linux
- Domoticz version: v4.9701
- Location: Koudekerke, the netherlands
- Contact:
How to configure Fibaro binary sensor in Domoticz
- Attachments
-
- 3. FBS - settings.jpg (159.98 KiB) Viewed 430 times
-
- 2. FBS- Blockly.jpg (83.24 KiB) Viewed 430 times
-
- 1. FBS - Log.jpg (83.77 KiB) Viewed 430 times
-
- Posts: 5
- Joined: Tuesday 30 October 2018 11:43
- Target OS: Linux
- Domoticz version: v4.9701
- Location: Koudekerke, the netherlands
- Contact:
Re: How to configure Fibaro binary sensor in Domoticz
No one any clue?
really?
really?
-
- Posts: 15
- Joined: Wednesday 09 October 2019 14:34
- Target OS: Linux
- Domoticz version: 2021.1
- Location: Stockholm, Sweden
- Contact:
Re: How to configure Fibaro binary sensor in Domoticz
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.
You try to toggle the same switch that is in the condition.
-
- Posts: 15
- Joined: Wednesday 09 October 2019 14:34
- Target OS: Linux
- Domoticz version: 2021.1
- Location: Stockholm, Sweden
- Contact:
Re: How to configure Fibaro binary sensor in Domoticz
... or just a little time delay so that the Pulse is not causing a loop?
-
- Posts: 5
- Joined: Tuesday 30 October 2018 11:43
- Target OS: Linux
- Domoticz version: v4.9701
- Location: Koudekerke, the netherlands
- Contact:
Re: How to configure Fibaro binary sensor in Domoticz
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?
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?
-
- Posts: 153
- Joined: Tuesday 28 June 2016 16:38
- Target OS: Windows
- Domoticz version: Beta
- Location: Amersfoort NL
- Contact:
Re: How to configure Fibaro binary sensor in Domoticz
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
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
-
- Posts: 5
- Joined: Tuesday 30 October 2018 11:43
- Target OS: Linux
- Domoticz version: v4.9701
- Location: Koudekerke, the netherlands
- Contact:
Re: How to configure Fibaro binary sensor in Domoticz
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.
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.
Who is online
Users browsing this forum: No registered users and 1 guest