diff --git a/src/_C002.cpp b/src/_C002.cpp index 1645866698..dc9f9f13bd 100644 --- a/src/_C002.cpp +++ b/src/_C002.cpp @@ -110,7 +110,7 @@ bool CPlugin_002(CPlugin::Function function, struct EventStruct *event, String& switch (Settings.getPluginID_for_task(x).value) { case 1: // temp solution, if input switch, update state { - action = strformat(F("gpio,%d,%d"), x, static_cast(nvalue)); + action = strformat(F("gpio,%d,%d"), Settings.TaskDevicePin1[x], static_cast(nvalue)); break; } case 29: // temp solution, if plugin 029, set gpio