Page 1 of 1

How to identify which z-wave device in log

Posted: Tuesday 31 December 2019 10:46
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!

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

Posted: Wednesday 01 January 2020 13:20
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.