Page 1 of 1

How do i make the TaskValueSet of a dummy device persist after reboot

Posted: 17 Aug 2018, 18:07
by ufumes
I created a dummy device , I was able to succesfully assign data to it, and i consumed the assigned data successfully too. The problem is that when i restart the espeasy device, the assigned data seems to get reset. Is there a way to make it persist in memory?

thanks

Re: How do i make the TaskValueSet of a dummy device persist after reboot

Posted: 17 Aug 2018, 22:22
by grovkillen
If you use MQTT you can have the broker resend it if you have "retained" option active.

Re: How do i make the TaskValueSet of a dummy device persist after reboot

Posted: 18 Aug 2018, 01:56
by ufumes
Thanks for your input, but I only use http and rules.

Re: How do i make the TaskValueSet of a dummy device persist after reboot

Posted: 18 Aug 2018, 11:41
by grovkillen
Then you need to rely on whatever controller you're using. In the future we are thinking about implementing a secondary EEPROM for storing such info/values.

Re: How do i make the TaskValueSet of a dummy device persist after reboot

Posted: 12 May 2019, 17:16
by antonin.lopatka
I see uservalues are stored in RTC memory. Is possible store TaskValueSet there too?

Re: How do i make the TaskValueSet of a dummy device persist after reboot

Posted: 13 May 2019, 04:29
by ThomasB
I see uservalues are stored in RTC memory. Is possible store TaskValueSet there too?
Yes. I checked my Sonoff Basic running ESP_Easy_mega-20190409_normal_ESP8285_1M.bin; I used TaskValueSet to change the value of a Generic - Dummy Device and the value persisted after a warm reboot.

- Thomas

Re: How do i make the TaskValueSet of a dummy device persist after reboot

Posted: 13 May 2019, 15:16
by schnurzel59
Hi,
I solved it that way for me. Repeated watchdog reboots permanently delete all shutter positions.
I use a Raspbery (I use Raspberymatic for other tasks. the ESP controls "only" the shutters.) and send my data to the controller. After a reboot of the ESP, the Pi receives
a message and sends all data with Http Get commands to the ESP. The same can be done with a second ESP.
Send all data with "sendTo" from ESP1 to ESP2. (and from ESP2 to ESP1 for data synchronization).
Then restore data automatically after reboot. Set up a few DummyDevices and a few rules and everything is safe. (almost everything).