How to identify which z-wave device in log

For Z-Wave related questions in Domoticz

Moderator: leecollings

Post Reply
jefft
Posts: 75
Joined: Monday 23 January 2017 23:30
Target OS: Linux
Domoticz version: 2023.1
Location: UK
Contact:

How to identify which z-wave device in log

Post by jefft »

Is there any way to identify which device z-wave reports in the log come from?

I'm getting a lot - by which I mean, roughly one every second - of these reports and I'd like to know what's sending them; seems way too often for NIFs - I have only about 30 devices that have usage metering capability.

2019-12-31 09:41:03.950 (zwave) General/kWh (kWh Meter)
2019-12-31 09:41:04.949 (zwave) General/kWh (kWh Meter)
2019-12-31 09:41:05.950 (zwave) General/kWh (kWh Meter)
2019-12-31 09:41:06.949 (zwave) General/kWh (kWh Meter)
2019-12-31 09:41:07.950 (zwave) General/kWh (kWh Meter)

Thanks!
Domoticz, Z-Stick Gen.5, zzh Zigbee, rxftrx433XL on Ubuntu 22.04, HP 290 G1.
Node Red, MQTT, 80+ Z-wave, ESP8266 & Shelly, handful of Zigbee bulbs. EMS-ESP gateway for Bosch boiler. Controlicz, until it dies :-(
jefft
Posts: 75
Joined: Monday 23 January 2017 23:30
Target OS: Linux
Domoticz version: 2023.1
Location: UK
Contact:

Re: How to identify which z-wave device in log

Post by jefft »

Ok, I've worked this out and managed to fix my rogue overly-chatty device. For anyone finding this in the future, here's how:

Absent useful IDs in the log from domoticz, this sort of investigation has to be done by using the OZW log. Stop the services, then set these two options in Config/options.xml:
<Option name="Logging" value="true" />
<Option name="LogFileName" value="ozw.log" />
Restart the service and you'll see ozw.log in the Config folder. Identify the timestamps of the interesting events in the dz log and then find the same times (possibly a split-second earlier) in the ozw log and there will be the details of what conversation the controller was having and with which device.

Turn off ozw's logging ASAP; the amount it's writing, that file will get large very quickly on a large network and I suspect it'll have a noticeable performance impact too, if you're using a small machine like a Pi.
Domoticz, Z-Stick Gen.5, zzh Zigbee, rxftrx433XL on Ubuntu 22.04, HP 290 G1.
Node Red, MQTT, 80+ Z-wave, ESP8266 & Shelly, handful of Zigbee bulbs. EMS-ESP gateway for Bosch boiler. Controlicz, until it dies :-(
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest