Tesla Powerwall 2 AC

Begonnen von Gigafix, 30 September 2017, 14:21:54

Vorheriges Thema - Nächstes Thema

CoolTux

Sehr schön.

Nun bitte wieder die neue Version testen. Achtung es kann sein das FHEM crasht. Wenn ja brauche ich die letzte Ausgabe im Logfile.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Black7king

#301
also ja stürzt ab und beim neustarten kommt das bis zum erneuten Absturz

2019.10.02 11:08:35 1: Including fhem.cfg
2019.10.02 11:08:36 3: telnetPort: port 7072 opened
2019.10.02 11:08:37 3: WEB: port 8083 opened
2019.10.02 11:08:37 3: WEBphone: port 8084 opened
2019.10.02 11:08:37 3: WEBtablet: port 8085 opened
2019.10.02 11:08:37 2: eventTypes: loaded 587 events from ./log/eventTypes.txt
2019.10.02 11:08:37 1: PERL WARNING: Smartmatch is experimental at ./FHEM/47_OBIS.pm line 472, <$fh> line 41.
2019.10.02 11:08:37 1: PERL WARNING: main::OBIS_decodeTL() called too early to check prototype at ./FHEM/47_OBIS.pm line 785, <$fh> line 41.
2019.10.02 11:08:37 3: Opening Zaehler2 device /dev/ttyUSB1
2019.10.02 11:08:38 3: Init done
2019.10.02 11:08:38 3: Zaehler2 device opened
2019.10.02 11:08:38 3: Opening Zaehler3 device /dev/ttyUSB2
2019.10.02 11:08:38 3: Init done
2019.10.02 11:08:38 3: Zaehler3 device opened
2019.10.02 11:08:38 3: Opening Zaehler4 device /dev/ttyUSB3
2019.10.02 11:08:38 1: Zaehler4: Can't open /dev/ttyUSB3: No such file or directory
2019.10.02 11:08:38 3: Opening Zaehler1 device /dev/ttyUSB0
2019.10.02 11:08:38 3: Init done
2019.10.02 11:08:38 3: Zaehler1 device opened
2019.10.02 11:09:14 3: TeslaPowerwall2AC (TeslaPowerwall) - defined TeslaPowerwall2AC Device with Host 192.168.178.157 and Interval 300
2019.10.02 11:09:14 3: TeslaPowerwall2AC (TeslaPowerwall) - set interval to 60
2019.10.02 11:09:14 1: Including ./log/fhem.save
2019.10.02 11:09:14 1: ./log/fhem.save: Please define PowerWall first
Please define PowerWall first

2019.10.02 11:09:14 1: usb create starting
2019.10.02 11:09:15 3: Probing ZWDongle device /dev/serial0
2019.10.02 11:09:15 1: ZWDongle: Can't open /dev/serial0: Permission denied
2019.10.02 11:09:15 3: Probing CUL device /dev/ttyAMA0
2019.10.02 11:09:15 1: CUL: Can't open /dev/ttyAMA0: Permission denied
2019.10.02 11:09:15 1: usb create end
2019.10.02 11:09:15 0: Featurelevel: 5.9
2019.10.02 11:09:15 0: Server started with 45 defined entities (fhem.pl:19755/2019-07-01 perl:5.020002 os:linux user:fhem pid:634)
TESLA DEBUG1 - Path: meterssite
TESLA DEBUG1 - ResponseString: $VAR1 = '[{"id":0,"location":"site","type":"neurio_mb","cts":[true,true,true,false],"inverted":[false,false,false,false],"connection":{"serial_port":"/dev/ttymxc2","baud":115200,"modbus_id":1,"short_id":"Tesla-0.0.7(2)","device_serial":"0x000004714B004755","neurio_connected":true,"disable_echo":true,"https_conf":{}},"real_power_scale_factor":1,"Cached_readings":{"last_communication_time":"2019-10-02T11:09:17.089800671+02:00","instant_power":1355.89990234375,"instant_reactive_power":-825.4760513305664,"instant_apparent_power":1587.4114956419128,"frequency":49.99971389770508,"energy_exported":14090857.325814204,"energy_imported":13638812.922480872,"instant_average_voltage":234.67443339029947,"instant_total_current":0,"i_a_current":0,"i_b_current":0,"i_c_current":0,"v_l1n":233.64370727539062,"v_l2n":234.93211364746094,"v_l3n":235.2965850830078,"real_power_a":1861.976318359375,"real_power_b":-270.5061340332031,"real_power_c":-235.57028198242188,"reactive_power_a":115.92942810058594,"reactive_power_b":-377.6338195800781,"reactive_power_c":-543.7450561523438,"serial_number":"0x000004714B004755","version":"Tesla-0.0.7(2)","timeout":1500000000}}]
';
TESLA DEBUG1 - Code: 200
Not a HASH reference at ./FHEM/46_TeslaPowerwall2AC.pm line 633.


edit: mal wahrscheinlich eine doof frage löscht sich das Modul selbst nach dem Absturz immer?

Black7king

2019.10.02 11:12:17 3: TeslaPowerwall2AC (TeslaPowerwall) - defined TeslaPowerwall2AC Device with Host 192.168.178.157 and Interval 300
2019.10.02 11:12:17 3: TeslaPowerwall2AC (TeslaPowerwall) - set interval to 60
2019.10.02 11:12:17 1: Including ./log/fhem.save
2019.10.02 11:12:17 1: ./log/fhem.save: Please define PowerWall first
Please define PowerWall first

2019.10.02 11:12:17 1: usb create end
2019.10.02 11:12:18 0: Featurelevel: 5.9
2019.10.02 11:12:18 0: Server started with 45 defined entities (fhem.pl:19755/2019-07-01 perl:5.020002 os:linux user:fhem pid:1395)
2019.10.02 11:12:18 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: http error 403
2019.10.02 11:12:34 1: PERL WARNING: Use of uninitialized value $current in string ne at ./FHEM/49_TeslaCar.pm line 436.
2019.10.02 11:13:17 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: http error 403
2019.10.02 11:13:17 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: http error 403
2019.10.02 11:13:52 3: TeslaPowerwall2AC (PowerWall) - defined TeslaPowerwall2AC Device with Host 192.168.178.157 and Interval 300
2019.10.02 11:13:52 3: TeslaPowerwall2AC (PowerWall) - statusRequestERROR: http error 403
2019.10.02 11:14:17 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: http error 403
2019.10.02 11:14:17 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: http error 403
2019.10.02 11:15:17 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: http error 403
2019.10.02 11:15:17 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: http error 403


nach dem ich jetzt wieder eine neu angelt habe kommt dann das ???

CoolTux

Sehr schön. So haben wir was gefunden. Ich habe das jetzt mal gefixt. Sollte nun nicht mehr an der Stelle crashen.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Black7king

#304
AHA sieht schon mal besser er schreibt schon Wieder einige readings aber im log kommt noch das
TESLA DEBUG1 - Code: 200
TESLA DEBUG1 - Path: sitemaster
TESLA DEBUG1 - ResponseString: $VAR1 = '{"running":true,"uptime":"710557s,","connected_to_tesla":true}
';
TESLA DEBUG1 - Code: 200
2019.10.02 11:28:35 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: http error 403


edit: wenn du mehr Zeilen brauchst musst du es sagen

CoolTux

Bitte noch einmal testen mit der gerade neuen Version.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Black7king

#306
2019.10.02 12:19:28 0: Server started with 45 defined entities (fhem.pl:19755/2019-07-01 perl:5.020002 os:linux user:fhem pid:635)
TESLA DEBUG0 - Path: powerwallsstop
TESLA DEBUG0 - ResponseString: $VAR1 = '{"code":403,"error":"Unable to GET to resource","message":"User does not have adequate access rights"}
';
2019.10.02 12:19:30 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: http error 403
2019.10.02 12:19:30 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: data {"code":403,"error":"Unable to GET to resource","message":"User does not have adequate access rights"}
TESLA DEBUG0 - ResponseString: $VAR1 = '{"code":403,"error":"Unable to GET to resource","message":"User does not have adequate access rights"}
';
2019.10.02 12:20:25 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: http error 403
2019.10.02 12:20:25 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: data {"code":403,"error":"Unable to GET to resource","message":"User does not have adequate access rights"}
TESLA DEBUG0 - Path: powerwallsstop
TESLA DEBUG0 - ResponseString: $VAR1 = '{"code":403,"error":"Unable to GET to resource","message":"User does not have adequate access rights"}
';
2019.10.02 12:20:26 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: http error 403
2019.10.02 12:20:26 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: data {"code":403,"error":"Unable to GET to resource","message":"User does not have adequate access rights"}
TESLA DEBUG0 - Path: powerwallsstop
TESLA DEBUG0 - ResponseString: $VAR1 = '{"code":403,"error":"Unable to GET to resource","message":"User does not have adequate access rights"}
';
2019.10.02 12:21:25 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: http error 403
2019.10.02 12:21:25 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: data {"code":403,"error":"Unable to GET to resource","message":"User does not have adequate access rights"}
TESLA DEBUG0 - Path: powerwallsstop
TESLA DEBUG0 - ResponseString: $VAR1 = '{"code":403,"error":"Unable to GET to resource","message":"User does not have adequate access rights"}
';
2019.10.02 12:21:26 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: http error 403
2019.10.02 12:21:26 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: data {"code":403,"error":"Unable to GET to resource","message":"User does not have adequate access rights"}
TESLA DEBUG0 - Path: powerwallsstop
TESLA DEBUG0 - ResponseString: $VAR1 = '{"code":403,"error":"Unable to GET to resource","message":"User does not have adequate access rights"}
';
2019.10.02 12:22:25 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: http error 403
2019.10.02 12:22:25 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: data {"code":403,"error":"Unable to GET to resource","message":"User does not have adequate access rights"}
TESLA DEBUG0 - Path: powerwallsstop
TESLA DEBUG0 - ResponseString: $VAR1 = '{"code":403,"error":"Unable to GET to resource","message":"User does not have adequate access rights"}
';
2019.10.02 12:22:26 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: http error 403
2019.10.02 12:22:26 3: TeslaPowerwall2AC (TeslaPowerwall) - statusRequestERROR: data {"code":403,"error":"Unable to GET to resource","message":"User does not have adequate access rights"}


CoolTux

Super. So kommen wir voran.
Nächste Version. Die sollte nun Readings bringen. Viele Readings.
Wenn nicht brauche ich das log
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Black7king

also FHEM schmiert wieder ab
2019.10.02 12:59:12 0: Server started with 45 defined entities (fhem.pl:19755/2019-07-01 perl:5.020002 os:linux user:fhem pid:1201)
TESLA DEBUG1 - Path: gridstatus
TESLA DEBUG1 - ResponseString: $VAR1 = '{"grid_status":"SystemGridConnected","grid_services_active":false}
';
TESLA DEBUG1 - Code: 200
TESLA DEBUG1 - Path: siteinfo
TESLA DEBUG1 - ResponseString: $VAR1 = '{"max_site_meter_power_kW":1000000000,"min_site_meter_power_kW":-1000000000,"nominal_system_energy_kWh":13.5,"nominal_system_power_kW":15,"site_name":"XXXXXX","timezone":"Europe/Berlin","grid_code":"50Hz_230V_1_VDE4105_2018_Germany","grid_voltage_setting":230,"grid_freq_setting":50,"grid_phase_setting":"Single","country":"Germany","state":"*","distributor":"*","utility":"*","retailer":"*","region":"VDE4105:2018"}
';
TESLA DEBUG1 - Code: 200
Can't use string ("15") as a HASH ref while "strict refs" in use at ./FHEM/46_TeslaPowerwall2AC.pm line 766.

CoolTux

Und wieder einer. Bitte testen.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Black7king

#310
läuft auf jedenfall durch und readings kommen glaube ich auch

