/* ESPurna DHT MODULE Copyright (C) 2016-2017 by Xose PĂ©rez */ #if ENABLE_FAUXMO #include fauxmoESP fauxmo; // ----------------------------------------------------------------------------- // FAUXMO // ----------------------------------------------------------------------------- void fauxmoConfigure() { fauxmo.enable(getSetting("fauxmoEnabled", FAUXMO_ENABLED).toInt() == 1); } void fauxmoSetup() { fauxmoConfigure(); unsigned int relays = relayCount(); String hostname = getSetting("hostname", HOSTNAME); if (relays == 1) { fauxmo.addDevice(hostname.c_str()); } else { for (unsigned int i=0; i