SolarPower: Difference between revisions

From JoBaPedia
Jump to navigation Jump to search
Line 15: Line 15:
** Symptom: no new data in influx db and Grafana dashboard
** Symptom: no new data in influx db and Grafana dashboard
** Fix: Go to http://opendtu1/settings/mqtt, hit "Save".
** Fix: Go to http://opendtu1/settings/mqtt, hit "Save".
** Updated 2023-07-31, check if fixed...
== Update ==
* Online: http://opendtu1/firmware/upgrade
* Offline
** Download e.g. https://github.com/tbnobody/OpenDTU/releases/download/v23.7.22/opendtu-generic.factory.bin
** Flash with esptool.py (e.g. from within platformio packages and python of vscode platformio terminal)
python ~/.platformio/packages/tool-esptoolpy@src-3656ef7461ddc68b458b40db7ac51220/esptool.py \
  --port /dev/ttyACM0 --chip esp32 --before default_reset --after hard_reset  write_flash \
  --flash_mode dout --flash_freq 40m --flash_size detect 0x0  ~/Downloads/opendtu-generic.factory.bin


= Garagenkraftwerk =
= Garagenkraftwerk =

Revision as of 08:40, 31 July 2023

Balkonkraftwerk

My "Balkonkraftwerk" uses OpenDTU to query the rf data of the microinverter TSOL-M800 from TSUN (Hoymiles HM600 compatible).

Monitoring Setup

  • http://OpenDTU1 (admin j...1)
  • mqtt@job4 (mosquitto_sub -v -t 'OpenDTU1/#')
  • job4:/etc/systemd/system/openDtu2Db@OpenDTU1.service (sudo systemctl status openDtu2Db@OpenDTU1.service, sudo journalctl -f -u openDtu2Db@OpenDTU1.service)
    • python -u /home/joachim/bin/openDtu2Db.py OpenDTU1 (prints to stdout)
  • Influx database openDtu (influx -database openDtu -precision rfc3339 -execute "select * from string order by time desc limit 10")
  • Grafana Source openDtu@InfluxDB
  • Grafana Dashboard https://banzhaf.chickenkiller.com/grafana/d/_rNE2oO7k/stromverbrauch?orgId=1&refresh=10s&viewPanel=7

Troubleshooting

Update

python ~/.platformio/packages/tool-esptoolpy@src-3656ef7461ddc68b458b40db7ac51220/esptool.py \
  --port /dev/ttyACM0 --chip esp32 --before default_reset --after hard_reset  write_flash \
  --flash_mode dout --flash_freq 40m --flash_size detect 0x0  ~/Downloads/opendtu-generic.factory.bin

Garagenkraftwerk

My "Garagenkraftwerk" uses Tasmota to query power data and control a fan via Nous power plugs

Monitoring Setup

LiFePO-Island

My shed in the garden has LiFePO backed island solar power

Monitoring Setup

  • Power route: Panel -> Esmart3 -> BMS -> 12V LiFePOs -> Inverter -> 220 V / 500 W continuous power -> 7 manually switchable output plugs and 2 USB ports
  • Control/Monitoring: The BMS and the ESmart3 report to an ESP32 via RS485 serial line.
  • The ESP32 is behind a Tasmota port forwarding range extender http://nat2, reachable via http://nat2:8080
  • The ESP32 runs my firmware https://github.com/joba-1/LiFePO_Island which posts data to influx
  • Influx DB (influx --database LiFePO_Island --execute "show measurements" for all available data tables) e.g.:
    • ESmart3 charge and load status: influx -precision rfc3339 --database LiFePO_Island --execute 'select * from ChgSts order by time desc limit 10'
    • BMS cell voltages: influx -precision rfc3339 --database LiFePO_Island --execute 'select * from Cells order by time desc limit 10'
  • Grafana Source LiFePO_Island@InfluxDB
  • Grafana Dashboard https://banzhaf.chickenkiller.com/grafana/d/mYiP89N4z/lifepo_island?orgId=1
  • Load can be switched via Domoticz (Dummy Hardware LiFePO_Island with virtual sensor LiFePO_Island_Load, type switch)
    • Switch script: /opt/domoticz/scripts/lua/script_device_LiFePO_Island_Load.lua
    • Status script: /opt/domoticz/scripts/lua/script_time_LiFePO_Island_Load.lua