Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New device support]: Loocam WT1 Water Leak Sensor #26635

Open
oapy123 opened this issue Mar 6, 2025 · 0 comments
Open

[New device support]: Loocam WT1 Water Leak Sensor #26635

oapy123 opened this issue Mar 6, 2025 · 0 comments
Labels
new device support New device support request

Comments

@oapy123
Copy link

oapy123 commented Mar 6, 2025

Link

https://loocam.com/products/loocam-water-leak-detector-for-smart-home-require-hub-2-4g-ip66

Database entry

{"id":33,"type":"EndDevice","ieeeAddr":"0x0cae5ffffeefe7de","nwkAddr":27602,"manufId":4098,"manufName":"","powerSource":"Battery","modelId":"LNAWTC2WBS","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":260,"inClusterList":[0,3,1280],"outClusterList":[3,25],"clusters":{"genBasic":{"attributes":{"modelId":"LNAWTC2WBS","manufacturerName":"","powerSource":3,"zclVersion":8,"appVersion":108,"stackVersion":0,"hwVersion":104,"dateCode":"","swBuildId":""}},"ssIasZone":{"attributes":{"iasCieAddr":"0x048727fffe1bfc06","zoneState":1}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":108,"stackVersion":0,"hwVersion":104,"dateCode":"","swBuildId":"","zclVersion":8,"interviewCompleted":true,"meta":{},"lastSeen":1741300509284}

Zigbee2MQTT version

2.1.3

Comments

Device Name: Loocam WT1 Water Leak Sensor
Manufacturer: Neo Coolcam
Model ID: WT1
Zigbee Model ID: LNAWTC2WBS

Pairing Logs:
info 2025-03-06 17:34:48z2m: Zigbee: allowing new devices to join. info 2025-03-06 17:34:48z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"time":254},"status":"ok","transaction":"8s37l-1"}' info 2025-03-06 17:34:53zh:controller: Interview for '0x0cae5ffffeefe7de' started info 2025-03-06 17:34:53z2m: Device '0x0cae5ffffeefe7de' joined info 2025-03-06 17:34:53z2m: Starting interview of '0x0cae5ffffeefe7de' info 2025-03-06 17:34:53z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x0cae5ffffeefe7de","ieee_address":"0x0cae5ffffeefe7de"},"type":"device_joined"}' info 2025-03-06 17:34:53z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x0cae5ffffeefe7de","ieee_address":"0x0cae5ffffeefe7de","status":"started"},"type":"device_interview"}' info 2025-03-06 17:35:09zh:controller: Succesfully interviewed '0x0cae5ffffeefe7de' info 2025-03-06 17:35:09z2m: Successfully interviewed '0x0cae5ffffeefe7de', device has successfully been paired warning 2025-03-06 17:35:09z2m: Device '0x0cae5ffffeefe7de' with Zigbee model 'LNAWTC2WBS' and manufacturer name '' is NOT supported, please follow https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html info 2025-03-06 17:35:09z2m:mqtt: MQTT publish: topic 'homeassistant/binary_sensor/0x0cae5ffffeefe7de/alarm_1/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"hw_version":104,"identifiers":["zigbee2mqtt_0x0cae5ffffeefe7de"],"manufacturer":"","model":"Automatically generated definition","model_id":"LNAWTC2WBS","name":"0x0cae5ffffeefe7de","sw_version":"","via_device":"zigbee2mqtt_bridge_0x048727fffe1bfc06"},"name":"Alarm 1","object_id":"0x0cae5ffffeefe7de_alarm_1","origin":{"name":"Zigbee2MQTT","sw":"2.1.3","url":"https://www.zigbee2mqtt.io"},"payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x0cae5ffffeefe7de","unique_id":"0x0cae5ffffeefe7de_alarm_1_zigbee2mqtt","value_template":"{{ value_json.alarm_1 }}"}' info 2025-03-06 17:35:09z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Automatically generated definition","exposes":[{"access":1,"description":"Indicates whether IAS Zone alarm 1 is active","label":"Alarm 1","name":"alarm_1","property":"alarm_1","type":"binary","value_off":false,"value_on":true},{"access":1,"description":"Indicates whether IAS Zone alarm 2 is active","label":"Alarm 2","name":"alarm_2","property":"alarm_2","type":"binary","value_off":false,"value_on":true},{"access":1,"category":"diagnostic","description":"Indicates whether the device is tampered","label":"Tamper","name":"tamper","property":"tamper","type":"binary","value_off":false,"value_on":true},{"access":1,"category":"diagnostic","description":"Indicates whether the battery of the device is almost empty","label":"Battery low","name":"battery_low","property":"battery_low","type":"binary","value_off":false,"value_on":true},{"access":1,"category":"diagnostic","description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"LNAWTC2WBS","options":[],"supports_ota":false,"vendor":""},"friendly_name":"0x0cae5ffffeefe7de","ieee_address":"0x0cae5ffffeefe7de","status":"successful","supported":false},"type":"device_interview"}' info 2025-03-06 17:35:09z2m:mqtt: MQTT publish: topic 'homeassistant/binary_sensor/0x0cae5ffffeefe7de/alarm_2/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"hw_version":104,"identifiers":["zigbee2mqtt_0x0cae5ffffeefe7de"],"manufacturer":"","model":"Automatically generated definition","model_id":"LNAWTC2WBS","name":"0x0cae5ffffeefe7de","sw_version":"","via_device":"zigbee2mqtt_bridge_0x048727fffe1bfc06"},"name":"Alarm 2","object_id":"0x0cae5ffffeefe7de_alarm_2","origin":{"name":"Zigbee2MQTT","sw":"2.1.3","url":"https://www.zigbee2mqtt.io"},"payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x0cae5ffffeefe7de","unique_id":"0x0cae5ffffeefe7de_alarm_2_zigbee2mqtt","value_template":"{{ value_json.alarm_2 }}"}' info 2025-03-06 17:35:09z2m:mqtt: MQTT publish: topic 'homeassistant/binary_sensor/0x0cae5ffffeefe7de/tamper/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"hw_version":104,"identifiers":["zigbee2mqtt_0x0cae5ffffeefe7de"],"manufacturer":"","model":"Automatically generated definition","model_id":"LNAWTC2WBS","name":"0x0cae5ffffeefe7de","sw_version":"","via_device":"zigbee2mqtt_bridge_0x048727fffe1bfc06"},"device_class":"tamper","entity_category":"diagnostic","object_id":"0x0cae5ffffeefe7de_tamper","origin":{"name":"Zigbee2MQTT","sw":"2.1.3","url":"https://www.zigbee2mqtt.io"},"payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x0cae5ffffeefe7de","unique_id":"0x0cae5ffffeefe7de_tamper_zigbee2mqtt","value_template":"{{ value_json.tamper }}"}' info 2025-03-06 17:35:09z2m:mqtt: MQTT publish: topic 'homeassistant/binary_sensor/0x0cae5ffffeefe7de/battery_low/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"hw_version":104,"identifiers":["zigbee2mqtt_0x0cae5ffffeefe7de"],"manufacturer":"","model":"Automatically generated definition","model_id":"LNAWTC2WBS","name":"0x0cae5ffffeefe7de","sw_version":"","via_device":"zigbee2mqtt_bridge_0x048727fffe1bfc06"},"device_class":"battery","entity_category":"diagnostic","object_id":"0x0cae5ffffeefe7de_battery_low","origin":{"name":"Zigbee2MQTT","sw":"2.1.3","url":"https://www.zigbee2mqtt.io"},"payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x0cae5ffffeefe7de","unique_id":"0x0cae5ffffeefe7de_battery_low_zigbee2mqtt","value_template":"{{ value_json.battery_low }}"}' info 2025-03-06 17:35:09z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/0x0cae5ffffeefe7de/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"hw_version":104,"identifiers":["zigbee2mqtt_0x0cae5ffffeefe7de"],"manufacturer":"","model":"Automatically generated definition","model_id":"LNAWTC2WBS","name":"0x0cae5ffffeefe7de","sw_version":"","via_device":"zigbee2mqtt_bridge_0x048727fffe1bfc06"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:signal","name":"Linkquality","object_id":"0x0cae5ffffeefe7de_linkquality","origin":{"name":"Zigbee2MQTT","sw":"2.1.3","url":"https://www.zigbee2mqtt.io"},"state_class":"measurement","state_topic":"zigbee2mqtt/0x0cae5ffffeefe7de","unique_id":"0x0cae5ffffeefe7de_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}'

External definition

const m = require('zigbee-herdsman-converters/lib/modernExtend');

const definition = {
    zigbeeModel: ['LNAWTC2WBS'],
    model: 'LNAWTC2WBS',
    vendor: '',
    description: 'Automatically generated definition',
    extend: [m.iasZoneAlarm({"zoneType":"generic","zoneAttributes":["alarm_1","alarm_2","tamper","battery_low"]})],
    meta: {},
};

module.exports = definition;

What does/doesn't work with the external definition?

Alarm 1 seems to represent the water leak sensor state.

Alarm 2 doesn't seem to correspond to anything. It doesn't appear to ever change from True

Tamper always reads Clear, this device doesn't seem to have a tamper switch so I don't think this should be exposed

Battery low always reads True, tested with several brand new batteries

When I put sensor in water, this is the log I see:
info 2025-03-06 17:39:52z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0x0cae5ffffeefe7de', payload '{"alarm_1":false,"alarm_2":true,"battery_low":true,"linkquality":200,"tamper":false}'

When I remove sensor from water, this is the log I see:
info 2025-03-06 17:39:12z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0x0cae5ffffeefe7de', payload '{"alarm_1":true,"alarm_2":true,"battery_low":true,"linkquality":180,"tamper":false}'

@oapy123 oapy123 added the new device support New device support request label Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new device support New device support request
Projects
None yet
Development

No branches or pull requests

1 participant