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_