|
49 | 49 | * Zum Kompilieren unter Gitpod den passenden Befehl in die Console eingeben: |
50 | 50 | * ESP32: |
51 | 51 | * platformio run -e tasmota32_ottelo (Generic ESP32) |
| 52 | + * platformio run -e tasmota32berry_ottelo (Generic ESP32 mit Berry Support) |
52 | 53 | * platformio run -e tasmota32s2_ottelo |
53 | 54 | * platformio run -e tasmota32s3_ottelo |
54 | 55 | * platformio run -e tasmota32c3_ottelo |
|
58 | 59 | * |
59 | 60 | * ESP8266: |
60 | 61 | * 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 tasmota1m_energy_ottelo ( = 1M Flash, Update nur über minimal da Img zu groß. Für SonOff POW (R2) / Gosund EP2 SonOff Dual R3 v2 / Nous A1T) |
| 63 | + * platformio run -e tasmota1m_shelly_ottelo ( = 1M Flash, Update nur über minimal da Img zu groß. Mit Shelly Pro 3EM Emulation als Meter für smarte Akkus wie z.B. Marstek Venus / Jupiter) |
62 | 64 | * platformio run -e tasmota4m_ottelo (>= 4M Flash) |
63 | 65 | * |
64 | 66 | * für weitere ESPs siehe: https://github.com/arendst/Tasmota/blob/development/platformio_override_sample.ini bei default_envs |
65 | 67 | \*****************************************************************************************************/ |
66 | 68 |
|
67 | 69 | //siehe platformio_tasmota_cenv.ini |
68 | 70 | #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) ) |
| 71 | + defined(TASMOTA1M_OTTELO) || defined(TASMOTA1M_SHELLY_OTTELO) || defined(TASMOTA1M_ENERGY_OTTELO) || defined(TASMOTA4M_OTTELO) || defined(TASMOTA32_BERRY_OTTELO) ) |
70 | 72 |
|
71 | 73 | // (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 | 74 | // dort müssen mindestens 12k RAM für einen stabilen Betrieb frei sein (inkl. Script). |
|
82 | 84 | #undef USE_SONOFF_IFAN |
83 | 85 | #undef USE_BUZZER |
84 | 86 | #undef USE_ARILUX_RF |
85 | | -#if ( !defined(TASMOTA1M_OTTELO) && !defined(TASMOTA1M_ENERGY_OTTELO) ) |
| 87 | +#if ( !defined(TASMOTA1M_OTTELO) && !defined(TASMOTA1M_ENERGY_OTTELO) && !defined(TASMOTA1M_SHELLY_OTTELO) ) |
86 | 88 | #define USE_DEEPSLEEP //1KB |
87 | 89 | #endif |
88 | 90 | #undef USE_DEEPSLEEP |
|
111 | 113 | #undef USE_SERIAL_BRIDGE //https://tasmota.github.io/docs/Serial-to-TCP-Bridge/#serial-to-tcp-bridge |
112 | 114 | #undef USE_ENERGY_DUMMY |
113 | 115 |
|
114 | | -#if defined(TASMOTA1M_OTTELO) |
| 116 | +#if ( defined(TASMOTA1M_OTTELO) || defined(TASMOTA1M_SHELLY_OTTELO)) |
115 | 117 | #undef USE_I2C // I2C ist für die nachfolgenden Treiber erforderlich. |
116 | 118 | #undef USE_ENERGY_SENSOR // Ist für die nachfolgenden Treiber erforderlich. |
117 | 119 | #undef USE_HLW8012 // SonOff POW / Gosund EP2 (ESP8266) |
|
129 | 131 | #undef USE_GPIO_VIEWER |
130 | 132 | #undef USE_ADC |
131 | 133 | #undef USE_NETWORK_LIGHT_SCHEMES |
132 | | -#if !defined(TASMOTA32_BERRY_OTTELO) |
| 134 | +#if ( !defined(TASMOTA32_BERRY_OTTELO) ) |
133 | 135 | #undef USE_BERRY //https://tasmota.github.io/docs/Berry/ |
134 | 136 | #endif |
135 | 137 | #undef USE_AUTOCONF //https://tasmota.github.io/docs/ESP32/#autoconf |
|
159 | 161 | //-- enables to use 4096 in stead of 256 bytes buffer for variable names |
160 | 162 | #define SCRIPT_LARGE_VNBUFF |
161 | 163 |
|
162 | | - |
163 | 164 | //-- Skriptgröße (max Anzahl an Zeichen) https://tasmota.github.io/docs/Scripting-Language/#script-buffer-size |
164 | 165 | //-- ESP8266 1M Flash |
165 | | -#if ( defined(TASMOTA1M_OTTELO) || defined(TASMOTA1M_ENERGY_OTTELO) ) |
| 166 | +#if ( defined(TASMOTA1M_OTTELO) || defined(TASMOTA1M_ENERGY_OTTELO) || defined(TASMOTA1M_SHELLY_OTTELO) ) |
166 | 167 | #define USE_EEPROM |
167 | 168 | #undef EEP_SCRIPT_SIZE |
168 | | - #define EEP_SCRIPT_SIZE 8192 |
| 169 | + #if ( defined(TASMOTA1M_SHELLY_OTTELO) ) |
| 170 | + #define EEP_SCRIPT_SIZE 4096 |
| 171 | + #else |
| 172 | + #define EEP_SCRIPT_SIZE 8192 |
| 173 | + #endif |
169 | 174 | #else |
170 | 175 | //-- ESP8266 4M+ Flash / ESP32 |
171 | 176 | #define USE_SCRIPT_FATFS_EXT //https://tasmota.github.io/docs/Scripting-Language/#extended-commands-09k-flash |
|
178 | 183 | #endif |
179 | 184 | #endif |
180 | 185 |
|
181 | | -//-- benötigt USE_HOME_ASSISTANT |
182 | | -#define USE_WEBCLIENT_HTTPS |
183 | | - |
184 | | -//-- SML, Script und Google Chart Support |
| 186 | +//-- SML, Script, Google Chart Support und Home Assistant |
185 | 187 | #define USE_SCRIPT //(+36k code, +1k mem) |
186 | 188 | #define USE_SML_M |
187 | 189 | #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 |
188 | 190 | #undef USE_RULES //USE_SCRIPT & USE_RULES can't both be used at the same time |
189 | 191 | #define USE_GOOGLE_CHARTS |
190 | 192 | #define LARGE_ARRAYS |
191 | 193 | #define USE_SCRIPT_WEB_DISPLAY |
192 | | -#if ( !defined(TASMOTA1M_OTTELO) && !defined(TASMOTA4M_OTTELO) && !defined(TASMOTA1M_ENERGY_OTTELO) ) |
| 194 | +#define USE_HOME_ASSISTANT //HA API (+12k code, +6 bytes mem) |
| 195 | +#define USE_WEBCLIENT_HTTPS //für HA benötigt |
| 196 | +#if ( !defined(TASMOTA1M_OTTELO) && !defined(TASMOTA4M_OTTELO) && !defined(TASMOTA1M_ENERGY_OTTELO) && !defined(TASMOTA1M_SHELLY_OTTELO) ) |
193 | 197 | #define USE_ANGLE_FUNC //~2KB |
194 | 198 | #endif |
195 | 199 |
|
196 | 200 | //-- enables authentication, this is not needed by most energy meters. M,=so5 |
197 | 201 | #define USE_SML_AUTHKEY |
198 | 202 | #define USE_TLS |
199 | 203 |
|
200 | | -//-- Verwende Home Assistant API |
201 | | -#define USE_HOME_ASSISTANT //(+12k code, +6 bytes mem) |
202 | | - |
203 | 204 | //-- 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) |
204 | 205 | //-- Optional: Serielle Schnittstelle (RX/TX RS232) im Script verwenden |
205 | | -#if ( !defined(TASMOTA1M_OTTELO) && !defined(TASMOTA4M_OTTELO) && !defined(TASMOTA1M_ENERGY_OTTELO) ) |
| 206 | +#if ( !defined(TASMOTA1M_OTTELO) && !defined(TASMOTA4M_OTTELO) && !defined(TASMOTA1M_ENERGY_OTTELO) && !defined(TASMOTA1M_SHELLY_OTTELO) ) |
206 | 207 | #define USE_ESP32_SW_SERIAL |
207 | 208 | #define USE_SCRIPT_SERIAL //3KB |
208 | 209 | #endif |
|
217 | 218 | #endif |
218 | 219 |
|
219 | 220 | //-- Optional: TCP-Server Script Support |
220 | | -#if ( !defined(TASMOTA1M_OTTELO) && !defined(TASMOTA4M_OTTELO) && !defined(TASMOTA1M_ENERGY_OTTELO) ) |
| 221 | +#if ( !defined(TASMOTA1M_OTTELO) && !defined(TASMOTA4M_OTTELO) && !defined(TASMOTA1M_ENERGY_OTTELO) && !defined(TASMOTA1M_SHELLY_OTTELO) ) |
221 | 222 | #define USE_SCRIPT_TCP_SERVER |
222 | 223 | #define USE_SCRIPT_TASK |
223 | 224 | #endif |
|
0 commit comments