added additional fields for values in 3d

This commit is contained in:
jhartworks committed 2026-11-10 09:48:24 +01:00
1 parent 79c92c9225
commit fa71e040c1
7 files changed
+998 -932

No files matched your search

+2
View File
@@ -544,6 +544,7 @@ class NextFloor extends IPSModuleStrict
'°c', '°f', '℃', '℉', 'k' => 'temperature',
'ppm' => str_contains($text, 'co2') || str_contains($text, 'co₂') ? 'carbon_dioxide' : '',
'w', 'kw' => 'power',
'lx', 'lux' => 'illuminance',
default => ''
};
if ($unitClass !== '') {
@@ -553,6 +554,7 @@ class NextFloor extends IPSModuleStrict
str_contains($text, 'temperature') || str_contains($text, 'temperatur') => 'temperature',
str_contains($text, 'humidity') || str_contains($text, 'feucht') => 'humidity',
str_contains($text, 'co2') => 'carbon_dioxide',
str_contains($text, 'illuminance') || str_contains($text, 'beleuchtungsst') => 'illuminance',
str_contains($text, 'watt') || str_contains($text, 'power') || str_contains($text, 'leistung') => 'power',
preg_match('/kontakt|fenster|tür|tuer|motion|bewegung|presence|anwesen/', $text) === 1 => 'opening',
default => ''