iklein99 / homebridge-smartthings

This is a plugin to Homebridge to connect your Smartthings network into Apple Home Kit.
Apache License 2.0
158 stars 53 forks source link

Water Leak Values Issue #63

Closed coryabooth closed 1 year ago

coryabooth commented 1 year ago

[10/27/2022, 9:55:41 AM] [Smartthings Plug (IK)] Poll failure on Water Main Leak [10/27/2022, 9:55:46 AM] [Smartthings Plug (IK)] Water Main Leak returned bad value for status [10/27/2022, 9:55:46 AM] [Smartthings Plug (IK)] Bad status from Water Main Leak [10/27/2022, 9:55:46 AM] [Smartthings Plug (IK)] Poll failure on Water Main Leak [10/27/2022, 9:55:51 AM] [Smartthings Plug (IK)] Water Main Leak returned bad value for status [10/27/2022, 9:55:51 AM] [Smartthings Plug (IK)] Bad status from Water Main Leak [10/27/2022, 9:55:51 AM] [Smartthings Plug (IK)] Poll failure on Water Main Leak [10/27/2022, 9:55:56 AM] [Smartthings Plug (IK)] Water Main Leak returned bad value for status [10/27/2022, 9:55:56 AM] [Smartthings Plug (IK)] Bad status from Water Main Leak [10/27/2022, 9:55:56 AM] [Smartthings Plug (IK)] Poll failure on Water Main Leak [10/27/2022, 9:56:01 AM] [Smartthings Plug (IK)] Water Main Leak returned bad value for status [10/27/2022, 9:56:01 AM] [Smartthings Plug (IK)] Bad status from Water Main Leak [10/27/2022, 9:56:01 AM] [Smartthings Plug (IK)] Poll failure on Water Main Leak [10/27/2022, 9:56:06 AM] [Smartthings Plug (IK)] Water Main Leak returned bad value for status [10/27/2022, 9:56:06 AM] [Smartthings Plug (IK)] Bad status from Water Main Leak [10/27/2022, 9:56:06 AM] [Smartthings Plug (IK)] Poll failure on Water Main Leak [10/27/2022, 9:56:11 AM] [Smartthings Plug (IK)] Water Main Leak returned bad value for status [10/27/2022, 9:56:11 AM] [Smartthings Plug (IK)] Bad status from Water Main Leak [10/27/2022, 9:56:11 AM] [Smartthings Plug (IK)] Poll failure on Water Main Leak [10/27/2022, 9:56:16 AM] [Smartthings Plug (IK)] Water Main Leak returned bad value for status [10/27/2022, 9:56:16 AM] [Smartthings Plug (IK)] Bad status from Water Main Leak [10/27/2022, 9:56:16 AM] [Smartthings Plug (IK)] Poll failure on Water Main Leak [10/27/2022, 9:56:21 AM] [Smartthings Plug (IK)] Water Main Leak returned bad value for status [10/27/2022, 9:56:21 AM] [Smartthings Plug (IK)] Bad status from Water Main Leak

Current States

tamper: clear battery: 99 % water: dry checkInterval: 29400 s temperature: 74 F

iklein99 commented 1 year ago

Please put homebridge in debug mode restart and capture the payload from that sensor when it is polled and send that along.

coryabooth commented 1 year ago

