Unique index or primary key violation

Hello all,

I am getting an error in my logs that appears to be related to my thermostat (so says the logs). I am using the "Advanced Honeywell T6 Pro Thermostat" that came @bcopeland created (which has been working splendidly).

Any thoughts on what could cause these errors?

Here is a screenshot of my logs: