Hi Guys,
I created a simple hack with a cheap doorbell from Grundig.
See this demonstration video on youtube. https://www.youtube.com/watch?v=l9GmqCqmAQ0
I modified 1 receiver and catch the led (hi input) using a wemos esp.
This works brilliant as I forward the status to Openhab which sents me a image by Telegram
The thing is it receives 5 to 8 hi inputs and sents them as seperate events to openhab (mqtt). I want just one event so I want to aggregate to just one event.
I can try to solve it in openhab using a rule, but it seems there is a rule engine in espeasy as well!
Can someone give me a headstart where to begin or what to do?
BTW, I love this software! it's awesome.
ESP EasyDoorbell
Moderators: grovkillen, Stuntteam, TD-er
Re: ESP EasyDoorbell
120 reads and no replies
Let me rephrase the question.
I receive multiple events from the input (doorbell)
Should I create a rule which writes the status to a variable?
If The variable is set the other events will be skipped.
should this work? Or can't I overrule that the event is already sent to controller?
Let me rephrase the question.
I receive multiple events from the input (doorbell)
Should I create a rule which writes the status to a variable?
If The variable is set the other events will be skipped.
Code: Select all
If (input = HIGH){ #rule1
set variable to 1
sleep 5000
set variable to 0
}
If (variable = 1){ #rule2
send mqtt message to openhab
}
Re: ESP EasyDoorbell
Use timer to debounce
Regards,
Code: Select all
On [Switch1#switch] do
TimerSet,9,1
EndOn
On Rules#Timer=9 do
If [Switch1#switch]=1
// Do-whatever-you-want here
EndIf
EndOn
Who is online
Users browsing this forum: No registered users and 28 guests