Created
October 6, 2018 16:00
-
-
Save coldfire84/5b6cee2069369a2d4e058e2c3b09f762 to your computer and use it in GitHub Desktop.
Sonoff user_config_override.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
user_config_override.h - user configuration overrides user_config.h for Sonoff-Tasmota | |
Copyright (C) 2018 Theo Arends | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
GNU General Public License for more details. | |
You should have received a copy of the GNU General Public License | |
along with this program. If not, see <http://www.gnu.org/licenses/>. | |
*/ | |
#ifndef _USER_CONFIG_OVERRIDE_H_ | |
#define _USER_CONFIG_OVERRIDE_H_ | |
// force the compiler to show a warning to confirm that this file is inlcuded | |
#warning **** user_config_override.h: Using Settings from this File **** | |
// -- Master parameter control -------------------- | |
#undef CFG_HOLDER | |
#define CFG_HOLDER 0x20180927 // [Reset 1] Change this value to load SECTION1 configuration parameters to flash | |
// -- Setup your own Wifi settings --------------- | |
#undef STA_SSID1 | |
#define STA_SSID1 "<SSID>" // [Ssid1] Wifi SSID | |
#undef STA_PASS1 | |
#define STA_PASS1 "<WIFI-PASSWORD>" // [Password1] Wifi password | |
#define WIFI_CONFIG_TOOL WIFI_WAIT // [WifiConfig] Wait for preferred SSID, do not restart device | |
// -- Setup your own MQTT settings --------------- | |
#undef MQTT_HOST | |
#define MQTT_HOST "<MQTT IP or DNS name>" // [MqttHost] | |
#undef MQTT_PORT | |
#define MQTT_PORT 1883 // [MqttPort] MQTT port (10123 on CloudMQTT) | |
#undef MQTT_USER | |
#define MQTT_USER "<MQTT-user account>" // [MqttUser] Optional user | |
#undef MQTT_PASS | |
#define MQTT_PASS "<MQTT password>" // [MqttPassword] Optional password | |
// -- Project ------------------------------------- | |
#define PROJECT "<Device MQTT name, i.e. sonoff-T1-1>" // PROJECT is used as the default topic delimiter | |
#define MQTT_GRPTOPIC "sonoffs" // [GroupTopic] MQTT Group topic | |
// -- MQTT - Home Assistant Discovery ------------- | |
#define HOME_ASSISTANT_DISCOVERY_ENABLE 1 // [SetOption19] Home Assistant Discovery (0 = Disable, 1 = Enable) | |
// -- MQTT - Retain Power State in MQTT Database ------------- | |
#define MQTT_POWER_RETAIN 1 // [PowerRetain] Power status message may send retain flag (0 = off, 1 = on) | |
// -- Device/ Web Configuration - Retain Power State in MQTT Database ------------- | |
#define FRIENDLY_NAME "<Device friendly name, i.e. Kitchen Light>" // [FriendlyName] Friendlyname up to 32 characters used by webpages and Alexa | |
#define WEB_USERNAME "admin" // Web server Admin mode user name | |
#define WEB_PASSWORD "<web interface password>" // [WebPassword] Web server Admin mode Password for WEB_USERNAME (empty string = Disable) | |
#endif // _USER_CONFIG_OVERRIDE_H_ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment