emontnemery / domoticz_mqtt_discovery

MQTT discovery plugin for Domoticz
MIT License
40 stars 28 forks source link

[Question] Are 5 minute interval updates related to this plugin? #22

Closed Timmiej93 closed 4 years ago

Timmiej93 commented 4 years ago

Before using this plugin, I used the old fashioned way of controlling Tasmota devices. After switching over to your plugin, when I check the log of one of my Tasmota devices, I see an entry every 5 minutes, where it seems to report its current state. This doesn't seem to affect the functionality of the device, but it does clutter the log for no reason. Is this connected to this plugin? Is there any way to disable it?

As an example, I attached the image below. This only gets a command at 23:30 to turn off, nothing else, yet it has an entry every 5 minutes.

image

deennoo commented 4 years ago

Same for me, this cause sole problème when you use notification system.

Can this Can ne fixed please ?

emontnemery commented 4 years ago

There is code in the plugin to suppress the 5 minute periodic status updates. Please update "Debug" to "Verbose" for the plugin, and collect a log including the 5 minute update and attach it here.

Timmiej93 commented 4 years ago

I've just copied the domoticz log, starting at one of the 5 minute interval updates. Hope that's what you meant. log.txt

emontnemery commented 4 years ago

@Timmiej93 Please try this version of the plugin: https://github.com/emontnemery/domoticz_mqtt_discovery/blob/e51793e03a8a198fbe003e0f82b52bd8b85151e0/plugin.py

Timmiej93 commented 4 years ago

I think this may have fixed it. So far, I haven't got any 5 minute period updates anymore, and everything else still seems to be working just fine. I'll keep an eye on the data for a while, but so far, so good. Thanks for getting back to us, and for the awesome plugin of course.

emontnemery commented 4 years ago

@Timmiej93 Thanks for testing! The correction is merged to the main branch now.

Timmiej93 commented 4 years ago

@emontnemery No problem, thanks for fixing it.