-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Long raw custom entities is crashing gateway #1934
Comments
Thanks for opening the new issue, i'll test and add some checks. |
I've added some range checks to my build https://github.com/MichaelDvP/EMS-ESP32/releases |
Still crashing. I disabled mqtt and no api reads on custom. General behavior has changed: (without mqtt / api)
|
yes was a bug to show old data after datasource was changed. |
First look is fine. Reading and writing seem to work now. I will continue testing. Let me ask some questions in respect to polling / updating:
In respect to long raw telegrams - e.g. switchTimes - I think that polling time should be higher and maybe there is no polling after 1st one needed anymore. Any changes by thermostat or by app via standard gateway will create telegrams with same type.
|
Yes writing is implemented, was easier than blocking. For the implemented switchtimes of RC35 the telegram is set to fetched and after the complete receive the fetch flag is cleared. That works for implemented entities that are known to be updated rarly, but we don't know what kind of telegram is in the custom entity. For the raw custom entities:
For switchtimes there are a lot of requests, we should find a way to implement, but in an extra topic. |
I'm not in favour of abusing the custom entities to solve the switchtime challenge (I opened another issue for this). Also I don't want EMS-ESP to be a middleware just to be used as a read/write telegram parser either. It's not what the application was designed for. |
EMS+ switchTimes have 2 challenges:
In a lot of cases EMS-ESP is today the middleware to home automation systems like HA, ioBroker or others. 1st step could be to create switchTimes within ems-esp entities either in raw (less memory) or as JSON. Where should we discuss this? #1918 was not the right place as well. ... and similar for holidayModes (hm1 to hm5) |
Let's continue then in #1594 - I just added the telegram types |
Defining long raw custom entities on dev.30 version with gateway E32 V2 does not work and will make gateway to reboot.
Any telegram length > 53 does not work and will create regular reboots /crashes:
The text was updated successfully, but these errors were encountered: