From 5a46c100bfec3c6d9807081d15072bb968f2abe5 Mon Sep 17 00:00:00 2001 From: Clive Date: Sun, 14 Jun 2026 00:07:21 +0100 Subject: [PATCH] Remove redundant native-state declarations from sensor device types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 11 type="sensor" device definitions that enable a native display state via their creation props (SupportsSensorValue or SupportsOnState True) still declared that same state in Devices.xml, so the Indigo client logs a "native state keys cannot be overriden (ignoring)" error per device at startup — the same issue already handled on the relay base type. Removed sensorValue from Temperature/Humidity/Illuminance/Pressure/Flow/CO2/ PM25/TVOC and onOffState from Motion/Contact/SmokeCO. matterAirQualitySensor is deliberately left untouched — it sets both Supports* props False, so there sensorValue is a legal XML-declared custom state (issue #56), not the native key. Full test suite green (773 passed). --- .../Contents/Server Plugin/Devices.xml | 63 ------------------- 1 file changed, 63 deletions(-) diff --git a/indigo-matter.indigoPlugin/Contents/Server Plugin/Devices.xml b/indigo-matter.indigoPlugin/Contents/Server Plugin/Devices.xml index 4ade3b1..2581a04 100644 --- a/indigo-matter.indigoPlugin/Contents/Server Plugin/Devices.xml +++ b/indigo-matter.indigoPlugin/Contents/Server Plugin/Devices.xml @@ -123,12 +123,6 @@ - - Number - Temperature - Temperature is - Temperature - Integer Battery Level @@ -155,12 +149,6 @@ - - Number - Humidity - Humidity is - Humidity - Integer Battery Level @@ -187,11 +175,6 @@ - - Boolean - Motion - Motion - Integer Battery Level @@ -218,11 +201,6 @@ - - Boolean - Contact - Contact - Integer Battery Level @@ -249,12 +227,6 @@ - - Number - Illuminance - Illuminance is - Illuminance (lux) - Integer Battery Level @@ -416,11 +388,6 @@ - - Boolean - Alarm - Alarm - String Expressed State @@ -520,12 +487,6 @@ - - Number - CO₂ (ppm) - CO₂ is - CO₂ (ppm) - Integer Battery Level @@ -553,12 +514,6 @@ - - Number - PM2.5 (µg/m³) - PM2.5 is - PM2.5 (µg/m³) - Integer Battery Level @@ -586,12 +541,6 @@ - - Number - TVOC - TVOC is - TVOC - Integer Battery Level @@ -659,12 +608,6 @@ - - Number - Pressure - Pressure is - Pressure (hPa) - Integer Battery Level @@ -691,12 +634,6 @@ - - Number - Flow - Flow is - Flow (m³/h) - Integer Battery Level