EspEasy Send state to FHEM

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
darkchris90
New user
Posts: 6
Joined: 27 Aug 2019, 19:24

EspEasy Send state to FHEM

#1 Post by darkchris90 » 27 Aug 2019, 19:40

Hello again,

sorry if I bother you with too many questions, but I did a lot of research and trial and error and didn't find a solution.

Here we go.

I have connected a motion sensor to the esp8266 running EspEasy. But the time from detecting a motion to fhem reacting to it is around 2 or 3 seconds. If I let the ESP switch another Pin on motion detection it works nearly instantly. The CPU has a 28% load and there are around 6k cycles/s.

Could it be a WIFI thing or does the ESP just needs time to send the state and how can I fix it to get the signal faster?

At the moment I am walking half way in my kitchen before the light turns on. So a bit annoying :D

Thanks

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: EspEasy Send state to FHEM

#2 Post by grovkillen » 27 Aug 2019, 20:01

Do you send the trigger from one unit to another? And what protocol http or mqtt?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

darkchris90
New user
Posts: 6
Joined: 27 Aug 2019, 19:24

Re: EspEasy Send state to FHEM

#3 Post by darkchris90 » 27 Aug 2019, 20:40

I send it to a raspberry pi running fhem with fhem http.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: EspEasy Send state to FHEM

#4 Post by grovkillen » 28 Aug 2019, 07:35

So the logic is taking place in FHEM? If so I suggest you add a rule in the sending unit that also send a http request to the receiving unit. I think the problem is how fast FHEM is baking the logic.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

darkchris90
New user
Posts: 6
Joined: 27 Aug 2019, 19:24

Re: EspEasy Send state to FHEM

#5 Post by darkchris90 » 28 Aug 2019, 20:59

I thought EspEasy would send the changing of any pin state almost directly to the controller and FHEM uses the event like an interrupt and is not polling? I will try sending a http request when recognizing a state change. Thank you!

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: EspEasy Send state to FHEM

#6 Post by grovkillen » 28 Aug 2019, 21:48

Well, I does send it as soon as it's triggered but the delay must be taking place inside the FHEM engine.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: No registered users and 52 guests