domoticz_mqtt_discovery
domoticz_mqtt_discovery copied to clipboard
"Ignored device topics" is too imprecise
- An empty string between commas (e.g.
topic1,,topic2
) blacklists all topics, causing the plugin to ignore everything it saw. - Generic stuff (e.g.
t
) massively blacklist topics that it likely shouldn't block (e.g.tele/*
,tasmota/*
, etc.)
My suggesstion would be switching to fnmatch or regexp against the full topic names instead of just doing naive prefix matching.
Pull requests are welcome :)