Followed the instructions and got it all to work but now it seems to 'crash' every now and then. Reading up on google etc i seem to have a 'bug' that always occurs in the same spot since the values are the same and it always happens (seems to) after the wifi disconnected.
My current code is: https://pastebin.com/if2myh6Q
And here is some output where it stack traced 2 times: https://pastebin.com/X2CKmfz3
Always seems to be exception(9) which according to the web is:
LoadStoreAlignmentCause Load or store to an unaligned address
epc1=0x40105078 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000003 depc=0x00000000
I also found out that if you use wifi it will indeed store the information and on some topics i found that people where disabling the wifi completely since it could crash there setup too.
That it restarts is not the end of the world but 'sometimes' it hangs and does not restart and then it becomes an issue because the values will not come in and my automations won't work because of this
Can anybody tell me what is wrong or walk me through it as newbie here.
Update: I bumped into this: https://github.com/esp8266/Arduino/issues/3379 and found i had it in another order. Testing it now again to see if that helps.