HAOS Add-on: MVP + NuttX Binary + .gitignore

- haos-addon/: vollständiges HA Add-on (config.yaml, Dockerfile, build.yaml)
  - Python Backend: pymodbus Modbus TCP → paho-mqtt MQTT Discovery
  - Unterstützte Modelle: MIC 1500/2000 TL-X, SPH 5000 TL3, MOD 6000 TL3
  - Web UI: Wechselrichter-Auswahl, Modbus/MQTT-Konfig, Live-Sensor-Grid (dark theme)
  - MQTT HA Discovery für alle Sensoren mit device_class, state_class, icon
- ShineLAN-X/releases/nuttx-mbusd-shinelanx.bin: NuttX Firmware (ohne DFU, 0x08000000)
- .gitignore: Logs, MQTT-JSON, shinelanx-modbus/ ausgeschlossen

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
retr0
2026-04-24 22:30:45 +02:00
parent 4d2da56baf
commit 0d6b860664
12 changed files with 1327 additions and 47 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/with-contenv bashio
export MODBUS_IP=$(bashio::config 'modbus_ip')
export MODBUS_PORT=$(bashio::config 'modbus_port')
export MODBUS_ADDRESS=$(bashio::config 'modbus_address')
export INVERTER_MODEL=$(bashio::config 'inverter_model')
export MQTT_BROKER=$(bashio::config 'mqtt_broker')
export MQTT_PORT=$(bashio::config 'mqtt_port')
export MQTT_USER=$(bashio::config 'mqtt_user')
export MQTT_PASS=$(bashio::config 'mqtt_pass')
export MQTT_TOPIC_PREFIX=$(bashio::config 'mqtt_topic_prefix')
export UPDATE_INTERVAL=$(bashio::config 'update_interval')
export INGRESS_PORT=8099
bashio::log.info "Starte Growatt ShineLAN-X Add-on..."
bashio::log.info "Modbus: ${MODBUS_IP}:${MODBUS_PORT} Slave=${MODBUS_ADDRESS}"
bashio::log.info "Wechselrichter: ${INVERTER_MODEL}"
bashio::log.info "MQTT: ${MQTT_BROKER}:${MQTT_PORT}"
exec python3 /app/main.py