2019.10.02 13:18:26 0: Server started with 45 defined entities (fhem.pl:19755/2019-07-01 perl:5.020002 os:linux user:fhem pid:1524)
TESLA DEBUG1 - Path: gridstatus
TESLA DEBUG1 - ResponseString: $VAR1 = '{"grid_status":"SystemGridConnected","grid_services_active":false}
';
TESLA DEBUG1 - Code: 200
TESLA DEBUG1 - Path: sitename
TESLA DEBUG1 - ResponseString: $VAR1 = '{"site_name":"xxxxxx","timezone":"Europe/Berlin"}
';
TESLA DEBUG1 - Code: 200
TESLA DEBUG1 - Path: sitemaster
TESLA DEBUG1 - ResponseString: $VAR1 = '{"running":true,"uptime":"717168s,","connected_to_tesla":true}
';
TESLA DEBUG1 - Code: 200
TESLA DEBUG1 - Path: siteinfo
TESLA DEBUG1 - ResponseString: $VAR1 = '{"max_site_meter_power_kW":1000000000,"min_site_meter_power_kW":-1000000000,"nominal_system_energy_kWh":13.5,"nominal_system_power_kW":15,"site_name":"xxxxxx","timezone":"Europe/Berlin","grid_code":"50Hz_230V_1_VDE4105_2018_Germany","grid_voltage_setting":230,"grid_freq_setting":50,"grid_phase_setting":"Single","country":"Germany","state":"*","distributor":"*","utility":"*","retailer":"*","region":"VDE4105:2018"}
';
TESLA DEBUG1 - Code: 200
TESLA DEBUG1 - Path: registration
TESLA DEBUG1 - ResponseString: $VAR1 = '{"privacy_notice":null,"limited_warranty":null,"grid_services":null,"marketing":null,"registered":true,"timed_out_registration":false}
';
TESLA DEBUG1 - Code: 200
TESLA DEBUG1 - Path: aggregates
TESLA DEBUG1 - ResponseString: $VAR1 = '{"site":{"last_communication_time":"2019-10-02T13:18:47.180775517+02:00","instant_power":71.2640495300293,"instant_reactive_power":-1438.7958984375,"instant_apparent_power":1440.559683635493,"frequency":49.99971389770508,"energy_exported":14090876.67970316,"energy_imported":13640115.728314267,"instant_average_voltage":236.72455342610678,"instant_total_current":0,"i_a_current":0,"i_b_current":0,"i_c_current":0,"timeout":1500000000},"battery":{"last_communication_time":"2019-10-02T13:18:47.195501089+02:00","instant_power":10,"instant_reactive_power":980,"instant_apparent_power":980.0510190801293,"frequency":49.989000000000004,"energy_exported":7145560,"energy_imported":8438120,"instant_average_voltage":236.80000000000004,"instant_total_current":-0.7,"i_a_current":0,"i_b_current":0,"i_c_current":0,"timeout":1500000000},"load":{"last_communication_time":"2019-10-02T13:18:47.180775517+02:00","instant_power":701.8520968041537,"instant_reactive_power":-466.3332945791913,"instant_apparent_power":842.6524238507061,"frequency":49.99971389770508,"energy_exported":0,"energy_imported":27489395.42805555,"instant_average_voltage":236.72455342610678,"instant_total_current":2.9648470623189316,"i_a_current":0,"i_b_current":0,"i_c_current":0,"timeout":1500000000},"solar":{"last_communication_time":"2019-10-02T13:18:47.19754041+02:00","instant_power":637.7161407470703,"instant_reactive_power":8.38306987285614,"instant_apparent_power":637.7712380076656,"frequency":49.99971389770508,"energy_exported":29233018.24194442,"energy_imported":301.8624999812908,"instant_average_voltage":236.7494354248047,"instant_total_current":0,"i_a_current":0,"i_b_current":0,"i_c_current":0,"timeout":1500000000}}
';
TESLA DEBUG1 - Code: 200
TESLA DEBUG1 - Path: statussoe
TESLA DEBUG1 - ResponseString: $VAR1 = '{"percentage":4.906183474429427}
';
TESLA DEBUG1 - Code: 200
TESLA DEBUG1 - Path: powerwalls
TESLA DEBUG1 - ResponseString: $VAR1 = '{"enumerating":false,"updating":false,"checking_if_offgrid":false,"running_phase_detection":false,"phase_detection_last_error":"phase detection not run","bubble_shedding":false,"on_grid_check_error":"on grid check not run","grid_qualifying":false,"grid_code_validating":false,"powerwalls":[{"PackagePartNumber":"1092170-03-G","PackageSerialNumber":"TG1173200001NW","type":"acpw","grid_state":"Grid_Uncompliant","grid_reconnection_time_seconds":0,"under_phase_detection":false,"updating":false,"commissioning_diagnostic":{"name":"Commissioning","category":"InternalComms","disruptive":false,"checks":[{"name":"CAN connectivity","status":"fail","start_time":"2019-10-02T13:18:47.419419988+02:00","end_time":"2019-10-02T13:18:47.419423654+02:00","message":"Cannot connect to CAN bus. Reboot the gateway and try again.","results":{}},{"name":"Enable switch","status":"fail","start_time":"2019-10-02T13:18:47.419426988+02:00","end_time":"2019-10-02T13:18:47.419429321+02:00","message":"Cannot connect to CAN bus. Reboot the gateway and try again.","results":{}},{"name":"Internal communications","status":"fail","start_time":"2019-10-02T13:18:47.419431321+02:00","end_time":"2019-10-02T13:18:47.419433654+02:00","message":"Cannot connect to CAN bus. Reboot the gateway and try again.","results":{}},{"name":"Firmware up-to-date","status":"fail","start_time":"2019-10-02T13:18:47.419435654+02:00","end_time":"2019-10-02T13:18:47.419437654+02:00","message":"Cannot connect to CAN bus. Reboot the gateway and try again.","results":{}}]},"update_diagnostic":{"name":"Firmware Update","category":"InternalComms","disruptive":true,"checks":[{"name":"Powerwall firmware","status":"not_run","start_time":null,"end_time":null,"progress":0,"results":null},{"name":"Battery firmware","status":"not_run","start_time":null,"end_time":null,"progress":0,"results":null},{"name":"Inverter firmware","status":"not_run","start_time":null,"end_time":null,"progress":0,"results":null},{"name":"Grid code","status":"not_run","start_time":null,"end_time":null,"progress":0,"results":null}]}},{"PackagePartNumber":"1092170-03-G","PackageSerialNumber":"TG1173200001PW","type":"acpw","grid_state":"Grid_Uncompliant","grid_reconnection_time_seconds":0,"under_phase_detection":false,"updating":false,"commissioning_diagnostic":{"name":"Commissioning","category":"InternalComms","disruptive":false,"checks":[{"name":"CAN connectivity","status":"fail","start_time":"2019-10-02T13:18:47.434037227+02:00","end_time":"2019-10-02T13:18:47.434041227+02:00","message":"Cannot connect to CAN bus. Reboot the gateway and try again.","results":{}},{"name":"Enable switch","status":"fail","start_time":"2019-10-02T13:18:47.434044561+02:00","end_time":"2019-10-02T13:18:47.434046561+02:00","message":"Cannot connect to CAN bus. Reboot the gateway and try again.","results":{}},{"name":"Internal communications","status":"fail","start_time":"2019-10-02T13:18:47.434048894+02:00","end_time":"2019-10-02T13:18:47.434051227+02:00","message":"Cannot connect to CAN bus. Reboot the gateway and try again.","results":{}},{"name":"Firmware up-to-date","status":"fail","start_time":"2019-10-02T13:18:47.434054561+02:00","end_time":"2019-10-02T13:18:47.434056561+02:00","message":"Cannot connect to CAN bus. Reboot the gateway and try again.","results":{}}]},"update_diagnostic":{"name":"Firmware Update","category":"InternalComms","disruptive":true,"checks":[{"name":"Powerwall firmware","status":"not_run","start_time":null,"end_time":null,"progress":0,"results":null},{"name":"Battery firmware","status":"not_run","start_time":null,"end_time":null,"progress":0,"results":null},{"name":"Inverter firmware","status":"not_run","start_time":null,"end_time":null,"progress":0,"results":null},{"name":"Grid code","status":"not_run","start_time":null,"end_time":null,"progress":0,"results":null}]}},{"PackagePartNumber":"1092170-03-F","PackageSerialNumber":"T17H0012119","type":"acpw","grid_state":"Grid_Uncompliant","grid_reconnection_time_seconds":0,"under_phase_detection":false,"updating":false,"commissioning_diagnostic":{"name":"Commissioning","category":"InternalComms","disruptive":false,"checks":[{"name":"CAN connectivity","status":"fail","start_time":"2019-10-02T13:18:47.454339097+02:00","end_time":"2019-10-02T13:18:47.454345431+02:00","message":"Cannot connect to CAN bus. Reboot the gateway and try again.","results":{}},{"name":"Enable switch","status":"fail","start_time":"2019-10-02T13:18:47.454347764+02:00","end_time":"2019-10-02T13:18:47.454350097+02:00","message":"Cannot connect to CAN bus. Reboot the gateway and try again.","results":{}},{"name":"Internal communications","status":"fail","start_time":"2019-10-02T13:18:47.454352097+02:00","end_time":"2019-10-02T13:18:47.454354097+02:00","message":"Cannot connect to CAN bus. Reboot the gateway and try again.","results":{}},{"name":"Firmware up-to-date","status":"fail","start_time":"2019-10-02T13:18:47.454356431+02:00","end_time":"2019-10-02T13:18:47.45435843+02:00","message":"Cannot connect to CAN bus. Reboot the gateway and try again.","results":{}}]},"update_diagnostic":{"name":"Firmware Update","category":"InternalComms","disruptive":true,"checks":[{"name":"Powerwall firmware","status":"not_run","start_time":null,"end_time":null,"progress":0,"results":null},{"name":"Battery firmware","status":"not_run","start_time":null,"end_time":null,"progress":0,"results":null},{"name":"Inverter firmware","status":"not_run","start_time":null,"end_time":null,"progress":0,"results":null},{"name":"Grid code","status":"not_run","start_time":null,"end_time":null,"progress":0,"results":null}]}}],"has_sync":false,"sync":null,"states":[],"phase_detection_attempt":0}
';
TESLA DEBUG1 - Code: 200
TESLA DEBUG1 - Path: login
TESLA DEBUG1 - ResponseString: $VAR1 = '{"code":401,"error":"bad credentials","message":"Login Error"}
';
TESLA DEBUG1 - Code: 401
TESLA DEBUG1 - Path: meterssolar
TESLA DEBUG1 - ResponseString: $VAR1 = '[{"id":0,"location":"solar","type":"neurio_mb","cts":[true,true,true,false],"inverted":[false,false,false,false],"connection":{"serial_port":"/dev/ttymxc1","baud":115200,"modbus_id":1,"short_id":"Tesla-0.0.7(2)","device_serial":"0x000004714B00474C","neurio_connected":true,"disable_echo":true,"https_conf":{}},"real_power_scale_factor":1,"Cached_readings":{"last_communication_time":"2019-10-02T13:18:51.590970588+02:00","instant_power":643.4848327636719,"instant_reactive_power":8.957932710647583,"instant_apparent_power":643.5471812970197,"frequency":49.99971389770508,"energy_exported":301.8624999812908,"energy_imported":29233018.985555533,"instant_average_voltage":236.69131469726562,"instant_total_current":0,"i_a_current":0,"i_b_current":0,"i_c_current":0,"v_l1n":236.74179077148438,"v_l2n":236.18215942382812,"v_l3n":237.25405883789062,"real_power_a":210.65460205078125,"real_power_b":216.6431884765625,"real_power_c":216.18704223632812,"reactive_power_a":6.394138813018799,"reactive_power_b":-1.5012587308883667,"reactive_power_c":3.5492961406707764,"serial_number":"0x000004714B00474C","version":"Tesla-0.0.7(2)","timeout":1500000000}}]
';
TESLA DEBUG1 - Code: 200
TESLA DEBUG1 - Path: status
TESLA DEBUG1 - ResponseString: $VAR1 = '{"start_time":"2019-10-02 06:31:26 +0800","up_time_seconds":"6h47m25.705072835s","is_new":false,"version":"1.40.2","git_hash":"14f7c1769ec307bba2ea62355a09d01c8e58988c+"}
';
TESLA DEBUG1 - Code: 200
TESLA DEBUG1 - Path: meterssite
TESLA DEBUG1 - ResponseString: $VAR1 = '[{"id":0,"location":"site","type":"neurio_mb","cts":[true,true,true,false],"inverted":[false,false,false,false],"connection":{"serial_port":"/dev/ttymxc2","baud":115200,"modbus_id":1,"short_id":"Tesla-0.0.7(2)","device_serial":"0x000004714B004755","neurio_connected":true,"disable_echo":true,"https_conf":{}},"real_power_scale_factor":1,"Cached_readings":{"last_communication_time":"2019-10-02T13:18:51.882519052+02:00","instant_power":76.87254333496094,"instant_reactive_power":-1449.0116882324219,"instant_apparent_power":1451.0493653053154,"frequency":49.99971389770508,"energy_exported":14090876.67970316,"energy_imported":13640115.825258715,"instant_average_voltage":236.69623819986978,"instant_total_current":0,"i_a_current":0,"i_b_current":0,"i_c_current":0,"v_l1n":236.4050750732422,"v_l2n":236.45217895507812,"v_l3n":237.13589477539062,"real_power_a":217.35293579101562,"real_power_b":-116.41519165039062,"real_power_c":-24.065200805664062,"reactive_power_a":-504.75885009765625,"reactive_power_b":-392.5289001464844,"reactive_power_c":-546.7824096679688,"serial_number":"0x000004714B004755","version":"Tesla-0.0.7(2)","timeout":1500000000}}]
';
TESLA DEBUG1 - Code: 200



TESLA DEBUG1 - Code: 200
2019.10.02 13:23:39 3: TeslaPowerwall2AC (TeslaPowerwall) - RequestERROR: read from https://192.168.178.157:443 timed out

CoolTux

Dann gib mal bitte ein list vom Device und wenn das so passt dann mache ich erstmal die DEBUG Meldungen raus und Du kannst das erstmal so laufen lassen.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Black7king

Internals:
   DEF        192.168.178.157
   FUUID      5d1c3fb1-f33f-6183-a47a-7c9905193fe9349d
   FVERSION   46_TeslaPowerwall2AC.pm:v0.6.112/2019-10-02 UNDER DEVELOP
   HOST       192.168.178.157
   INTERVAL   60
   NAME       TeslaPowerwall
   NOTIFYDEV  global,TeslaPowerwall
   NR         39
   NTFY_ORDER 50-TeslaPowerwall
   STATE      4.9 %
   TYPE       TeslaPowerwall2AC
   VERSION    v0.6.112
   READINGS:
     2019-10-02 13:25:30   actionQueue     6 entries in the Queue
     2019-10-02 13:21:26   aggregates-battery-energy_exported 7145560
     2019-10-02 13:21:26   aggregates-battery-energy_imported 8438120
     2019-10-02 13:21:26   aggregates-battery-frequency 50.033
     2019-10-02 13:21:26   aggregates-battery-i_a_current 0
     2019-10-02 13:21:26   aggregates-battery-i_b_current 0
     2019-10-02 13:21:26   aggregates-battery-i_c_current 0
     2019-10-02 13:21:26   aggregates-battery-instant_apparent_power 970.463806640928
     2019-10-02 13:21:26   aggregates-battery-instant_average_voltage 236.833333333333
     2019-10-02 13:21:26   aggregates-battery-instant_power -30
     2019-10-02 13:21:26   aggregates-battery-instant_reactive_power 970
     2019-10-02 13:21:26   aggregates-battery-instant_total_current -0.7
     2019-10-02 13:21:26   aggregates-battery-last_communication_time 2019-10-02T13:21:45.790238225+02:00
     2019-10-02 13:21:26   aggregates-battery-timeout 1500000000
     2019-10-02 13:21:26   aggregates-load-energy_exported 0
     2019-10-02 13:21:26   aggregates-load-energy_imported 27489430.66
     2019-10-02 13:21:26   aggregates-load-frequency 50.0497817993164
     2019-10-02 13:21:26   aggregates-load-i_a_current 0
     2019-10-02 13:21:26   aggregates-load-i_b_current 0
     2019-10-02 13:21:26   aggregates-load-i_c_current 0
     2019-10-02 13:21:26   aggregates-load-instant_apparent_power 838.373515173967
     2019-10-02 13:21:26   aggregates-load-instant_average_voltage 236.735748291016
     2019-10-02 13:21:26   aggregates-load-instant_power 694.394573827665
     2019-10-02 13:21:26   aggregates-load-instant_reactive_power -469.772633072478
     2019-10-02 13:21:26   aggregates-load-instant_total_current 2.9332053939486
     2019-10-02 13:21:26   aggregates-load-last_communication_time 2019-10-02T13:21:45.788425903+02:00
     2019-10-02 13:21:26   aggregates-load-timeout 1500000000
     2019-10-02 13:21:26   aggregates-site-energy_exported 14090876.6797032
     2019-10-02 13:21:26   aggregates-site-energy_imported 13640121.3930365
     2019-10-02 13:21:26   aggregates-site-frequency 50.0497817993164
     2019-10-02 13:21:26   aggregates-site-i_a_current 0
     2019-10-02 13:21:26   aggregates-site-i_b_current 0
     2019-10-02 13:21:26   aggregates-site-i_c_current 0
     2019-10-02 13:21:26   aggregates-site-instant_apparent_power 1455.31348548303
     2019-10-02 13:21:26   aggregates-site-instant_average_voltage 236.735748291016
     2019-10-02 13:21:26   aggregates-site-instant_power 157.124352931976
     2019-10-02 13:21:26   aggregates-site-instant_reactive_power -1446.80657958984
     2019-10-02 13:21:26   aggregates-site-instant_total_current 0
     2019-10-02 13:21:26   aggregates-site-last_communication_time 2019-10-02T13:21:45.788425903+02:00
     2019-10-02 13:21:26   aggregates-site-timeout 1500000000
     2019-10-02 13:21:26   aggregates-solar-energy_exported 29233047.8091666
     2019-10-02 13:21:26   aggregates-solar-energy_imported 301.862499981291
     2019-10-02 13:21:26   aggregates-solar-frequency 50.0497817993164
     2019-10-02 13:21:26   aggregates-solar-i_a_current 0
     2019-10-02 13:21:26   aggregates-solar-i_b_current 0
     2019-10-02 13:21:26   aggregates-solar-i_c_current 0
     2019-10-02 13:21:26   aggregates-solar-instant_apparent_power 537.627260890967
     2019-10-02 13:21:26   aggregates-solar-instant_average_voltage 236.812154134115
     2019-10-02 13:21:26   aggregates-solar-instant_power 537.402648925781
     2019-10-02 13:21:26   aggregates-solar-instant_reactive_power 15.539130628109
     2019-10-02 13:21:26   aggregates-solar-instant_total_current 0
     2019-10-02 13:21:26   aggregates-solar-last_communication_time 2019-10-02T13:21:45.789990227+02:00
     2019-10-02 13:21:26   aggregates-solar-timeout 1500000000
     2019-10-02 13:25:30   batteryLevel    4.9
     2019-10-02 13:25:30   batteryPower    0.7
     2019-10-02 13:21:26   gridstatus-grid_services_active false
     2019-10-02 13:21:26   gridstatus-grid_status SystemGridConnected
     2019-10-02 13:25:35   lastRequestError read from https://192.168.178.157:443 timed out
     2019-10-02 13:25:30   meterssite-Cached_readings-energy_exported 14090876.6797032
     2019-10-02 13:25:30   meterssite-Cached_readings-energy_imported 13640132.4083143
     2019-10-02 13:25:30   meterssite-Cached_readings-frequency 49.9997138977051
     2019-10-02 13:25:30   meterssite-Cached_readings-i_a_current 0
     2019-10-02 13:25:30   meterssite-Cached_readings-i_b_current 0
     2019-10-02 13:25:30   meterssite-Cached_readings-i_c_current 0
     2019-10-02 13:25:30   meterssite-Cached_readings-instant_apparent_power 1531.42768402532
     2019-10-02 13:25:30   meterssite-Cached_readings-instant_average_voltage 236.558502197266
     2019-10-02 13:25:30   meterssite-Cached_readings-instant_power 120.256965637207
     2019-10-02 13:25:30   meterssite-Cached_readings-instant_reactive_power -1526.69873046875
     2019-10-02 13:25:30   meterssite-Cached_readings-instant_total_current 0
     2019-10-02 13:25:30   meterssite-Cached_readings-last_communication_time 2019-10-02T13:25:30.581122978+02:00
     2019-10-02 13:25:30   meterssite-Cached_readings-reactive_power_a -581.47509765625
     2019-10-02 13:25:30   meterssite-Cached_readings-reactive_power_b -393.521911621094
     2019-10-02 13:25:30   meterssite-Cached_readings-reactive_power_c -547.424926757812
     2019-10-02 13:25:30   meterssite-Cached_readings-real_power_a 130.464828491211
     2019-10-02 13:25:30   meterssite-Cached_readings-real_power_b -31.3088531494141
     2019-10-02 13:25:30   meterssite-Cached_readings-real_power_c 32.0966682434082
     2019-10-02 13:25:30   meterssite-Cached_readings-serial_number 0x000004714B004755
     2019-10-02 13:25:30   meterssite-Cached_readings-timeout 1500000000
     2019-10-02 13:25:30   meterssite-Cached_readings-v_l1n 236.720611572266
     2019-10-02 13:25:30   meterssite-Cached_readings-v_l2n 235.940368652344
     2019-10-02 13:25:30   meterssite-Cached_readings-v_l3n 237.141540527344
     2019-10-02 13:25:30   meterssite-Cached_readings-version Tesla-0.0.7(2)
     2019-10-02 13:25:30   meterssite-connection-baud 115200
     2019-10-02 13:25:30   meterssite-connection-device_serial 0x000004714B004755
     2019-10-02 13:25:30   meterssite-connection-disable_echo true
     2019-10-02 13:25:30   meterssite-connection-modbus_id 1
     2019-10-02 13:25:30   meterssite-connection-neurio_connected true
     2019-10-02 13:25:30   meterssite-connection-serial_port /dev/ttymxc2
     2019-10-02 13:25:30   meterssite-connection-short_id Tesla-0.0.7(2)
     2019-10-02 13:25:30   meterssite-id   0
     2019-10-02 13:25:30   meterssite-location site
     2019-10-02 13:25:30   meterssite-real_power_scale_factor 1
     2019-10-02 13:25:30   meterssite-type neurio_mb
     2019-10-02 13:25:30   meterssolar-Cached_readings-energy_exported 301.862499981291
     2019-10-02 13:25:30   meterssolar-Cached_readings-energy_imported 29233080.5955555
     2019-10-02 13:25:30   meterssolar-Cached_readings-frequency 49.9997138977051
     2019-10-02 13:25:30   meterssolar-Cached_readings-i_a_current 0
     2019-10-02 13:25:30   meterssolar-Cached_readings-i_b_current 0
     2019-10-02 13:25:30   meterssolar-Cached_readings-i_c_current 0
     2019-10-02 13:25:30   meterssolar-Cached_readings-instant_apparent_power 507.17436019764
     2019-10-02 13:25:30   meterssolar-Cached_readings-instant_average_voltage 236.598917643229
     2019-10-02 13:25:30   meterssolar-Cached_readings-instant_power 506.880264282227
     2019-10-02 13:25:30   meterssolar-Cached_readings-instant_reactive_power 17.2693173885345
     2019-10-02 13:25:30   meterssolar-Cached_readings-instant_total_current 0
     2019-10-02 13:25:30   meterssolar-Cached_readings-last_communication_time 2019-10-02T13:25:30.49802651+02:00
     2019-10-02 13:25:30   meterssolar-Cached_readings-reactive_power_a 6.74610948562622
     2019-10-02 13:25:30   meterssolar-Cached_readings-reactive_power_b 2.13640666007996
     2019-10-02 13:25:30   meterssolar-Cached_readings-reactive_power_c 6.45855522155762
     2019-10-02 13:25:30   meterssolar-Cached_readings-real_power_a 166.804885864258
     2019-10-02 13:25:30   meterssolar-Cached_readings-real_power_b 170.594955444336
     2019-10-02 13:25:30   meterssolar-Cached_readings-real_power_c 169.34797668457
     2019-10-02 13:25:30   meterssolar-Cached_readings-serial_number 0x000004714B00474C
     2019-10-02 13:25:30   meterssolar-Cached_readings-timeout 1500000000
     2019-10-02 13:25:30   meterssolar-Cached_readings-v_l1n 236.963348388672
     2019-10-02 13:25:30   meterssolar-Cached_readings-v_l2n 235.687713623047
     2019-10-02 13:25:30   meterssolar-Cached_readings-v_l3n 237.145690917969
     2019-10-02 13:25:30   meterssolar-Cached_readings-version Tesla-0.0.7(2)
     2019-10-02 13:25:30   meterssolar-connection-baud 115200
     2019-10-02 13:25:30   meterssolar-connection-device_serial 0x000004714B00474C
     2019-10-02 13:25:30   meterssolar-connection-disable_echo true
     2019-10-02 13:25:30   meterssolar-connection-modbus_id 1
     2019-10-02 13:25:30   meterssolar-connection-neurio_connected true
     2019-10-02 13:25:30   meterssolar-connection-serial_port /dev/ttymxc1
     2019-10-02 13:25:30   meterssolar-connection-short_id Tesla-0.0.7(2)
     2019-10-02 13:25:30   meterssolar-id  0
     2019-10-02 13:25:30   meterssolar-location solar
     2019-10-02 13:25:30   meterssolar-real_power_scale_factor 1
     2019-10-02 13:25:30   meterssolar-type neurio_mb
     2019-10-02 13:21:27   powerwalls-numberOfWalls 3
     2019-10-02 13:21:27   powerwalls-wall_0_PackagePartNumber xxxxxxx-03-G
     2019-10-02 13:21:27   powerwalls-wall_0_PackageSerialNumber xxxxxxxxxx
     2019-10-02 13:21:27   powerwalls-wall_0_commissioning_diagnostic HASH(0x2e6bb68)
     2019-10-02 13:21:27   powerwalls-wall_0_grid_reconnection_time_seconds 0
     2019-10-02 13:21:27   powerwalls-wall_0_grid_state Grid_Uncompliant
     2019-10-02 13:21:27   powerwalls-wall_0_type acpw
     2019-10-02 13:21:27   powerwalls-wall_0_under_phase_detection false
     2019-10-02 13:21:27   powerwalls-wall_0_update_diagnostic HASH(0x2da91d8)
     2019-10-02 13:21:27   powerwalls-wall_0_updating false
     2019-10-02 13:21:27   powerwalls-wall_1_PackagePartNumber xxxxxxx-03-G
     2019-10-02 13:21:27   powerwalls-wall_1_PackageSerialNumber TG11xxxxxxx1PW
     2019-10-02 13:21:27   powerwalls-wall_1_commissioning_diagnostic HASH(0x2da19b0)
     2019-10-02 13:21:27   powerwalls-wall_1_grid_reconnection_time_seconds 0
     2019-10-02 13:21:27   powerwalls-wall_1_grid_state Grid_Uncompliant
     2019-10-02 13:21:27   powerwalls-wall_1_type acpw
     2019-10-02 13:21:27   powerwalls-wall_1_under_phase_detection false
     2019-10-02 13:21:27   powerwalls-wall_1_update_diagnostic HASH(0x2e38df8)
     2019-10-02 13:21:27   powerwalls-wall_1_updating false
     2019-10-02 13:21:27   powerwalls-wall_2_PackagePartNumber xxxxxxx-03-F
     2019-10-02 13:21:27   powerwalls-wall_2_PackageSerialNumber T1xxxxxxxx
     2019-10-02 13:21:27   powerwalls-wall_2_commissioning_diagnostic HASH(0x2d40608)
     2019-10-02 13:21:27   powerwalls-wall_2_grid_reconnection_time_seconds 0
     2019-10-02 13:21:27   powerwalls-wall_2_grid_state Grid_Uncompliant
     2019-10-02 13:21:27   powerwalls-wall_2_type acpw
     2019-10-02 13:21:27   powerwalls-wall_2_under_phase_detection false
     2019-10-02 13:21:27   powerwalls-wall_2_update_diagnostic HASH(0x2da1a88)
     2019-10-02 13:21:27   powerwalls-wall_2_updating false
     2019-10-02 13:25:30   registration-registered true
     2019-10-02 13:25:30   registration-timed_out_registration false
     2019-10-02 13:21:26   siteinfo-country Germany
     2019-10-02 13:21:26   siteinfo-distributor *
     2019-10-02 13:21:26   siteinfo-grid_code 50Hz_230V_1_VDE4105_2018_Germany
     2019-10-02 13:21:26   siteinfo-grid_freq_setting 50
     2019-10-02 13:21:26   siteinfo-grid_phase_setting Single
     2019-10-02 13:21:26   siteinfo-grid_voltage_setting 230
     2019-10-02 13:21:26   siteinfo-max_site_meter_power_kW 1000000000
     2019-10-02 13:21:26   siteinfo-min_site_meter_power_kW -1000000000
     2019-10-02 13:21:26   siteinfo-nominal_system_energy_kWh 13.5
     2019-10-02 13:21:26   siteinfo-nominal_system_power_kW 15
     2019-10-02 13:21:26   siteinfo-region VDE4105:2018
     2019-10-02 13:21:26   siteinfo-retailer *
     2019-10-02 13:21:26   siteinfo-site_name xxxxxxx
     2019-10-02 13:21:26   siteinfo-state  *
     2019-10-02 13:21:26   siteinfo-timezone Europe/Berlin
     2019-10-02 13:21:26   siteinfo-utility *
     2019-10-02 13:21:26   sitemaster-connected_to_tesla true
     2019-10-02 13:21:26   sitemaster-running true
     2019-10-02 13:21:26   sitemaster-uptime 717347s,
     2019-10-02 13:21:26   sitename-site_name xxxxxxx
     2019-10-02 13:21:26   sitename-timezone Europe/Berlin
     2019-10-02 13:25:35   state           read from https://192.168.178.157:443 timed out
     2019-10-02 13:25:30   status-git_hash 14f7c1769ec307bba2ea62355a09d01c8e58988c+
     2019-10-02 13:25:30   status-is_new   false
     2019-10-02 13:25:30   status-start_time 2019-10-02 06:31:26 +0800
     2019-10-02 13:25:30   status-up_time_seconds 6h54m4.678640332s
     2019-10-02 13:25:30   status-version  1.40.2
     2019-10-02 13:25:30   statussoe-percentage 4.90123273429378
   actionQueue:
Attributes:
   event-on-change-reading .*
   group      Powerwall
   icon       measure_battery_50
   interval   60
   room       TESLA
   stateFormat batteryLevel %

CoolTux

Super. Du hast 3 Powerwalls?
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Black7king

#314
ja macht das wohl einen unterscheid?

aber es kommt im LOG immer wieder sowas

';
TESLA DEBUG1 - Code: 200
2019.10.02 13:33:35 3: TeslaPowerwall2AC (TeslaPowerwall) - RequestERROR: read from https://192.168.178.157:443 timed out