question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Logs don't comply with Homebridge logging system.

See original GitHub issue

Describe the bug There are no logs for this plugin in Homebdrige, unless one enables debug logging, which seems to be simply a some print commands.

Other plugins show a log like

[12/19/2021, 7:47:38 PM] [PLUGIN_NAME] Some plugin message.

However tuya-homebridge doesn’t log any message. When debug mode is enabled, it returns something like

TuyaOpenMQ onMessage: topic = cloud/token/in/TOKEN, message = {"data":{"dataId":"XXXXXX","devId":"YYYYY","productKey":"ZZZZZ","status":[{"3":63,"code":"temp_current","t":"1639972216","value":63}]},"protocol":4,"pv":"2.0","sign":"WWWWWWW","t":1639972216}

It would be great to have better logging without enabling debug mode, so it is possible to track normal behaviors regarding status, automations, etc.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rcoletti116commented, Dec 29, 2021

Many users don’t care or even want to see complex logs printed on the console

I think this assumes a lot. Proper logging is important to many users. You don’t need them all of the time, but when you do need them having them accessible and formatted properly helps a lot, especially if you run many homebridge plugins.

I do think you should update logging to follow conventional formatting, but leave complex logs under the debug setting (but formatted correctly). If you use the built in Homebridge logger you can easily address this.

0reactions
github-actions[bot]commented, Feb 28, 2022

Stale issue. we will close the issue soon. If this issue has not been resolved, please update the issue and contact us in time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Config for logs is not loaded. · Issue #664 · oznu/homebridge ...
The log widget keeps showing: Loading logs using "file" method. ... Homebridge Config UI X Version: v4.17.1; Operating System: Docker ...
Read more >
Homebridge Log not updating - Reddit
The trouble I am having is that the log file stopped updating on 8/13. I don't know why. When looking at the log...
Read more >
Is there a way to enable logs in homebridge?
Is it possible for logs to include sensor status changes? For example: [Konnected] Zone 1 open at hh:mm:ss It's useful to track vibration...
Read more >
Tuya Homebridge Not Working - OrganiCoal
There's no window shutter device, other than Zemismart's, working on Apple Home App. From the log you can see that there are many...
Read more >
Unify your smart home with HOOBS – use non-HomeKit devices
Homebridge is a piece of software that connects to an unsupported ... Log in to your Google account – the same one used...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found