Entities stop connecting with InfluxDB

there’s two entities (that i know of so far) that after a while stop sending data to influxDB, if i restart HA they start sending data again fgor a while and so on and so forth.

Both are the power draw entity for a couple of zigbee plugs, the “interesting” thing is that not i can still se other entities for those devices after they stop communicating… no idea what to do here, but it sounds like it’s on the HA side…

Interesting update… it seems the “issue” is that the plugs were turned off, so the values for the entities that were not showing up were zero… is there a way to have them marked as zero instead of as not connected?

I dont know if that is your problem, but I think the data written to Influx is only when something changes.
You need to get the last valid state which is zero or if your devices report unavailable when power is 0 then you need a template to interpret that.

Funny you should mention, this morning i made a template using one of those entities and added 1 to it just so it wouldn’t be 0… and the problem persisted which is basically what you said…