From 28d409f1450c82cc1f0f732c88c25b42aa13b7f6 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 3 Jan 2011 20:02:46 +0100 Subject: [PATCH] added powersensor definition --- lib/Definition/EntityDefinition.json | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/Definition/EntityDefinition.json b/lib/Definition/EntityDefinition.json index 2f94ecb..13a4c7f 100644 --- a/lib/Definition/EntityDefinition.json +++ b/lib/Definition/EntityDefinition.json @@ -49,10 +49,20 @@ "required" : ["title", "resolution"], "optional" : ["description", "details:", "owner:", "address:", "tolerance", "port", "cuuid", "public", "active"], "icon" : "", // TODO look for an icon - "unit" : "kW/h", + "unit" : "kW", "interpreter" : "Volkszaehler\\Interpreter\\MeterInterpreter", "model" : "Volkszaehler\\Model\\Channel", - "translation" : { "de" : "Strom" } + "translation" : { "de" : "Stromzähler" } + }, + { + "name" : "powersensor", + "required" : ["title"], + "optional" : ["description", "details:", "owner:", "address:", "tolerance", "port", "cuuid", "public", "active"], + "icon" : "", // TODO look for an icon + "unit" : "kW", + "interpreter" : "Volkszaehler\\Interpreter\\SensorInterpreter", + "model" : "Volkszaehler\\Model\\Channel", + "translation" : { "de" : "Stromsensor" } }, { "name" : "gas",