Skip to content
This repository has been archived by the owner on Feb 18, 2023. It is now read-only.

Disable "Could not match topic ${topicuserpart} for user ${userid}" #31

Open
ivanovlk opened this issue Mar 19, 2019 · 5 comments
Open

Comments

@ivanovlk
Copy link

Question:

Is it possible to disable somehow the log of "Could not match topic ${topicuserpart} for user ${userid}" in index.js line 313. If i comment the line inside docker container, will it work ??

The reason is: I have few ( 7 to be precise) Sonoff devices which post telemetry and status messages in MQTT and my redis-worker Log is filled with "Could not match" messages :(

This makes it really hard to see if a real problem exists :)

BR,

@giejay
Copy link
Contributor

giejay commented Apr 10, 2019

Why, if I may ask, are your Sonoff devices publishing to the gBridge topic? The redis worker only listens to messages on the gBridge topic, so it makes sense that you would get that error if other non-gbridge related messages get published

@ivanovlk
Copy link
Author

ivanovlk commented Apr 10, 2019

Hi,

Yes. Tasmota devices post to /gbridge/u1/prefix/device_name/sufix

where prefix is (CMND, STAT, TELE and so on) and suffix is (POWER.... and so on)

CMDN and STAT ae handled by gBridge because they are maintained in status and power topic.

But TELE prefixes are not, and i was not able to disable them in Tasmota completely (even re-compiling tasmota with different settings).

BTW tele prefixes contain data such as (uptime, voltage levels and so on). Which i don't need at all :)

@giejay
Copy link
Contributor

giejay commented Apr 10, 2019

Ah ok, makes sense. Maybe we should log it at a certain level (info?) and make the loglevel (warn) configurable by config...

@ivanovlk
Copy link
Author

Thumbs up :)

Currently i just commented the line in index.js and the log is clean :)

@peterkappelt
Copy link
Member

peterkappelt commented Apr 10, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants