diff --git a/src/_P005_DHT.ino b/src/_P005_DHT.ino index 4e4ae2137..37e0a68b0 100644 --- a/src/_P005_DHT.ino +++ b/src/_P005_DHT.ino @@ -86,6 +86,12 @@ boolean Plugin_005(uint8_t function, struct EventStruct *event, String& string) break; } + case PLUGIN_INIT: + { + success = true; + break; + } + case PLUGIN_READ: { success = P005_do_plugin_read(event); diff --git a/src/_P007_PCF8591.ino b/src/_P007_PCF8591.ino index eef433115..6b4d6f40a 100644 --- a/src/_P007_PCF8591.ino +++ b/src/_P007_PCF8591.ino @@ -48,6 +48,12 @@ boolean Plugin_007(uint8_t function, struct EventStruct *event, String& string) break; } + case PLUGIN_INIT: + { + success = true; + break; + } + case PLUGIN_READ: { uint8_t unit = (CONFIG_PORT - 1) / 4; diff --git a/src/_P010_BH1750.ino b/src/_P010_BH1750.ino index e18eb5506..db889c288 100644 --- a/src/_P010_BH1750.ino +++ b/src/_P010_BH1750.ino @@ -97,6 +97,12 @@ boolean Plugin_010(uint8_t function, struct EventStruct *event, String& string) break; } + case PLUGIN_INIT: + { + success = true; + break; + } + case PLUGIN_READ: { uint8_t address = PCONFIG(0); diff --git a/src/_P011_PME.ino b/src/_P011_PME.ino index 65c6e56c1..3ff0635e0 100644 --- a/src/_P011_PME.ino +++ b/src/_P011_PME.ino @@ -66,6 +66,12 @@ boolean Plugin_011(uint8_t function, struct EventStruct *event, String& string) break; } + case PLUGIN_INIT: + { + success = true; + break; + } + case PLUGIN_READ: { UserVar[event->BaseVarIndex] = Plugin_011_Read(PCONFIG(0), CONFIG_PORT); diff --git a/src/_P030_BMP280.ino b/src/_P030_BMP280.ino index c53468381..7c7c5af88 100644 --- a/src/_P030_BMP280.ino +++ b/src/_P030_BMP280.ino @@ -130,6 +130,12 @@ boolean Plugin_030(uint8_t function, struct EventStruct *event, String& string) break; } + case PLUGIN_INIT: + { + success = true; + break; + } + case PLUGIN_READ: { uint8_t idx = PCONFIG(0) & 0x1; // Addresses are 0x76 and diff --git a/src/_P034_DHT12.ino b/src/_P034_DHT12.ino index 7f4b2fc7f..6d0ae3dad 100644 --- a/src/_P034_DHT12.ino +++ b/src/_P034_DHT12.ino @@ -50,6 +50,12 @@ boolean Plugin_034(uint8_t function, struct EventStruct *event, String& string) break; } + case PLUGIN_INIT: + { + success = true; + break; + } + case PLUGIN_READ: { uint8_t dht_dat[5]; diff --git a/src/_P047_i2c-soil-moisture-sensor.ino b/src/_P047_i2c-soil-moisture-sensor.ino index 3034c5e5f..e640e25fb 100644 --- a/src/_P047_i2c-soil-moisture-sensor.ino +++ b/src/_P047_i2c-soil-moisture-sensor.ino @@ -121,6 +121,12 @@ boolean Plugin_047(uint8_t function, struct EventStruct *event, String& string) break; } + case PLUGIN_INIT: + { + success = true; + break; + } + case PLUGIN_READ: { if (P047_SENSOR_SLEEP) { diff --git a/src/_P051_AM2320.ino b/src/_P051_AM2320.ino index cffa54b9b..0fe6d4bc0 100644 --- a/src/_P051_AM2320.ino +++ b/src/_P051_AM2320.ino @@ -69,6 +69,12 @@ boolean Plugin_051(uint8_t function, struct EventStruct *event, String& string) break; } + case PLUGIN_INIT: + { + success = true; + break; + } + case PLUGIN_READ: { AM2320 th; diff --git a/src/_P072_HDC1080.ino b/src/_P072_HDC1080.ino index 184eea29b..7f8c9d7a9 100644 --- a/src/_P072_HDC1080.ino +++ b/src/_P072_HDC1080.ino @@ -50,6 +50,12 @@ boolean Plugin_072(uint8_t function, struct EventStruct *event, String& string) break; } + case PLUGIN_INIT: + { + success = true; + break; + } + case PLUGIN_READ: { uint8_t hdc1080_msb, hdc1080_lsb; diff --git a/src/_P086_Homie.ino b/src/_P086_Homie.ino index 3a5e5acc9..5c6b387c2 100644 --- a/src/_P086_Homie.ino +++ b/src/_P086_Homie.ino @@ -155,6 +155,12 @@ boolean Plugin_086(uint8_t function, struct EventStruct *event, String& string) break; } + case PLUGIN_INIT: + { + success = true; + break; + } + case PLUGIN_READ: { for (uint8_t x=0; x