From 9de401c311c5270f75650a633677f7a1f56f42e8 Mon Sep 17 00:00:00 2001
From: Marius <marius@twostairs.com>
Date: Fri, 19 Apr 2019 00:08:42 +0200
Subject: [PATCH] Fix for temperature field

---
 hue2influx.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hue2influx.py b/hue2influx.py
index 01797c5..3b63bb4 100644
--- a/hue2influx.py
+++ b/hue2influx.py
@@ -78,6 +78,8 @@ class Hue2Influx:
 
                 if state_key == 'lastupdated':
                     continue
+                elif state_key == 'temperature':
+                    state_value = state_value / 10
 
                 measurement['fields'][state_key] = state_value
 
-- 
GitLab