Page 1 of 1

Zibbee2mqtt device log / history

Posted: Sunday 26 September 2021 12:59
by peteralm
I have tried everything I can think of but when I look at the log for any zigbee2mqtt device I just get a message saying "No data available in table"

I am pretty sure I used to get some log history here, and I do for all other devices. The devices function OK on the dashboard and I can reference them in the LUA and other events - they look like they work, just have no history. This applies to all zignee2mqtt devices, my zwave and lightwave devices all work ok?
Does anyone have the same or any suggestions?

Thanks

Peter

Re: Zibbee2mqtt device log / history

Posted: Sunday 26 September 2021 13:18
by EddyG
Are these entries present in your configuration.yaml?

Code: Select all

  log_level: info
  log_directory: /var/log/zigbee
  log_file: log.txt
  log_output:
    - console
    - file
And is access granted to that directory (rw) for the user with which zigbee2mqtt is started?
That is also present in the GUI under Settings -> Advanced

Re: Zibbee2mqtt device log / history

Posted: Sunday 26 September 2021 15:54
by peteralm
Hi

I now have those in my configuration file and I have created a directory:

drwxrwxr-x 2 pi adm 4096 Sep 26 14:18 zigbee

But there is nothing in it yet. I am getting the info in the console OK:

Info MQTT publish: topic 'zigbee2mqtt/Cave Sensor', payload '{"battery":100,"humidity":57.2,"linkquality":44,"temperature":22.5,"voltage":2900}'
Info MQTT publish: topic 'zigbee2mqtt/Cave Sensor', payload '{"battery":100,"humidity":55.6,"linkquality":44,"temperature":22.5,"voltage":2900}'

Actually, temperature sensors are creating the graphs and log OK - it is the switches, motion sensors and buttons that do not have any history.

p.

Re: Zibbee2mqtt device log / history

Posted: Sunday 26 September 2021 16:10
by EddyG
Are you running zigbee2mqtt as a service?
Try remove the ' - console' line, change access to zigbee dir to 777 and restart zigbee2mqtt

In Domoticz at Setup -> Settings -> tab Log History there is Light/Switches setting. Is that more then 1?

Re: Zibbee2mqtt device log / history

Posted: Sunday 26 September 2021 19:01
by peteralm
Yes, running as a service through sysctrl and there is 7 set in the switch log.

A quick reboot later and I have a log.txt in the folder, but just the same as was in the console log on the front end. No mention of any errors or anythinf that would give a clue as to why the log is not being populated in domoticz. I think switches put their entries in the lightning in the database - I will check in there to see what's in there with the row number = device.

p.

Re: Zibbee2mqtt device log / history

Posted: Tuesday 28 September 2021 11:51
by Ericv
I have the same observation.

Any progress on this?

Re: Zibbee2mqtt device log / history

Posted: Friday 01 October 2021 11:38
by Pete118
Me too, any news?