From 57c819f04358901fd4769f24f938215891a23cb7 Mon Sep 17 00:00:00 2001 From: Kamran Siddiqi Date: Sun, 5 Jan 2025 16:24:57 -0800 Subject: [PATCH 1/2] Add Support for Moisture Sensor Added support for water/moisture sensor. --- drivers/konnected-alarm-panel.groovy | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/konnected-alarm-panel.groovy b/drivers/konnected-alarm-panel.groovy index 91e4374..2d5968e 100644 --- a/drivers/konnected-alarm-panel.groovy +++ b/drivers/konnected-alarm-panel.groovy @@ -244,6 +244,11 @@ private void doParseState(Map message) { value = message.state ? 'on' : 'off' description = 'Switch' break + case 'water': + if (!message.hasState) { return } + value = message.state ? 'dry' : 'wet' + description = 'Moisture' + break case 'temperature': value = message.state.setScale(1, RoundingMode.HALF_UP); description = 'Temperature' @@ -326,4 +331,4 @@ private DeviceWrapper getOrCreateDevice(key, deviceType, label = null) { return d } -#include esphome.espHomeApiHelper \ No newline at end of file +#include esphome.espHomeApiHelper From c5b8261e6e0e427ced95b34aa7b028c4e1ecbd12 Mon Sep 17 00:00:00 2001 From: Kamran Siddiqi Date: Sun, 5 Jan 2025 16:36:54 -0800 Subject: [PATCH 2/2] Increment Version to 0.4 --- package-alarm-panel.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package-alarm-panel.json b/package-alarm-panel.json index 0055d41..63dc029 100644 --- a/package-alarm-panel.json +++ b/package-alarm-panel.json @@ -1,7 +1,7 @@ { "packageName": "Alarm Panel (universal)", "author": "Konnected Inc.", - "version": "0.3", + "version": "0.4", "minimumHEVersion": "0.0", "dateReleased": "2024-09-27", "bundles": [ @@ -29,4 +29,4 @@ "required": true } ] -} \ No newline at end of file +}