From 0a8bd271d753f79a6998f7a1bf1ea520433bc0ba Mon Sep 17 00:00:00 2001
From: pswid <78219494+pswid@users.noreply.github.com>
Date: Sun, 18 Jun 2023 10:44:48 +0200
Subject: [PATCH] feat(add): 98847 (#5888)

* add support for EGLO FUEVA-Z (ceiling light IP44)

It seems to be working, however preset "warm" is missing for color_temp and color_temp_startup (where are only coolest, cool, neutral and warmest). Why? I also noticed that both "neutral" and "warmiest" pressets are equal 370. It should be fixed, but how?

* Update eglo.ts

---------

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
---
 src/devices/eglo.ts | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/devices/eglo.ts b/src/devices/eglo.ts
index 0a1bf7e28b947..3a8135288f1e3 100644
--- a/src/devices/eglo.ts
+++ b/src/devices/eglo.ts
@@ -23,6 +23,13 @@ const definitions: Definition[] = [
         description: 'SALITERAS-Z ceiling light',
         extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 370]}),
     },
+    {
+        zigbeeModel: ['EGLO_ZM_TW_CLP'],
+        model: '98847',
+        vendor: 'EGLO',
+        description: 'FUEVA-Z ceiling light IP44',
+        extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 370]}),
+    },
 ];
 
 module.exports = definitions;