|
57 | 57 | * Mehr Infos bzgl. ESP32 Versionen: https://tasmota.github.io/docs/ESP32/#esp32_1 |
58 | 58 | * |
59 | 59 | * ESP8266: |
60 | | - * platformio run -e tasmota_ottelo ( = 1M Flash) |
61 | | - * platformio run -e tasmota_energy_ottelo ( = 1M Flash, Update nur über minimal da Img zu groß. für SonOff POW (R2) / Gosund EP2 SonOff Dual R3 v2) |
62 | | - * platformio run -e tasmota4m_ottelo (>= 4M Flash) |
| 60 | + * platformio run -e tasmota1m_ottelo ( = 1M Flash) |
| 61 | + * platformio run -e tasmota1m_energy_ottelo ( = 1M Flash, Update nur über minimal da Img zu groß. für SonOff POW (R2) / Gosund EP2 SonOff Dual R3 v2) |
| 62 | + * platformio run -e tasmota4m_ottelo (>= 4M Flash) |
63 | 63 | * |
64 | 64 | * für weitere ESPs siehe: https://github.com/arendst/Tasmota/blob/development/platformio_override_sample.ini bei default_envs |
65 | 65 | \*****************************************************************************************************/ |
66 | 66 |
|
67 | 67 | //siehe platformio_tasmota_cenv.ini |
68 | | -#if ( defined(TASMOTA32_OTTELO) || defined(TASMOTA32C3_OTTELO) || defined(TASMOTA32C6_OTTELO) || defined(TASMOTA32S2_OTTELO) || defined(TASMOTA32S3_OTTELO) || defined(TASMOTA32SOLO1_OTTELO) || \ |
69 | | - defined(TASMOTA_OTTELO) || defined(TASMOTA_ENERGY_OTTELO) || defined(TASMOTA4M_OTTELO) ) |
| 68 | +#if ( defined(TASMOTA32_OTTELO) || defined(TASMOTA32C3_OTTELO) || defined(TASMOTA32C6_OTTELO) || defined(TASMOTA32S2_OTTELO) || defined(TASMOTA32S3_OTTELO) || defined(TASMOTA32SOLO1_OTTELO) || \ |
| 69 | + defined(TASMOTA1M_OTTELO) || defined(TASMOTA1M_ENERGY_OTTELO) || defined(TASMOTA4M_OTTELO) || defined(TASMOTA32_BERRY_OTTELO) ) |
70 | 70 |
|
71 | 71 | // (1) Folgende unnötige Features (siehe my_user_config.h) habe ich deaktiviert, um Tasmota schlank zu halten. Der ESP8266 z.B. hat wenig RAM, |
72 | 72 | // dort müssen mindestens 12k RAM für einen stabilen Betrieb frei sein (inkl. Script). |
|
82 | 82 | #undef USE_SONOFF_IFAN |
83 | 83 | #undef USE_BUZZER |
84 | 84 | #undef USE_ARILUX_RF |
85 | | -//#undef USE_DEEPSLEEP |
| 85 | +#if ( !defined(TASMOTA1M_OTTELO) && !defined(TASMOTA1M_ENERGY_OTTELO) ) |
| 86 | + #define USE_DEEPSLEEP //1KB |
| 87 | +#endif |
| 88 | +#undef USE_DEEPSLEEP |
86 | 89 | #undef USE_SHUTTER |
87 | 90 | #undef USE_EXS_DIMMER |
88 | 91 | #undef USE_DEVICE_GROUPS |
|
108 | 111 | #undef USE_SERIAL_BRIDGE //https://tasmota.github.io/docs/Serial-to-TCP-Bridge/#serial-to-tcp-bridge |
109 | 112 | #undef USE_ENERGY_DUMMY |
110 | 113 |
|
111 | | -#if defined(TASMOTA_OTTELO) |
| 114 | +#if defined(TASMOTA1M_OTTELO) |
112 | 115 | #undef USE_I2C // I2C ist für die nachfolgenden Treiber erforderlich. |
113 | 116 | #undef USE_ENERGY_SENSOR // Ist für die nachfolgenden Treiber erforderlich. |
114 | 117 | #undef USE_HLW8012 // SonOff POW / Gosund EP2 (ESP8266) |
|
126 | 129 | #undef USE_GPIO_VIEWER |
127 | 130 | #undef USE_ADC |
128 | 131 | #undef USE_NETWORK_LIGHT_SCHEMES |
129 | | -#undef USE_BERRY //https://tasmota.github.io/docs/Berry/ |
| 132 | +#if !defined(TASMOTA32_BERRY_OTTELO) |
| 133 | + #undef USE_BERRY //https://tasmota.github.io/docs/Berry/ |
| 134 | +#endif |
130 | 135 | #undef USE_AUTOCONF //https://tasmota.github.io/docs/ESP32/#autoconf |
131 | 136 | #undef USE_CSE7761 |
132 | 137 | //---------------------------------------------------------------------------- |
|
143 | 148 | #undef SET_ESP32_STACK_SIZE |
144 | 149 | #define SET_ESP32_STACK_SIZE (12 * 1024) |
145 | 150 |
|
146 | | -//-- Optional: Für mein SML Simulator Script (max String Länge = 128). Im Script >D 128 |
| 151 | +//-- Optional: Für mein SML Simulator Script + shellypro3em emulieren (z.B. für Marstek Venus E >D 250). Im Script z.B. mit >D x final festlegen |
147 | 152 | #undef SCRIPT_MAXSSIZE |
148 | | -#define SCRIPT_MAXSSIZE 128 |
| 153 | +#if ( defined(TASMOTA1M_OTTELO) || defined(TASMOTA4M_OTTELO) || defined(TASMOTA1M_ENERGY_OTTELO) ) |
| 154 | + #define SCRIPT_MAXSSIZE 128 |
| 155 | +#else |
| 156 | + #define SCRIPT_MAXSSIZE 255 |
| 157 | +#endif |
149 | 158 |
|
150 | 159 | //-- enables to use 4096 in stead of 256 bytes buffer for variable names |
151 | 160 | #define SCRIPT_LARGE_VNBUFF |
152 | 161 |
|
153 | 162 |
|
154 | 163 | //-- Skriptgröße (max Anzahl an Zeichen) https://tasmota.github.io/docs/Scripting-Language/#script-buffer-size |
155 | 164 | //-- ESP8266 1M Flash |
156 | | -#if ( defined(TASMOTA_OTTELO) || defined(TASMOTA_ENERGY_OTTELO) ) |
| 165 | +#if ( defined(TASMOTA1M_OTTELO) || defined(TASMOTA1M_ENERGY_OTTELO) ) |
157 | 166 | #define USE_EEPROM |
158 | 167 | #undef EEP_SCRIPT_SIZE |
159 | 168 | #define EEP_SCRIPT_SIZE 8192 |
|
175 | 184 | //-- SML, Script und Google Chart Support |
176 | 185 | #define USE_SCRIPT //(+36k code, +1k mem) |
177 | 186 | #define USE_SML_M |
| 187 | +#define USE_SML_CRC //enables CRC support for binary SML. Must still be enabled via line like "1,=soC,1024,15". https://tasmota.github.io/docs/Smart-Meter-Interface/#special-commands |
178 | 188 | #undef USE_RULES //USE_SCRIPT & USE_RULES can't both be used at the same time |
179 | 189 | #define USE_GOOGLE_CHARTS |
180 | 190 | #define LARGE_ARRAYS |
181 | 191 | #define USE_SCRIPT_WEB_DISPLAY |
| 192 | +#if ( !defined(TASMOTA1M_OTTELO) && !defined(TASMOTA4M_OTTELO) && !defined(TASMOTA1M_ENERGY_OTTELO) ) |
| 193 | + #define USE_ANGLE_FUNC //~2KB |
| 194 | +#endif |
182 | 195 |
|
183 | 196 | //-- enables authentication, this is not needed by most energy meters. M,=so5 |
184 | 197 | #define USE_SML_AUTHKEY |
|
188 | 201 | #define USE_HOME_ASSISTANT //(+12k code, +6 bytes mem) |
189 | 202 |
|
190 | 203 | //-- Software Serial für ESP32 (nur RX), Pin mit dem Zeichen '-' in der SML Sektion definieren (bei mehr als 2/3-Leseköpfen, je nach ESP32 Variante) |
191 | | -#if ( !defined(TASMOTA_OTTELO) && !defined(TASMOTA4M_OTTELO) && !defined(TASMOTA_ENERGY_OTTELO) ) |
| 204 | +//-- Optional: Serielle Schnittstelle (RX/TX RS232) im Script verwenden |
| 205 | +#if ( !defined(TASMOTA1M_OTTELO) && !defined(TASMOTA4M_OTTELO) && !defined(TASMOTA1M_ENERGY_OTTELO) ) |
192 | 206 | #define USE_ESP32_SW_SERIAL |
| 207 | + #define USE_SCRIPT_SERIAL //3KB |
193 | 208 | #endif |
194 | 209 |
|
195 | | -//-- Optional: Serielle Schnittstelle (RX/TX RS232) im Script verwenden |
196 | | -#define USE_SCRIPT_SERIAL |
197 | | - |
198 | 210 | //-- Optional: ESP32 WT32_ETH01 (Ethernet LAN Modul) |
199 | 211 | #if ( defined(TASMOTA32_OTTELO) || defined(TASMOTA32SOLO1_OTTELO) || defined(TASMOTA32S3_OTTELO) ) |
200 | 212 | #define USE_ETHERNET // Add support for ethernet (+20k code) |
|
205 | 217 | #endif |
206 | 218 |
|
207 | 219 | //-- Optional: TCP-Server Script Support |
208 | | -#if ( !defined(TASMOTA_OTTELO) && !defined(TASMOTA4M_OTTELO) && !defined(TASMOTA_ENERGY_OTTELO) ) |
| 220 | +#if ( !defined(TASMOTA1M_OTTELO) && !defined(TASMOTA4M_OTTELO) && !defined(TASMOTA1M_ENERGY_OTTELO) ) |
209 | 221 | #define USE_SCRIPT_TCP_SERVER |
210 | 222 | #define USE_SCRIPT_TASK |
211 | 223 | #endif |
212 | 224 |
|
213 | | -//-- Optional: Optionale SML Features deaktivieren |
214 | | -//#define NO_USE_SML_SPECOPT |
215 | | -//#define NO_USE_SML_SCRIPT_CMD |
216 | | -//#define NO_SML_REPLACE_VARS |
217 | | -//#define NO_USE_SML_DECRYPT |
218 | | -//#define NO_USE_SML_TCP |
219 | | -//#define NO_USE_SML_CANBUS |
| 225 | +//-- Optional: shellypro3em emulieren (z.B. für Marstek Venus E) |
| 226 | +#if ( !defined(TASMOTA1M_OTTELO) && !defined(TASMOTA4M_OTTELO) && !defined(TASMOTA1M_ENERGY_OTTELO) ) |
| 227 | + #define USE_SCRIPT_MDNS //14KB |
| 228 | +#endif |
220 | 229 |
|
221 | | -//-- Optional: Verwende globale Variablen im Script |
222 | | -#define USE_SCRIPT_GLOBVARS |
| 230 | +//-- Optional: globale Variablen im Script + shellypro3em emulieren (z.B. für Marstek Venus E) |
| 231 | +#define USE_SCRIPT_GLOBVARS //2KB |
223 | 232 |
|
224 | 233 | //-- Optional: >J Sektion aktivieren https://tasmota.github.io/docs/Scripting-Language/#j |
225 | | -#define USE_SCRIPT_JSON_EXPORT |
| 234 | +#define USE_SCRIPT_JSON_EXPORT //0KB |
226 | 235 |
|
227 | 236 | #endif // TASMOTA32 OTTELO |
228 | 237 |
|
|
0 commit comments