Zitat von: andies am 24 Dezember 2025, 12:57:05Man ruft im Handy in Wireguard die Konfiguration auf. Dort steht "Serveradresse" und wenn man die conf mit UniFi erzeugt hat, steht da Unsinn (bei mir 127.0.0.1).Evtl. kann man das bei Unfi auch wo einstellen?

2025-12-22_23:59:00 Strom_Line 1 27 0 5148 54434 43036
2025-12-23_23:59:00 Strom_Line 4 31 0 5152 54465 43036
# alternativ mit LogProxy
define Diag_Strom_sum2 SVG myProxy:rw_power_LP:CURRENT
attr Diag_Strom_sum2 label "Stromverbrauch Montatsview LP"
attr Diag_Strom_sum2 fixedrange month
Plot Datei rw_power_LP.gplot
############################
# Display the power reported by the Stromzähler -- Monatsplot
# FileLog Inhalt :
# define FileLog_Strom FileLog /var/log/fhem/Strom/Stromz_sum-%Y_%m.log HT-Verbrauch NT-Verbrauch Einspeisung ..Zählerst..
#
# 2025-12-22_23:59:00 Strom_Line 1 27 0 5148 54434 43036
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set title '<L1>'
set timefmt "%Y-%m-%d_%H:%M:%S"
set xdata time
set ylabel "kWh"
set grid ytics
#logProxy FileLog:FileLog_Strom,offset=-3600*8:3:::
#logProxy FileLog:FileLog_Strom,offset=-3600*4:4:::
#logProxy FileLog:FileLog_Strom:5:::
plot "<IN>" using 1:2 axes x1y1 title 'NT' ls l0 lw 1 with needles,\
"<IN>" using 1:2 axes x1y1 title 'HT' ls l1 lw 1 with needles,\
"<IN>" using 1:2 axes x1y1 title 'Einsp' ls l2 lw 1 with needles
Zitat von: andies am 24 Dezember 2025, 10:08:38Das ist schon mal der erste Unterschied: Ich habe die FB abgeben müssen und nehme Speedport. Letzteres ist wesentlich unflexibler. Beispielsweise kann ich nicht "exposed host" einstellen, was vieles einfacher machen würde.Im anderen Setup habe ich auch einen Speedport.
Läuft ja inzwischen... 
Internals:
DEF example@domain.com xxXXYYYY 60
FUUID 694be4fa-f33f-63ec-308f-7c4dae63e142c9ae
FVERSION 98_vitoconnect.pm:v1.0.3-s29593/2025-01-29
NAME Waermepumpe
NR 321
Redirect_URI http://localhost:4200/
STATE login ok
TYPE vitoconnect
apiKey XY s. Account
counter 0
eventCount 2
intervall 60
login ok
timeout 15
user example@domain.com
HELPER:
PACKAGE main
VERSION 1.0.3
VERSION_API unused
VERSION_CTZ unused
VERSION_ErrCodes unused
VERSION_SMUtils 1.28.3
READINGS:
2025-12-24 14:06:09 login ok
2025-12-24 14:06:09 state login ok
devices:
Attributes:
alias Waermepumpe
icon sani_heating_heatpump
room Heizung,Keller
userReadings login {InternalVal("Waermepumpe","login","-")}
vitoconnect_actions_active 1
vitoconnect_installationID 157462
vitoconnect_serial 75713817437782062025.12.24 14:10:13.560 1: Waermepumpe - Access Token: nicht definiert
2025.12.24 14:10:13.560 1: Waermepumpe - Received response: {"error":"invalid-token-request"}Zitat von: CoolTux am 23 Dezember 2025, 16:37:46Schöne Lösung. Auch nice wäre ein OAuth2 oder besser gleich OIDC. Mein Keycloak würde sich da freuenIch nutze oauth2-proxy und nginx auth_request. Nginx sendet dann, bei erfolgreicher Anmeldung über den oauth2-proxy, einfach den Basic Auth header mit (also user:pass in base64; ähnlich wie in diesem Beispiel X-Access-Token nur eben hardcoded). In FHEM muss man also gar nichts umstellen.

