| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung |
| elektronik:tasmota [2022/02/18 17:24] – [SML Smart Meter] egmonts | elektronik:tasmota [2024/12/25 13:46] (aktuell) – Externe Bearbeitung 127.0.0.1 |
|---|
| * https://tasmota.github.io/docs/Smart-Meter-Interface/#descriptor-syntax | * https://tasmota.github.io/docs/Smart-Meter-Interface/#descriptor-syntax |
| * in gitpod.io erzeugt, firmware aus Tasmota/build_output/firmware/tasmota.bin runtergeladen | * in gitpod.io erzeugt, firmware aus Tasmota/build_output/firmware/tasmota.bin runtergeladen |
| * in ESP8266 und Firmwareupdaten mit tasmota-minimal gemacht | * https://tasmota.github.io/docs/Gitpod/ --> Github Login |
| | * plattformio_override.ini ''board = esp8266_4M2M'' |
| | * tasmota/user_config_override.h verschiedene Module deaktivieren, wie in https://wvssiot.files.wordpress.com/2020/04/howto_-tasmota-sml.pdf beschrieben |
| | * |
| | * in ESP8266 und Firmwareupdaten mit http://ota.tasmota.com/tasmota/release/tasmota-minimal.bin.gz gemacht |
| * als nächstes die tasmota.bin ausgewählt und geflasht | * als nächstes die tasmota.bin ausgewählt und geflasht |
| * Skript eingefügt, in Zeile ''+1,3,s,0,9600,GS303'' steht die 3 für GPIO3, der darf keiner anderen Funktion zugewiesen sein! | * Skript eingefügt, in Zeile ''+1,3,s,0,9600,GS303'' steht die 3 für GPIO3, der darf keiner anderen Funktion zugewiesen sein! |
| * Schaltung https://wvssiot.files.wordpress.com/2020/04/howto_-tasmota-sml.pdf | * Schaltung https://wvssiot.files.wordpress.com/2020/04/howto_-tasmota-sml.pdf |
| * Fototransitor: SFH 300 FA, 10 kOhm Pullup zu 3,3V, Emitter an GND, Kollektor mit Widerstand an RX (GPIO3) | * Fototransitor: SFH 300 FA, 10 kOhm Pullup zu 3,3V, Emitter an GND, Kollektor mit Widerstand an RX (GPIO3) |
| | * :todo: zwei Zähler vom Haus als Counter einbinden |
| | * Zähler mit 100 Impulsen: |
| | |
| | |
| | <code> |
| | |
| | >D |
| | >B |
| | >M 2 |
| | +1,2,c,1,-5,Oben |
| | 1,1-0:1.8.0*255(@100,Energie,KWh,Total_in,3) |
| | 1,1-0:1.7.0*255(@0.0016667, Leistung,W,Power_actual,0) |
| | |
| | +2,4,c,1,-5,Unten |
| | 2,1-0:1.8.0*255(@100,Energie,KWh,Total_in,3) |
| | 2,1-0:1.7.0*255(@0.0016667, Leistung,W,Power_actual,0) |
| | # |
| | </code> |
| | |
| | * 1000 Impulse / kWh: |
| | |
| | <code> |
| | >D |
| | >B |
| | >M 2 |
| | +1,2,c,1,-5,Oben |
| | 1,1-0:1.8.0*255(@1000,Energie,KWh,Total_in,3) |
| | 1,1-0:1.7.0*255(@0.016667, Leistung,W,Power_actual,0) |
| | |
| | +2,4,c,1,-5,Unten |
| | 2,1-0:1.8.0*255(@1000,Energie,KWh,Total_in,3) |
| | 2,1-0:1.7.0*255(@0.016667, Leistung,W,Power_actual,0) |
| | # |
| | </code> |
| | |
| | * SML Zähler: >D |
| | <code>>B |
| | =>sensor53 r |
| | >M 1 |
| | +1,3,s,0,9600,GS303 |
| | 1,77070100010800ff@1000,Total Consumed,KWh,Total_in,3 |
| | 1,77070100100700ff@1,Current Consumption,W,Power_cur,0 |
| | 1,77070100020800ff@1000,Total Delivered,KWh,Total_out,3 |
| | 1,7707010060320101@#,Service ID,,Meter_id,0 |
| | #</code> |
| | * in Console die Befehle von https://tasmota.github.io/docs/Smart-Meter-Interface/#sdm72d-modbus eingeben, damit Zähler aktiviert ist (https://youtu.be/s6qQs4FN9B0?t=1450) |
| | * Zählerstand ändern: ''sensor53 c0 1234'', change 0 if you have more than one smartmeter. 1234 includes the impulses/unit. For 100 impules per unit the 1234 means 12.34 units. Source: https://tasmota.github.io/docs/Smart-Meter-Interface/#sensors |
| | |
| | Für **WT32-ETH01**: https://github.com/arendst/Tasmota/issues/9496#issuecomment-715338713 Template und 3 Befehle, dann ist ETH mit 100MBaud aktiv |
| | |
| |
| |
| * :todo: https://tasmota.github.io/docs/Smart-Meter-Interface/#meter-metrics | * :todo: https://tasmota.github.io/docs/Smart-Meter-Interface/#meter-metrics |
| * :todo: https://grafana.com/blog/2021/08/12/streaming-real-time-sensor-data-to-grafana-using-mqtt-and-grafana-live/ | * :todo: https://grafana.com/blog/2021/08/12/streaming-real-time-sensor-data-to-grafana-using-mqtt-and-grafana-live/ |
| | |
| | ====== gitpod.io ====== |
| | * URL bauen mit Repo, z.B. https://gitpod.io/#https://github.com/G4lile0/ESP32-WiFi-Hash-Monster/tree/master |
| | * in ''platformio.ini'' das target auf ''default_envs = m5stack-core-esp32'' setzen |
| | * Befehl eingeben: ''pip3 install -U platformio'' und ''platformio run'' |
| | * im Ordner .pio/build/m5stack-core-esp32 ist eine bin und elf Datei *.bin runterladen |
| | * M5Burner von https://docs.m5stack.com/en/download |
| | * oder mit https://pypi.org/project/esptool/ ''pip install esptool'' |
| | * Port finden mit ''ls /dev/ttyU*'' |
| | * Flash löschen: ''esptool.py -c esp32 -b 1500000 -p /dev/ttyUSB0 erase_flash'' |
| | * brennen mit ''esptool.py -c esp32 -b 1500000 -p /dev/ttyUSB0 write_flash 0x0 firmware.bin'' |
| | * es brennt zwar, startet aber scheinbar nichts... |
| | |
| | ====== M5Stack mit Arduino ====== |
| | * Bordverwalter: ''https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json'' eintragen, Bordverwalter ''M5Stack'' installieren |
| | * Bibliotheksverwaltung ''M5Stack'' installieren mit allen Bibliotheken die es vorschlägt, Beispiel aus https://docs.m5stack.com/en/api/core/system ganz unten läuft |
| |