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

Moderators: Voyager, BertB, rtenklooster, Stuntteam, grovkillen, TD-er

Post Reply
Message
Author
ufumes
Normal user
Posts: 11
Joined: 14 Aug 2018, 23:00

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

#1 Post by ufumes » 17 Aug 2018, 18:07

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

User avatar
grovkillen
Normal user
Posts: 2990
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

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

#2 Post by grovkillen » 17 Aug 2018, 22:22

If you use MQTT you can have the broker resend it if you have "retained" option active.
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:

ufumes
Normal user
Posts: 11
Joined: 14 Aug 2018, 23:00

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

#3 Post by ufumes » 18 Aug 2018, 01:56

Thanks for your input, but I only use http and rules.

User avatar
grovkillen
Normal user
Posts: 2990
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

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

#4 Post by grovkillen » 18 Aug 2018, 11:41

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.
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:

antonin.lopatka
Normal user
Posts: 1
Joined: 12 May 2019, 13:35

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

#5 Post by antonin.lopatka » 12 May 2019, 17:16

I see uservalues are stored in RTC memory. Is possible store TaskValueSet there too?

ThomasB
Normal user
Posts: 260
Joined: 17 Jun 2018, 20:41
Location: USA

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

#6 Post by ThomasB » 13 May 2019, 04:29

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

User avatar
schnurzel59
Normal user
Posts: 32
Joined: 18 Feb 2019, 12:41
Location: Germany
Contact:

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

#7 Post by schnurzel59 » 13 May 2019, 15:16

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).
Greetings Martin

Oh God, my English is horrible.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests