Selbstbau-PV / Selbstbau-PV-Hoymiles-nulleinspeisung-mit-OpenDTU-und-Shelly3EM

Ein Python-Skript, das den aktuellen Hausverbrauch aus einem Shelly 3EM ausliest, die Nulleinspeisung berechnet und die Ausgangsleistung eines Hoymiles-Wechselrichters mit Hilfe der OpenDTU entsprechend anpasst. Somit wird kein unnötiger Strom ins Betreibernetz abgegeben.
61 stars 24 forks source link

Python Script change for Shelly 3EM Pro API #16

Closed MarkusPVHM closed 3 months ago

MarkusPVHM commented 1 year ago

Hello, it would be very helpful for me, if sombody could modify this python script for a shelly 3EM pro, which has a different API than shelly 3EM.

Thanks in advance Markus

kthemall commented 1 year ago

   # Nimmt Daten von der Shelly 3EM Rest-API und übersetzt sie in ein json-Format         phase_a = requests.get(f'http://{shelly_ip}/rpc/EM.GetStatus?id=0', headers={'Content-Type': 'application/json'}).json()['a_act_power']         phase_b = requests.get(f'http://{shelly_ip}/rpc/EM.GetStatus?id=0', headers={'Content-Type': 'application/json'}).json()['b_act_power']         phase_c = requests.get(f'http://{shelly_ip}/rpc/EM.GetStatus?id=0', headers={'Content-Type': 'application/json'}).json()['c_act_power']  

   

Gesendet: Dienstag, 06. Juni 2023 um 14:14 Uhr Von: "MarkusPVHM" @.> An: "Selbstbau-PV/Selbstbau-PV-Hoymiles-nulleinspeisung-mit-OpenDTU-und-Shelly3EM" @.> Cc: "Subscribed" @.***> Betreff: [Selbstbau-PV/Selbstbau-PV-Hoymiles-nulleinspeisung-mit-OpenDTU-und-Shelly3EM] Python Script change for Shelly 3EM Pro API (Issue #16)

 

Hello, it would be very helpful for me, if sombody could modify this python script for a shelly 3EM pro, which has a different API than shelly 3EM.

Thanks in advance Markus

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

greymda commented 3 months ago

@MarkusPVHM can you confirm this works? cheers

MarkusPVHM commented 3 months ago

@MarkusPVHM can you confirm this works? cheers

Yeah, it works perfekt with shelly 3EM Pro and older OPENDTU Firmwares

But it is not working any more with newer OPENDTU Firmware, they changed the API again....