Skip to content

How to restart i2cbus, or esp when i2c bus looses data #21626

Closed Answered by sfromis
Rush56 asked this question in Q&A
Discussion options

You must be logged in to vote

Something like adding the command RuleTimer 600 (10 minutes or whatever you think works for you) to the existing rule to display SHT3X#Temperature. And an additional rule on Rules#Timer==1 do Restart 1 endon. (For context, rules is a very different thing than the optional scripting feature of Tasmota).

The key here is to not even try to detect when it loses data, but to detect when it provides data. Something is rotten if it fails to come up with values for 10 minutes (or whatever). One reason to pick a relatively long interval is to cut down on incessant restarts if it did not help. If you want to have fun learning rules, you could do something to manage that, if you think that it would …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sfromis
Comment options

Answer selected by Rush56
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants