Skip to content
Snippets Groups Projects
Commit 29cdc0d3 authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Add humidity

parent e1cdd7fd
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,9 @@ func updateXAALDevice(bDevice *BridgeDevice, payload map[string]interface{}) {
if key == "temperature" && dev.DevType == "thermometer.basic" {
dev.GetAttribute("temperature").SetValue(value)
}
if key == "humidity" && dev.DevType == "hygrometer.basic" {
dev.GetAttribute("humidity").SetValue(value)
}
if key == "power" && dev.DevType == "powermeter.basic" {
dev.GetAttribute("power").SetValue(value)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment