Hallo Zusammen, ich habe einen PV Anlage mit Vitocharger VX3 und möchte diese mit Home assistant verbinden. ich habe einen raspberry pi 4 aufgesetzt und mit den Can Adapter. Folgende Anleitungen habe ich verwendet: https://github.com/open3e/open3e/blob/master/README.md https://github.com/open3e/open3e/discussions/5 https://github.com/Wolfgang-03/Open3E-HA/blob/main/installation.md#visualisierung-in-home-assistant https://github.com/open3e/open3e/wiki/090-Homeassistant ich komme nur leider an folgenden Punkt nicht weiter: ich kann auf dem raspberry pi mit dem Befehl: open3e -c can0 -dev vx3 -r 1664,1718,1801,1802,1824,1828,1830,1831,1832,1833,1834,1836,1838,1839,1840,2219,1140,2936 -v mir die Werte des VX3 ausgeben lassen. Da kommt dann das raus: raspiio@raspiio:~/open3e $ open3e -c can0 -dev vx3 -r 1664,1718,1801,1802,1824,1828,1830,1831,1832,1833,1834,1836,1838,1839,1840,2219,1140,2936 -v vx3 1664 ElectricalEnergyStorageStateOfCharge 100.0 vx3 1718 ElectricalEnergySystemConfiguration {"Netzbetriebsart": 2, "Elektrische Anlagenkomponenten": 1} vx3 1801 ElectricalEnergyStorageEnergyTransferStatistic {"BatteryChargeToday": 6460.0, "BatteryChargeWeek": 26513.0, "BatteryChargeMonth": 35130.0, "BatteryChargeYear": 191522.0, "BatteryChargeTotal": 191522.0, "BatteryDischargeToday": 3112.0, "BatteryDischargeWeek": 19638.0, "BatteryDischargeMonth": 32569.0, "BatteryDischargeYear": 178197.0, "BatteryDischargeTotal": 178197.0} vx3 1802 EnergyProductionPhotovoltaic {"PhotovoltaicProductionToday": 25114.0, "PhotovoltaicProductionWeek": 114458.0, "PhotovoltaicProductionMonth": 133525.0, "PhotovoltaicProductionYear": 788208.0, "PhotovoltaicProductionTotal": 788208.0, "PhotovoltaicProductionToday1": 0.0, "PhotovoltaicProductionWeek1": 0.0, "PhotovoltaicProductionMonth1": 0.0, "PhotovoltaicProductionYear1": 0.0, "PhotovoltaicProductionTotal1": 0.0, "PhotovoltaicProductionToday2": 0.0, "PhotovoltaicProductionWeek2": 0.0, "PhotovoltaicProductionMonth2": 0.0, "PhotovoltaicProductionYear2": 110.0, "PhotovoltaicProductionTotal2": 110.0, "PhotovoltaicProductionToday3": 25114.0, "PhotovoltaicProductionWeek3": 114458.0, "PhotovoltaicProductionMonth3": 133524.0, "PhotovoltaicProductionYear3": 788100.0, "PhotovoltaicProductionTotal3": 788100.0} vx3 1824 ThreePhaseInverterCurrentPower {"cumulated": 4981.0, "L1": 1660.0, "L2": 1669.0, "L3": 1660.0} vx3 1828 InverterElectricalEnergyStorageCurrentMaximumlChargePower 0.0 vx3 1830 InverterElectricalEnergyStorageCurrentMaximumlDishargePower 4029.0 vx3 1831 PhotovoltaicCurrentStringPower {"String1": 0.0, "String2": 0.0, "String3": 5037.0} vx3 1832 PhotovoltaicStringCurrent {"String1": 0.0, "String2": 0.0, "String3": 10.0} vx3 1833 PhotovoltaicStringVoltage {"String1": 0.0, "String2": 298.772, "String3": 494.545} vx3 1834 ElectricalEnergyStorageStateOfEnergy {"StateOfEnergy": 9990.0, "Unkown": 0.0} vx3 1836 ElectricalEnergyStorageCurrentPower 0.0 vx3 1838 ElectricalEnergyStorageVoltage 206.4 vx3 1839 ElectricalEnergyStorageUsableEnergy "10270000" vx3 1840 ElectricalEnergyStorageUsableNominalEnergy "10270000" vx3 2219 BatteryCalibration "00" Traceback (most recent call last): File "/home/raspiio/.local/bin/open3e", line 8, in <module> sys.exit(main()) ^^^^^^ File "/home/raspiio/.local/lib/python3.11/site-packages/open3e/Open3Eclient.py", line 364, in main readbydid(addr=ecudid[0], did=ecudid[1], raw=args.raw, msglvl=mlvl) File "/home/raspiio/.local/lib/python3.11/site-packages/open3e/Open3Eclient.py", line 220, in readbydid value,idstr = dicEcus[addr].readByDid(did, raw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/raspiio/.local/lib/python3.11/site-packages/open3e/Open3Eclass.py", line 143, in readByDid return self.readPure(did) ^^^^^^^^^^^^^^^^^^ File "/home/raspiio/.local/lib/python3.11/site-packages/open3e/Open3Eclass.py", line 161, in readPure response = self.uds_client.send_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/raspiio/.local/lib/python3.11/site-packages/udsoncan/client.py", line 2255, in send_request raise NegativeResponseException(response) udsoncan.exceptions.NegativeResponseException: ReadDataByIdentifier service execution returned a negative response ConditionsNotCorrect (0x22) Das sieht glaub ich schon nicht ganz sauber aus. Aber es zeigt die gewünschten Werte. Was ich aber nicht hin bekomme, dass dann per mqtt an Home Assistant zu geben. Könnt ihr mir hier helfen. so wie ich es Verstehe sollte das der richtige Befehl sein oder? raspiio@raspiio:~/open3e $ open3e -c can0 -dev vx3 -r 1664,1718,1801,1802,1824,1828,1830,1831,1832,1833,1834,1836,1838,1839,1840,2219,1140,2936 -t 15 -m 192.168.178.60:1883:open3e -mfstr {didNumber}_{didName} -muser myuser:mypassword mqtt broker disconnected. reason_code = Unspecified error Traceback (most recent call last): File "/home/raspiio/.local/bin/open3e", line 8, in <module> sys.exit(main()) ^^^^^^ File "/home/raspiio/.local/lib/python3.11/site-packages/open3e/Open3Eclient.py", line 364, in main readbydid(addr=ecudid[0], did=ecudid[1], raw=args.raw, msglvl=mlvl) File "/home/raspiio/.local/lib/python3.11/site-packages/open3e/Open3Eclient.py", line 220, in readbydid value,idstr = dicEcus[addr].readByDid(did, raw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/raspiio/.local/lib/python3.11/site-packages/open3e/Open3Eclass.py", line 143, in readByDid return self.readPure(did) ^^^^^^^^^^^^^^^^^^ File "/home/raspiio/.local/lib/python3.11/site-packages/open3e/Open3Eclass.py", line 161, in readPure response = self.uds_client.send_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/raspiio/.local/lib/python3.11/site-packages/udsoncan/client.py", line 2255, in send_request raise NegativeResponseException(response) udsoncan.exceptions.NegativeResponseException: ReadDataByIdentifier service execution returned a negative response ConditionsNotCorrect (0x22) in der Home Assistant configuration.yaml hab ich mal folgendes angelegt: mqtt: sensor: unique_id: PVBatteryChargeTodayFromCAN name: "Battery Charge Today from CAN" device: name: "VitochargeVX3" identifiers: - vitochargevx3 state_topic: open3e/ElectricalEnergyStorageEnergyTransferStatistic/BatteryChargeToday device_class: energy unit_of_measurement: kWh value_template: '{{ value_json | float / 1000.0 }}' state_class: total_increasing qos: 0 retain: true platform: mqtt in Home Assistant bekomme ich folgende Meldung: Es ist nicht möglich mqtt sensor durch Hinzufügen von „platform: mqtt“ zur sensor-Konfiguration zu konfigurieren. Um dieses Problem zu beheben: Entferne „platform: mqtt“-Vorkommen aus der „sensor“-Konfiguration in deiner YAML-Konfigurationsdatei. Starte Home Assistant neu. Beispiel, das entfernt werden sollte: sensor: - platform: mqtt bin leider noch recht unerfahren in Home Assistant und der Bash. Was mach ich falsch?
... Mehr anzeigen