From 3d40c76efe22301482b1ac908fb9592995a73bc4 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 5 Nov 2024 19:57:21 -0800 Subject: [PATCH] Add humidity attribute --- src/common/attributes/usePositionAttributes.js | 4 ++++ src/resources/l10n/en.json | 1 + 2 files changed, 5 insertions(+) diff --git a/src/common/attributes/usePositionAttributes.js b/src/common/attributes/usePositionAttributes.js index 0b191ebc..ce0845fc 100644 --- a/src/common/attributes/usePositionAttributes.js +++ b/src/common/attributes/usePositionAttributes.js @@ -294,6 +294,10 @@ export default (t) => useMemo(() => ({ name: t('positionAcceleration'), type: 'number', }, + humidity: { + name: t('positionHumidity'), + type: 'number', + }, deviceTemp: { name: t('positionDeviceTemp'), type: 'number', diff --git a/src/resources/l10n/en.json b/src/resources/l10n/en.json index 62d22cdd..f9fc15a1 100644 --- a/src/resources/l10n/en.json +++ b/src/resources/l10n/en.json @@ -310,6 +310,7 @@ "positionMotion": "Motion", "positionArmed": "Armed", "positionAcceleration": "Acceleration", + "positionHumidity": "Humidity", "positionTemp": "Temperature", "positionDeviceTemp": "Device Temperature", "positionCoolantTemp": "Coolant Temperature",