diff --git a/tasmota/support_features.ino b/tasmota/support_features.ino index abd5f4236..4dc1ee416 100644 --- a/tasmota/support_features.ino +++ b/tasmota/support_features.ino @@ -590,8 +590,9 @@ void GetFeatures(void) #ifdef USE_LMT01 feature6 |= 0x00080000; // xsns_74_lmt01.ino #endif - -// feature6 |= 0x00100000; +#ifdef USE_PROMETHEUS + feature6 |= 0x00100000; // xsns_75_prometheus.ino +#endif // feature6 |= 0x00200000; // feature6 |= 0x00400000; // feature6 |= 0x00800000; diff --git a/tasmota/xsns_91_prometheus.ino b/tasmota/xsns_75_prometheus.ino similarity index 96% rename from tasmota/xsns_91_prometheus.ino rename to tasmota/xsns_75_prometheus.ino index 16d98fc64..5f50f8a2d 100644 --- a/tasmota/xsns_91_prometheus.ino +++ b/tasmota/xsns_75_prometheus.ino @@ -1,5 +1,5 @@ /* - xsns_91_prometheus.ino - Web based information for Tasmota + xsns_75_prometheus.ino - Web based information for Tasmota Copyright (C) 2020 Theo Arends @@ -22,7 +22,7 @@ * Prometheus support \*********************************************************************************************/ -#define XSNS_91 91 +#define XSNS_75 75 void HandleMetrics(void) { @@ -85,7 +85,7 @@ void HandleMetrics(void) * Interface \*********************************************************************************************/ -bool Xsns91(uint8_t function) +bool Xsns75(uint8_t function) { bool result = false; diff --git a/tools/decode-status.py b/tools/decode-status.py index cdceced48..bdffa4ba3 100755 --- a/tools/decode-status.py +++ b/tools/decode-status.py @@ -207,7 +207,7 @@ a_features = [[ "USE_WINDMETER","USE_OPENTHERM","USE_THERMOSTAT","USE_VEML6075", "USE_VEML7700","USE_MCP9808","USE_BL0940","USE_TELEGRAM", "USE_HP303B","USE_TCP_BRIDGE","USE_TELEINFO","USE_LMT01", - "","","","", + "USE_PROMETHEUS","","","", "","","","", "","","USE_ETHERNET","USE_WEBCAM" ]] @@ -243,7 +243,7 @@ else: obj = json.load(fp) def StartDecode(): - print ("\n*** decode-status.py v20200617 by Theo Arends and Jacek Ziolkowski ***") + print ("\n*** decode-status.py v20200627 by Theo Arends and Jacek Ziolkowski ***") # print("Decoding\n{}".format(obj))