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
Thanks
EspEasy Send state to FHEM
Moderators: grovkillen, Stuntteam, TD-er
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: EspEasy Send state to FHEM
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
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
-
- New user
- Posts: 6
- Joined: 27 Aug 2019, 19:24
Re: EspEasy Send state to FHEM
I send it to a raspberry pi running fhem with fhem http.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: EspEasy Send state to FHEM
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
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
-
- New user
- Posts: 6
- Joined: 27 Aug 2019, 19:24
Re: EspEasy Send state to FHEM
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!
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: EspEasy Send state to FHEM
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
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Who is online
Users browsing this forum: Bing [Bot] and 81 guests