From 92d4001c0c000a104c461f0c008aef1256c3d5a6 Mon Sep 17 00:00:00 2001 From: Adrian Scillato <35405447+ascillato@users.noreply.github.com> Date: Thu, 17 May 2018 01:42:51 -0300 Subject: [PATCH] Add Energy Information for KNX Add Energy Information for KNX --- sonoff/sonoff.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/sonoff/sonoff.h b/sonoff/sonoff.h index a2eecea4f..47fec4645 100644 --- a/sonoff/sonoff.h +++ b/sonoff/sonoff.h @@ -131,6 +131,18 @@ typedef unsigned long power_t; // Power (Relay) type #define DAWN_NAUTIC -12.0 #define DAWN_ASTRONOMIC -18.0 +// Sensor definition for KNX Driver +#define KNX_TEMPERATURE 17 +#define KNX_HUMIDITY 18 +#define KNX_ENERGY_VOLTAGE 19 +#define KNX_ENERGY_CURRENT 20 +#define KNX_ENERGY_POWER 21 +#define KNX_ENERGY_POWERFACTOR 22 +#define KNX_ENERGY_DAILY 23 +#define KNX_ENERGY_START 24 +#define KNX_ENERGY_TOTAL 25 +#define KNX_MAX_device_param 25 + /*********************************************************************************************\ * Enumeration \*********************************************************************************************/ @@ -180,4 +192,4 @@ const uint8_t kDefaultRfCode[9] PROGMEM = { 0x21, 0x16, 0x01, 0x0E, 0x03, 0x48, extern uint8_t light_device; // Light device number -#endif // _SONOFF_H_ \ No newline at end of file +#endif // _SONOFF_H_