[46_TeslaPowerwall2AC] neues Modul für Tesla Stromspeicher

Begonnen von CoolTux, 18 Oktober 2017, 12:15:12

Vorheriges Thema - Nächstes Thema

Eckat

Vielen Dank Marko!  :D

Erst war mir nicht klar, wie man die Zugangsdaten setzt, da "nur" setPassword als Befehl vorhanden war.
Aber zum Glück gibt es GIT und auch wenn ich mit perl, außerhalb von fhem, quasi keine Berührungspunkte habe, konnte ich erkennen, dass man erst das Attribut emailaddr setzen muss.
Hätte ich natürlich auch "gemerkt", wenn ich einfach versucht hätte das Passwort zu setzen.

Super Arbeit  8)

LR66

@CoolTux
Super!!! Vielen lieben Dank!
Echt prima wieder an die Daten zu kommen!
Ersetzt nun meine unbrauchbar gewordenen HttpMod's (auch wenn ich nicht alle der Unmengen an Readings brauche).

Mit dem Login könnte man wohl nun auch set-Befehle gemäß https://github.com/vloschiavo/powerwall2 für
GET /api/sitemaster/stop
GET /api/sitemaster/run
GET,POST /api/operation (Change the Powerwall mode and Reserve Percentage) mit /api/config/completed
implementieren?
Viele Grüße, Lutz

CoolTux

Zitat von: LR66 am 28 Februar 2021, 23:42:37
@CoolTux
Super!!! Vielen lieben Dank!
Echt prima wieder an die Daten zu kommen!
Ersetzt nun meine unbrauchbar gewordenen HttpMod's (auch wenn ich nicht alle der Unmengen an Readings brauche).

Mit dem Login könnte man wohl nun auch set-Befehle gemäß https://github.com/vloschiavo/powerwall2 für
GET /api/sitemaster/stop
GET /api/sitemaster/run
GET,POST /api/operation (Change the Powerwall mode and Reserve Percentage) mit /api/config/completed
implementieren?
Viele Grüße, Lutz

Ja das könnte man. Und es gibt bereits start und stop die aber leider noch nicht zu gehen scheinen.
Setze das Attribut devel auf 1 dann sollten die Befehle kommen.
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

TimoD

Danke, CoolTux für die Implementation der Änderungen !!!!

pnewman

Hallo CoolTux,
vielen Dank für deine Bemühungen.

Ich kann mir ungefähr vorstellen wie schwierig es für dich ist an einem Modul zu arbeiten ohne selbst das Objekt physisch greifbar zu haben.

Mein Passwort besteht nur aus Buchstaben und Zahlen, Groß- und Kleinschreibung.

@Gigafix
Ja, ich habe es nun mit beiden Varianten versucht.
Leider ohne Erfolg.

Irgendwo ist bei mir noch der Wurm drin.
Oder ich sehe den Wald vor lauter Bäumen nicht.

Gruß
Ralf

P.S.
Hier nochmal ein List:
Internals:
   CFGFN     
   DEF        192.168.178.31
   FUUID      603e594c-f33f-9ba6-2e69-d498616af1b9dbab
   HOST       192.168.178.31
   INTERVAL   300
   NAME       myPowerWall
   NOTIFYDEV  global,myPowerWall
   NR         527
   NTFY_ORDER 50-myPowerWall
   STATE      read from https://192.168.178.31:443 timed out
   TYPE       TeslaPowerwall2AC
   VERSION    v1.0.3
   READINGS:
     2021-03-02 16:32:48   lastRequestError read from https://192.168.178.31:443 timed out
     2021-03-02 16:32:48   state           read from https://192.168.178.31:443 timed out
   actionQueue:
Attributes:
   alias      myPowerWall
   emailaddr  pnewman2@meine Mailadresse.de
   room       Tesla
Raspberry Pi3B+ / Nano-Cul 868 - MAX!=Heizung, HM-Lan - Rollo+Licht, JeeLink-Clone 868 - LaCrosse, JeeLink-Clone 868 - PCA301, CUL 434 - IT-Steckdosen+Fernbedienung

CoolTux

Er erreicht das Web der Wall nicht. Warum auch immer. Falsche IP oder so?
Und aktuell ist die 1.0.3er Version kaputt.

@all
Bitte entfernt aus dem update das Tesla Powerwall Devel und setzt es mit master statt devel neu. So kann ich mit einzelnen Leuten weiter entwickeln und bei den meisten geht dann nichts kaputt.
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

pnewman

Hallo zusammen,

ich habe ein generelles Problem.

Keine meiner Änderungen sind von Dauer!
Nach einem shutdown restart ist alles wieder beim alten!

Ich spiele mal ein Backup zurück und melde mich später wieder.

Gruß
Ralf

Raspberry Pi3B+ / Nano-Cul 868 - MAX!=Heizung, HM-Lan - Rollo+Licht, JeeLink-Clone 868 - LaCrosse, JeeLink-Clone 868 - PCA301, CUL 434 - IT-Steckdosen+Fernbedienung

CoolTux

@all


update delete https://git.cooltux.net/FHEM/mod-TeslaPowerwall2AC/raw/branch/devel/controls_TeslaPowerwall2AC.txt
update add https://git.cooltux.net/FHEM/mod-TeslaPowerwall2AC/raw/branch/testing/controls_TeslaPowerwall2AC.txt


Damit seit Ihr ab sofort auf der sicheren Seite.
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

pnewman

#23
Hallo zusammen,

mein Backup ist eingespielt.
Trotzdem bekomme ich eine Fehlermeldung

Hier mein List:
Internals:
   DEF        192.168.178.31
   FUUID      603e6ab8-f33f-ab8b-b74a-ad6db0ef048792c8
   HOST       192.168.178.31
   INTERVAL   60
   NAME       myPowerWall
   NOTIFYDEV  global,myPowerWall
   NR         513
   NTFY_ORDER 50-myPowerWall
   STATE      read from https://192.168.178.31:443 timed out
   TYPE       TeslaPowerwall2AC
   VERSION    v1.0.2
   READINGS:
     2021-03-02 18:58:08   lastRequestError read from https://192.168.178.31:443 timed out
     2021-03-02 18:58:08   state           read from https://192.168.178.31:443 timed out
   actionQueue:
Attributes:
   alias      myPowerWall
   emailaddr  pnewman2@meinemailadresse.de
   interval   60
   room       Energie


Gruß
Ralf
Raspberry Pi3B+ / Nano-Cul 868 - MAX!=Heizung, HM-Lan - Rollo+Licht, JeeLink-Clone 868 - LaCrosse, JeeLink-Clone 868 - PCA301, CUL 434 - IT-Steckdosen+Fernbedienung

CoolTux

Gehe mal auf Deinen FHEM Rechner und mache einen ping 192.168.178.31
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

pnewman

Hallo CoolTux,

hier das Ergebnis aus Terminal:

neumann@MacBook-Air ~ % ping 192.168.178.31
PING 192.168.178.31 (192.168.178.31): 56 data bytes
64 bytes from 192.168.178.31: icmp_seq=0 ttl=64 time=11.400 ms
64 bytes from 192.168.178.31: icmp_seq=1 ttl=64 time=7.962 ms
64 bytes from 192.168.178.31: icmp_seq=2 ttl=64 time=8.630 ms
64 bytes from 192.168.178.31: icmp_seq=3 ttl=64 time=6.742 ms
64 bytes from 192.168.178.31: icmp_seq=4 ttl=64 time=3.393 ms
64 bytes from 192.168.178.31: icmp_seq=5 ttl=64 time=9.747 ms
64 bytes from 192.168.178.31: icmp_seq=6 ttl=64 time=9.632 ms
64 bytes from 192.168.178.31: icmp_seq=7 ttl=64 time=10.927 ms
64 bytes from 192.168.178.31: icmp_seq=8 ttl=64 time=9.256 ms
64 bytes from 192.168.178.31: icmp_seq=9 ttl=64 time=9.405 ms
^C
--- 192.168.178.31 ping statistics ---
10 packets transmitted, 10 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 3.393/8.709/11.400/2.181 m


Gruß
Ralf
Raspberry Pi3B+ / Nano-Cul 868 - MAX!=Heizung, HM-Lan - Rollo+Licht, JeeLink-Clone 868 - LaCrosse, JeeLink-Clone 868 - PCA301, CUL 434 - IT-Steckdosen+Fernbedienung

CoolTux

dann versuch mal vom fhem Rechner aus

curl https://192.168.178.31
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

pnewman

Hallo CoolTux,

hier das Ergebnis:
neumann@MacBook-Air ~ % curl https://192.168.178.31
curl: (60) SSL certificate problem: self signed certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
neumann@MacBook-Air ~ %


Gruß
Ralf
Raspberry Pi3B+ / Nano-Cul 868 - MAX!=Heizung, HM-Lan - Rollo+Licht, JeeLink-Clone 868 - LaCrosse, JeeLink-Clone 868 - PCA301, CUL 434 - IT-Steckdosen+Fernbedienung

CoolTux

MacBook-Air

Da läuft Dein FHEM drauf? Auf einem MacBook?

Mach mal curl -k https://192.168.178.31
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

pnewman

Bitte entschuldige, da habe ich mich wohl verzettelt.


Hier Der Ping aus FHEM:
pi@raspi3b-fhem:~ $ ping 192.168.178.31
PING 192.168.178.31 (192.168.178.31) 56(84) bytes of data.
64 bytes from 192.168.178.31: icmp_seq=1 ttl=64 time=0.456 ms
64 bytes from 192.168.178.31: icmp_seq=2 ttl=64 time=0.409 ms
64 bytes from 192.168.178.31: icmp_seq=3 ttl=64 time=0.433 ms
64 bytes from 192.168.178.31: icmp_seq=4 ttl=64 time=0.417 ms
64 bytes from 192.168.178.31: icmp_seq=5 ttl=64 time=0.370 ms
64 bytes from 192.168.178.31: icmp_seq=6 ttl=64 time=0.402 ms
64 bytes from 192.168.178.31: icmp_seq=7 ttl=64 time=0.364 ms
64 bytes from 192.168.178.31: icmp_seq=8 ttl=64 time=0.406 ms
^X64 bytes from 192.168.178.31: icmp_seq=9 ttl=64 time=0.392 ms
64 bytes from 192.168.178.31: icmp_seq=10 ttl=64 time=0.474 ms
^C
--- 192.168.178.31 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 353ms
rtt min/avg/max/mdev = 0.364/0.412/0.474/0.036 ms



Hier das curl:

pi@raspi3b-fhem:~ $ curl https://192.168.178.31
curl: (60) SSL certificate problem: self signed certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
pi@raspi3b-fhem:~ $


Hier die letzte :
pi@raspi3b-fhem:~ $ curl -k https://192.168.178.31
<!doctype html><html lang="en"><head><title>Tesla Energy - Setup</title><link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32"><link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"><script>window.__INITIAL_STATE__={"configuration":{"isNew":false,"version":"20.49.0","hash":"42eb71218f889a3aa3635b7b57cffe1de76b7438","deviceType":"hec","bootstrapped":true},"sitemaster":{"running":true,"connectedToTesla":true},"system":{"isFirmwareUpdating":false,"Version":""},"authentication":{"loginType":"kiosk","selectedLoginType":"kiosk","lastLoginAt":1612809445000,"toggle_auth_supported":true}}
</script><link href="/app.71d06eb7392a8da3db04.css" rel="stylesheet"></head><body><div id="root" style="height:100%"></div><script type="text/javascript" src="/vendor.71d06eb7392a8da3db04.js"></script><script type="text/javascript" src="/app.71d06eb7392a8da3db04.js"></script></body></html>pi@raspi3b-fhem:~ $



Raspberry Pi3B+ / Nano-Cul 868 - MAX!=Heizung, HM-Lan - Rollo+Licht, JeeLink-Clone 868 - LaCrosse, JeeLink-Clone 868 - PCA301, CUL 434 - IT-Steckdosen+Fernbedienung