[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Received getSensorState() event for Water Main Leak [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Refreshing status for Water Main Leak - current timestamp is 1666885111044 [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] State for Water Main Leak: 0 [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Water Main Leak polling... [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Received getSensorState() event for Water Main Leak [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Refreshing status for Water Main Leak - current timestamp is 1666885111044 [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Converting temp to celcius [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] State for Water Main Leak: 23.333333333333336 [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Water Main Leak polling... [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Received getSensorState() event for Water Main Leak [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Refreshing status for Water Main Leak - current timestamp is 1666885111044 [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Water Main Leak returned bad value for status [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Bad status from Water Main Leak [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Poll failure on Water Main Leak [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Received getBatteryLevel() event for Water Main Leak [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Refreshing status for Water Main Leak - current timestamp is 1666885111044 [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Battery value from Water Main Leak: 99 [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Water Main Leak polling...

iklein99 commented 1 year ago

When you run in debug, you should also see something like this: Updated status for Zooz 4-in-1 sensor: {"relativeHumidityMeasurement":{"humidity":{"value":48,"unit":"%","timestamp":"2022-10-27T14:32:38.883Z"}},"temperatureMeasurement":{"temperature":{"value":75.3,"unit":"F","timestamp":"2022-10-27T14:32:38.767Z"}},"refresh":{},"motionSensor":{"motion":{"value":"inactive","timestamp":"2022-10-27T14:29:39.372Z"}},"illuminanceMeasurement":{"illuminance":{"value":369,"unit":"lux","timestamp":"2022-10-27T14:35:37.960Z"}},"battery":{"battery":{"value":null}},"tamperAlert":{"tamper":{"value":"clear","timestamp":"2022-10-27T13:53:14.723Z"}}}

I would need to see this. You can look for the name of the device to find this. I need to see all of this.

On Oct 27, 2022, at 11:40 AM, coryabooth @.***> wrote:

[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Received getSensorState() event for Water Main Leak [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Refreshing status for Water Main Leak - current timestamp is 1666885111044 [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] State for Water Main Leak: 0 [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Water Main Leak polling... [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Received getSensorState() event for Water Main Leak [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Refreshing status for Water Main Leak - current timestamp is 1666885111044 [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Converting temp to celcius [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] State for Water Main Leak: 23.333333333333336 [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Water Main Leak polling... [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Received getSensorState() event for Water Main Leak [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Refreshing status for Water Main Leak - current timestamp is 1666885111044 [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Water Main Leak returned bad value for status [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Bad status from Water Main Leak [10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Poll failure on Water Main Leak

— Reply to this email directly, view it on GitHub https://github.com/iklein99/homebridge-smartthings/issues/63#issuecomment-1293723708, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABG55EW6LYKO4STO3TKNCD3WFKO73ANCNFSM6AAAAAARQE53OM. You are receiving this because you commented.

coryabooth commented 1 year ago

[10/27/2022, 10:36:31 AM] [Smartthings Plug (IK)] Updated status for Water Main Leak: {"configuration":{},"relativeHumidityMeasurement":{"humidity":{"value":null}},"waterSensor":{"water":{"value":"dry","timestamp":"2022-08-22T00:25:23.424Z"}},"healthCheck":{"checkInterval":{"value":29400,"unit":"s","data":{"protocol":"zwave","hubHardwareId":"000F","deviceScheme":"TRACKED"},"timestamp":"2022-08-22T21:49:42.324Z"},"healthStatus":{"value":null},"DeviceWatch-Enroll":{"value":null},"DeviceWatch-DeviceStatus":{"value":null}},"temperatureMeasurement":{"temperature":{"value":74,"unit":"F","timestamp":"2021-10-06T17:48:53.027Z"}},"sensor":{},"battery":{"battery":{"value":99,"unit":"%","timestamp":"2022-10-27T05:09:10.033Z"}},"tamperAlert":{"tamper":{"value":"clear","timestamp":"2022-08-22T00:22:47.391Z"}}} [10/27/2022, 10:36:31 AM] [Smartthings Plug (IK)] Battery value from Water Main Leak: 99 [10/27/2022, 10:36:31 AM] [Smartthings Plug (IK)] Water Main Leak polling... [10/27/2022, 10:36:31 AM] [Smartthings Plug (IK)] Updated status for Upper Main: {"indicator":{"indicatorStatus":{"value":"when on","timestamp":"2022-01-05T03:14:47.826Z"}},"actuator":{},"light":{"switch":{"value":"off","timestamp":"2022-08-20T14:31:42.259Z"}},"healthCheck":{"checkInterval":{"value":1920,"unit":"s","data":{"protocol":"zwave","hubHardwareId":"000F","offlinePingable":"1","deviceScheme":"TRACKED"},"timestamp":"2022-01-05T03:14:46.320Z"},"healthStatus":{"value":null},"DeviceWatch-Enroll":{"value":null},"DeviceWatch-DeviceStatus":{"value":null}},"refresh":{},"sensor":{},"switch":{"switch":{"value":"off","timestamp":"2022-08-20T14:31:42.259Z"}}}

iklein99 commented 1 year ago

The issue is that the device is returning “null” for humidity: relativeHumidityMeasurement":{"humidity":{"value":null}}.

The sensor reports that it supports the humidity capability, but it isn’t returning a valid value. So this is working as intended. The other aspects of the sensor are usable in home kit. So this is just a warning.

In a future version, I’ll allow the user to silence these warnings.

On Oct 27, 2022, at 12:10 PM, coryabooth @.***> wrote:

[10/27/2022, 10:36:31 AM] [Smartthings Plug (IK)] Updated status for Water Main Leak: {"configuration":{},"relativeHumidityMeasurement":{"humidity":{"value":null}},"waterSensor":{"water":{"value":"dry","timestamp":"2022-08-22T00:25:23.424Z"}},"healthCheck":{"checkInterval":{"value":29400,"unit":"s","data":{"protocol":"zwave","hubHardwareId":"000F","deviceScheme":"TRACKED"},"timestamp":"2022-08-22T21:49:42.324Z"},"healthStatus":{"value":null},"DeviceWatch-Enroll":{"value":null},"DeviceWatch-DeviceStatus":{"value":null}},"temperatureMeasurement":{"temperature":{"value":74,"unit":"F","timestamp":"2021-10-06T17:48:53.027Z"}},"sensor":{},"battery":{"battery":{"value":99,"unit":"%","timestamp":"2022-10-27T05:09:10.033Z"}},"tamperAlert":{"tamper":{"value":"clear","timestamp":"2022-08-22T00:22:47.391Z"}}} [10/27/2022, 10:36:31 AM] [Smartthings Plug (IK)] Battery value from Water Main Leak: 99 [10/27/2022, 10:36:31 AM] [Smartthings Plug (IK)] Water Main Leak polling... [10/27/2022, 10:36:31 AM] [Smartthings Plug (IK)] Updated status for Upper Main: {"indicator":{"indicatorStatus":{"value":"when on","timestamp":"2022-01-05T03:14:47.826Z"}},"actuator":{},"light":{"switch":{"value":"off","timestamp":"2022-08-20T14:31:42.259Z"}},"healthCheck":{"checkInterval":{"value":1920,"unit":"s","data":{"protocol":"zwave","hubHardwareId":"000F","offlinePingable":"1","deviceScheme":"TRACKED"},"timestamp":"2022-01-05T03:14:46.320Z"},"healthStatus":{"value":null},"DeviceWatch-Enroll":{"value":null},"DeviceWatch-DeviceStatus":{"value":null}},"refresh":{},"sensor":{},"switch":{"switch":{"value":"off","timestamp":"2022-08-20T14:31:42.259Z"}}}

— Reply to this email directly, view it on GitHub https://github.com/iklein99/homebridge-smartthings/issues/63#issuecomment-1293760870, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABG55EXS5EPTQJWYMSJDCGLWFKSPBANCNFSM6AAAAAARQE53OM. You are receiving this because you commented.