apt install libgd-perlsudo -u stephan pip3 install --break-system-packages paho-mqtt
####################################################################
###### #######
###### Taster.py Version 1.5 #######
###### mit gpiod #######
###### mqtt Client wird geöffnet und #######
###### wenn ein Event der Input gpio #######
###### erfasst wird sendet der mqtt client #######
###### dieses an Fhem. Wenn dort noch kein #######
###### MQTT2_GPIO device vorhanden ist wird es #######
###### automatisch angelegt im MQTT Raum #######
###### das script läuft mit nur sehr geringer #######
###### CPU Läst #######
###### #######
###### Erstellt am 06.11.2026 und unter #######
###### trixe erfolgreich getestet #######
###### #######
####################################################################
import logging
import paho.mqtt.client as mqtt
from datetime import timedelta
import gpiod
# Bias hinzugefügt, um interne Widerstände zu aktivieren
from gpiod.line import Direction, Edge, Bias
# mqtt Client öffnen
broker_address="localhost"
port = 1883
client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2,"MQTT2_GPIO")
username = 'DEIN_USERNAME'
password = 'DEIN_PASSWORD'
client.username_pw_set(username, password)
client.connect(broker_address, port)
client.loop_start()
# Alle deine Taster-Pins
DEBOUNCED_PINS = [17, 27, 5, 19, 26, 21, 20, 12, 1, 7, 8, 18]
RAW_PIN = 4 # Das ist der Interrupt für die MCPs
CHIP_PATH = "/dev/gpiochip0"
# Die Konfiguration wird für jeden Pin-Typ individuell erstellt
pin_config = {}
# 1. Konfiguration für die Taster (Mit Entprellung UND internem Pull-Up Widerstand)
for pin in DEBOUNCED_PINS:
pin_config[pin] = gpiod.LineSettings(
direction=Direction.INPUT,
edge_detection=Edge.BOTH,
bias=Bias.PULL_UP, # <- Aktiviert den internen Pull-Up Widerstand
debounce_period=timedelta(milliseconds=10) # Filtert Prellen unter 10ms
)
# 2. Konfiguration für den nicht-entprellten Pin (Ebenfalls mit Pull-Up für den MCP-Interrupt)
pin_config[RAW_PIN] = gpiod.LineSettings(
direction=Direction.INPUT,
edge_detection=Edge.BOTH,
bias=Bias.PULL_UP # <- Auch hier wird oft ein Pull-Up benötigt
)
try:
with gpiod.request_lines(
CHIP_PATH,
consumer="DebounceSelector",
config=pin_config
) as lines:
while True:
# Blockiert hocheffizient im Kernel
if lines.wait_edge_events():
for event in lines.read_edge_events():
triggered_pin = event.line_offset
# Korrekte Event-Typ-Bestimmung
if event.event_type == event.Type.RISING_EDGE:
state = "off"
elif event.event_type == event.Type.FALLING_EDGE:
state = "on"
else:
continue
# Senden an Fhem per MQTT
topic = f"GPIO{triggered_pin}"
client.publish(topic, state, 0)
except KeyboardInterrupt:
print("\nProgramm sauber beendet.")
except PermissionError:
print("\nFehler: Bitte mit 'sudo' starten!")
#!/usr/bin/env python3
######################################################################
###### ######
###### Output.py ######
###### erstellt am 06.11.2026 ######
###### gpio´s werden mit gpiod aus Fhem per mqtt gesteuert ######
###### ######
###### getestet unter Trixi ######
###### funktioniert 06.11.2026 ######
###### ######
######################################################################
import logging
import gpiod
from gpiod.line import Direction, Value
import paho.mqtt.client as mqtt
# --- KONFIGURATION ---
MQTT_BROKER = "localhost"
MQTT_PORT = 1883
MQTT_TOPIC_SUBSCRIBE = "gpio/#"
# --- AUTHENTIFIZIERUNG ---
MQTT_USER = "DEIN_USERNAME" # Hier den MQTT-Benutzernamen eintragen
MQTT_PASSWORD = "DEIN_PASSWORD" # Hier das MQTT-Passwort eintragen
# Trage hier die GPIOs (BCM-Nummern) ein, die du steuern möchtest (z.B. 22, 23)
ALLOWED_GPIOS = [22, 10, 9, 11, 0, 6, 13, 16, 25, 24, 23, 15, 14]
# Nutze den vollen Pfad zum Chip.
# (Bei Raspberry Pi 4 meist "/dev/gpiochip0", bei Pi 5 meist "/dev/gpiochip4")
GPIO_CHIP_PATH = "/dev/gpiochip0"
# ---------------------
logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s")
# Globales Objekt für die angeforderten GPIO-Leitungen
gpio_request = None
def setup_gpios():
"""Initialisiert die GPIOs nach dem neuen gpiod v2.x Standard."""
global gpio_request
try:
# Konfiguration für jeden erlaubten Pin erstellen (als Ausgang definieren)
line_settings = {}
for pin in ALLOWED_GPIOS:
line_settings[pin] = gpiod.LineSettings(direction=Direction.OUTPUT)
# Alle Leitungen gleichzeitig im System anfordern
gpio_request = gpiod.request_lines(
GPIO_CHIP_PATH,
consumer="mqtt-gpiod-v2",
config=line_settings
)
logging.info(f"GPIOs {ALLOWED_GPIOS} erfolgreich mit gpiod v2 initialisiert.")
except Exception as e:
logging.error(f"Fehler bei gpiod v2 Initialisierung: {e}")
logging.error("TIPP: Prüfe, ob GPIO_CHIP_PATH korrekt ist (z.B. /dev/gpiochip4 statt /dev/gpiochip0)")
raise
# Callback-Signatur angepasst an paho-mqtt v2 (enthält 'properties')
def on_connect(client, userdata, flags, rc, properties=None):
# rc kann bei paho-mqtt v2 ein ReasonCode-Objekt sein, dessen Wert per .value abgefragt wird
rc_value = rc.value if hasattr(rc, "value") else rc
if rc_value == 0:
logging.info("Erfolgreich mit MQTT Broker verbunden.")
client.subscribe(MQTT_TOPIC_SUBSCRIBE)
logging.info(f"Topic abonniert: {MQTT_TOPIC_SUBSCRIBE}")
else:
logging.error(f"Verbindungsfehler zum Broker. Code: {rc_value}")
def on_message(client, userdata, msg):
global gpio_request
topic = msg.topic
parts = topic.split('/')
# Validierung: Erwartet wird exakt "gpio/<nummer>/<aktion>"
if len(parts) != 3 or parts[0] != "gpio":
return
pin_str = parts[1]
action = parts[2].lower()
try:
pin = int(pin_str)
except ValueError:
return
# Prüfen, ob der Pin erlaubt und initialisiert ist
if pin not in ALLOWED_GPIOS or gpio_request is None:
logging.warning(f"Pin {pin} ist nicht in ALLOWED_GPIOS konfiguriert.")
return
# Zustand bestimmen (ACTIVE = Strom an / INACTIVE = Strom aus)
if action == "on":
val = Value.ACTIVE
elif action == "off":
val = Value.INACTIVE
else:
logging.warning(f"Ungültige Aktion '{action}' erhalten. Erwartet: on/off")
return
# GPIO nach neuem v2-Standard schalten
try:
gpio_request.set_value(pin, val)
## logging.info(f"GPIO {pin} erfolgreich auf {action.upper()} geschaltet.")
except Exception as e:
logging.error(f"Schaltfehler an Pin {pin}: {e}")
def main():
setup_gpios()
# Initialisierung kompatibel mit alten und neuen paho-mqtt Versionen (v1 & v2)
try:
# Versuche v2 API (erfordert Angabe der Callback-Version)
client = mqtt.Client(callback_api_version=mqtt.CallbackAPIVersion.VERSION2)
except AttributeError:
# Fallback für ältere paho-mqtt Versionen v1.x
client = mqtt.Client()
client.on_connect = on_connect
client.on_message = on_message
# --- HIER WIRD DIE AUTHENTIFIZIERUNG GESETZT ---
if MQTT_USER and MQTT_PASSWORD:
client.username_pw_set(MQTT_USER, MQTT_PASSWORD)
try:
logging.info(f"Verbinde zu Broker {MQTT_BROKER} mit Benutzername '{MQTT_USER}'...")
client.connect(MQTT_BROKER, MQTT_PORT, 60)
client.loop_forever()
except KeyboardInterrupt:
logging.info("Skript manuell beendet.")
finally:
if gpio_request:
logging.info("Schließe GPIO Leitungen...")
gpio_request.release()
if __name__ == "__main__":
main()
/etc/systemd/system/Output.service
/etc/systemd/system/Taster.service
[Unit]
Description=Taster Eingänge für Fhem
After=network.target
[Service]
Type=simple
User=stephan
WorkingDirectory=/home/stephan
ExecStart=/usr/bin/python -u /home/stephan/Taster.py
Restart=on-failure
RestartSec=10s
[Install]
WantedBy=multi-user.target
[Unit]
Description=Some description
After=network.target
[Service]
Type=simple
User=stephan
WorkingDirectory=/home/stephan
ExecStart=/usr/bin/python -u /home/stephan/Output.py
Restart=on-failure
RestartSec=10sec
[Install]
WantedBy=multi-user.target
sudo systemctl enable Taster.service
sudo systemctl enable Output.service
sudo systemctl start Taster.service
sudo systemctl start Output.service
define MQTT2_GPIO MQTT2_DEVICE MQTT2_GPIO
attr MQTT2_GPIO readingList MQTT2_GPIO:GPIO4:.* GPIO4\
MQTT2_GPIO:GPIO17:.* GPIO17\
MQTT2_GPIO:GPIO27:.* GPIO27\
MQTT2_GPIO:GPIO5:.* GPIO5\
MQTT2_GPIO:GPIO19:.* GPIO19\
MQTT2_GPIO:GPIO26:.* GPIO26\
MQTT2_GPIO:GPIO21:.* GPIO21\
MQTT2_GPIO:GPIO20:.* GPIO20\
MQTT2_GPIO:GPIO12:.* GPIO12\
MQTT2_GPIO:GPIO1:.* GPIO1\
MQTT2_GPIO:GPIO7:.* GPIO7\
MQTT2_GPIO:GPIO8:.* GPIO8\
MQTT2_GPIO:GPIO18:.* GPIO18\
MQTT2_GPIO:\x7bname\x7d:.* { json2nameValue($EVENT) }\
MQTT2_GPIO:name:.* name\
MQTT2_GPIO:GPIO\x7bgpio\x7d:.* GPIO_gpio_\
MQTT2_GPIO:gpio:.* gpio\
MQTT2_GPIO:\x7bgpio\x7d:.* _gpio_
attr MQTT2_GPIO room MQTT2_DEVICE
# CID MQTT2_GPIO
# DEF MQTT2_GPIO
# FUUID 6a68c69a-f33f-134a-47f5-5bca089964e6a874
# IODev MQTT2_FHEM_Server
# LASTInputDev MQTT2_FHEM_Server
# MQTT2_FHEM_Server_CONN MQTT2_FHEM_Server_127.0.0.1_49103
# MQTT2_FHEM_Server_MSGCNT 234
# MQTT2_FHEM_Server_TIME 2026-11-07 12:48:01
# MSGCNT 234
# NAME MQTT2_GPIO
# NR 474
# STATE ???
# TYPE MQTT2_DEVICE
# eventCount 234
# READINGS:
# 2026-07-28 21:38:12 GPIO off
# 2026-11-07 12:00:15 GPIO1 off
# 2026-11-07 12:00:13 GPIO12 off
# 2026-11-07 12:48:01 GPIO17 off
# 2026-11-07 12:00:18 GPIO18 off
# 2026-11-07 12:00:10 GPIO19 off
# 2026-11-07 12:00:12 GPIO20 off
# 2026-11-07 12:00:11 GPIO21 off
# 2026-11-07 12:00:10 GPIO26 off
# 2026-11-07 12:11:53 GPIO27 off
# 2026-11-07 11:52:50 GPIO4 off
# 2026-11-07 12:00:08 GPIO5 off
# 2026-11-07 12:00:16 GPIO7 off
# 2026-11-07 12:00:16 GPIO8 off
# 2026-07-30 19:44:52 GPIO_gpio_ on
# 2026-07-28 21:40:53 GPIOaus off
# 2026-07-28 21:40:53 GPIOein on
# 2026-11-07 11:25:12 IODev MQTT2_FHEM_Server
# 2026-07-30 19:51:14 _gpio_ on
# 2026-07-28 21:52:24 _gpiozero.Button_object_on_pin_GPIO17__pull_up_True__is_active_False_ on
# 2026-07-30 19:48:28 gpio on
# 2026-07-29 17:52:33 json2nameValueErrorText error parsing (#1) 'zustand'
# 2026-07-29 17:52:33 json2nameValueInput {zustand}
# 2026-07-29 17:54:44 name zustand
#
setstate MQTT2_GPIO 2026-07-28 21:38:12 GPIO off
setstate MQTT2_GPIO 2026-11-07 12:00:15 GPIO1 off
setstate MQTT2_GPIO 2026-11-07 12:00:13 GPIO12 off
setstate MQTT2_GPIO 2026-11-07 12:48:01 GPIO17 off
setstate MQTT2_GPIO 2026-11-07 12:00:18 GPIO18 off
setstate MQTT2_GPIO 2026-11-07 12:00:10 GPIO19 off
setstate MQTT2_GPIO 2026-11-07 12:00:12 GPIO20 off
setstate MQTT2_GPIO 2026-11-07 12:00:11 GPIO21 off
setstate MQTT2_GPIO 2026-11-07 12:00:10 GPIO26 off
setstate MQTT2_GPIO 2026-11-07 12:11:53 GPIO27 off
setstate MQTT2_GPIO 2026-11-07 11:52:50 GPIO4 off
setstate MQTT2_GPIO 2026-11-07 12:00:08 GPIO5 off
setstate MQTT2_GPIO 2026-11-07 12:00:16 GPIO7 off
setstate MQTT2_GPIO 2026-11-07 12:00:16 GPIO8 off
setstate MQTT2_GPIO 2026-07-30 19:44:52 GPIO_gpio_ on
setstate MQTT2_GPIO 2026-07-28 21:40:53 GPIOaus off
setstate MQTT2_GPIO 2026-07-28 21:40:53 GPIOein on
setstate MQTT2_GPIO 2026-11-07 11:25:12 IODev MQTT2_FHEM_Server
setstate MQTT2_GPIO 2026-07-30 19:51:14 _gpio_ on
setstate MQTT2_GPIO 2026-07-28 21:52:24 _gpiozero.Button_object_on_pin_GPIO17__pull_up_True__is_active_False_ on
setstate MQTT2_GPIO 2026-07-30 19:48:28 gpio on
setstate MQTT2_GPIO 2026-07-29 17:52:33 json2nameValueErrorText error parsing (#1) 'zustand'
setstate MQTT2_GPIO 2026-07-29 17:52:33 json2nameValueInput {zustand}
setstate MQTT2_GPIO 2026-07-29 17:54:44 name zustand
defmod GPIO17 readingsProxy MQTT2_GPIO:GPIO17
attr GPIO17 alias Taster_Stube_links
attr GPIO17 group GPIO Eingänge
attr GPIO17 room Eingänge
attr GPIO17 sortby 01
attr GPIO17 valueFn {($VALUE eq "on")?"on":"off"}
defmod GPIO13 MQTT2_DEVICE GPIO13
attr GPIO13 IODev MQTT2_FHEM_Server
attr GPIO13 alias Eltako_Bad_rechts
attr GPIO13 group GPIO Ausgänge
attr GPIO13 readingList MQTT2_FHEM_Server:GPIO13:.* state
attr GPIO13 room Ausgänge
attr GPIO13 setList off:noArg gpio/13/off\
on:noArg gpio/13/on
attr GPIO13 sortby 07
attr GPIO13 verbose 2
defmod Interrupt readingsProxy MQTT2_GPIO:GPIO4
attr Interrupt group MCP23017
attr Interrupt room Bus
attr Interrupt userReadings test {fhem ("get MCP0,MCP2,MCP4,MCP6");;;;;;;; "egal"}
attr Interrupt valueFn {($VALUE eq "on")?"on":"off"}
define Livingroom.InfinityMirror MYSENSORS_DEVICE 110
attr Livingroom.InfinityMirror userattr lightSceneParamsToSave lightSceneRestoreOnlyIfChanged:1,0
attr Livingroom.InfinityMirror IODev MySensors.Gateway
attr Livingroom.InfinityMirror alias Wohnzimmer:Spiegel
attr Livingroom.InfinityMirror icon tradfri_gateway
attr Livingroom.InfinityMirror mapReading_delay 1 value2
attr Livingroom.InfinityMirror mapReading_id1 1 id
attr Livingroom.InfinityMirror mapReading_pattern 1 value1
attr Livingroom.InfinityMirror mapReading_percentage 0 percentage
attr Livingroom.InfinityMirror mapReading_power 0 power
attr Livingroom.InfinityMirror mapReading_status 0 status
attr Livingroom.InfinityMirror mapReading_temperature1 1 temperature
attr Livingroom.InfinityMirror mapReading_text 0 text
attr Livingroom.InfinityMirror mapReading_value31 1 value3
attr Livingroom.InfinityMirror mapReading_value41 1 value4
attr Livingroom.InfinityMirror mapReading_value51 1 value5
attr Livingroom.InfinityMirror mode repeater
attr Livingroom.InfinityMirror room EG->Wohnzimmer
attr Livingroom.InfinityMirror setCommands on:status:on off:status:off
attr Livingroom.InfinityMirror setReading_delay slider,0,1,255
attr Livingroom.InfinityMirror setReading_pattern slider,0,1,255
attr Livingroom.InfinityMirror setReading_percentage slider,0,1,100
attr Livingroom.InfinityMirror setReading_status on,off
attr Livingroom.InfinityMirror widgetOverride pattern:0,1,2,3,4,5,6,7,8,9
# DEF 110
# FUUID 69d2305b-f33f-7e6f-5549-f9c888e4de7523b3
# FVERSION 10_MYSENSORS_DEVICE.pm:0.305610/2025-11-27
# IODev MySensors.Gateway
# NAME Livingroom.InfinityMirror
# NR 592
# STATE off
# TYPE MYSENSORS_DEVICE
# ack 0
# eventCount 703
# radioId 110
# repeater 1
# READINGS:
# 2026-09-27 15:22:02 IODev MySensors.Gateway
# 2026-07-17 07:49:07 SKETCH_NAME Infinity Mirror
# 2026-07-17 07:49:07 SKETCH_VERSION 1.0
# 2026-11-07 12:21:51 delay 4
# 2026-09-11 21:34:09 parentId 101
# 2026-11-07 12:21:50 pattern 9
# 2026-09-11 21:34:09 percentage 100
# 2026-11-07 12:23:14 state off
# 2026-11-07 12:23:14 status off
# gets:
# readingMappings:
# 0:
# 17:
# name power
# 2:
# name status
# 3:
# name percentage
# 47:
# name text
# 1:
# 0:
# name temperature1
# 24:
# name pattern
# 25:
# name delay
# 26:
# name value31
# 27:
# name value41
# 28:
# name value51
# 42:
# name id1
# retainedMessagesForRadioId:
# setcommands:
# off:
# val off
# var status
# on:
# val on
# var status
# sets:
# clear noArg
# delay slider,0,1,255
# flash noArg
# fwType
# off
# on
# pattern slider,0,1,255
# percentage slider,0,1,100
# reboot noArg
# status on,off
# time noArg
#
setstate Livingroom.InfinityMirror off
setstate Livingroom.InfinityMirror 2026-09-27 15:22:02 IODev MySensors.Gateway
setstate Livingroom.InfinityMirror 2026-07-17 07:49:07 SKETCH_NAME Infinity Mirror
setstate Livingroom.InfinityMirror 2026-07-17 07:49:07 SKETCH_VERSION 1.0
setstate Livingroom.InfinityMirror 2026-11-07 12:21:51 delay 4
setstate Livingroom.InfinityMirror 2026-09-11 21:34:09 parentId 101
setstate Livingroom.InfinityMirror 2026-11-07 12:21:50 pattern 9
setstate Livingroom.InfinityMirror 2026-09-11 21:34:09 percentage 100
setstate Livingroom.InfinityMirror 2026-11-07 12:23:14 state off
setstate Livingroom.InfinityMirror 2026-11-07 12:23:14 status off
ZitatWas macht SF eigentlich, wenn der Lieferant keinen Wert liefert nachdem er zuvor für den betreffenden Tag (hier übermorgen) die erforderlichen Werte bzw. einen Summenwert geliefert hat. Bleibt dann der alte Wert erst mal bestehen, sodass zumindest eine Planungsgrundlage vorhanden ist?SF hat einen Zwischenspeicher, aus dem geschöpt wird solange es geht. D.h. API-Ausfälle sind nicht relevant solange es genug Daten für den zukünftigen (interessierenden) Zeitraum gibt.
get ... radiationApiData
Schleppdach => 2026-11-07 07:00:00 => pv_estimate50: 46
2026-11-07 08:00:00 => pv_estimate50: 187
2026-11-07 09:00:00 => pv_estimate50: 211
2026-11-07 10:00:00 => pv_estimate50: 676
2026-11-07 11:00:00 => pv_estimate50: 793
2026-11-07 12:00:00 => pv_estimate50: 242
2026-11-07 13:00:00 => pv_estimate50: 222
2026-11-07 14:00:00 => pv_estimate50: 212
2026-11-07 15:00:00 => pv_estimate50: 86
2026-11-07 16:00:00 => pv_estimate50: 6
2026-11-08 07:00:00 => pv_estimate50: 8
2026-11-08 08:00:00 => pv_estimate50: 57
2026-11-08 09:00:00 => pv_estimate50: 172
2026-11-08 10:00:00 => pv_estimate50: 274
2026-11-08 11:00:00 => pv_estimate50: 319
2026-11-08 12:00:00 => pv_estimate50: 294
2026-11-08 13:00:00 => pv_estimate50: 217
2026-11-08 14:00:00 => pv_estimate50: 120
2026-11-08 15:00:00 => pv_estimate50: 41
2026-11-08 16:00:00 => pv_estimate50: 4
2026-11-09 07:00:00 => pv_estimate50: 11
2026-11-09 08:00:00 => pv_estimate50: 99
2026-11-09 09:00:00 => pv_estimate50: 404
2026-11-09 10:00:00 => pv_estimate50: 701
2026-11-09 11:00:00 => pv_estimate50: 870
2026-11-09 12:00:00 => pv_estimate50: 956
2026-11-09 13:00:00 => pv_estimate50: 910
2026-11-09 14:00:00 => pv_estimate50: 687
2026-11-09 15:00:00 => pv_estimate50: 351
2026-11-09 16:00:00 => pv_estimate50: 16
2026-11-10 07:00:00 => pv_estimate50: 6
2026-11-10 08:00:00 => pv_estimate50: 49
2026-11-10 09:00:00 => pv_estimate50: 170
2026-11-10 10:00:00 => pv_estimate50: 284
2026-11-10 11:00:00 => pv_estimate50: 394
2026-11-10 12:00:00 => pv_estimate50: 222
Süddach => 2026-11-07 07:00:00 => pv_estimate50: 143
2026-11-07 08:00:00 => pv_estimate50: 520
2026-11-07 09:00:00 => pv_estimate50: 514
2026-11-07 10:00:00 => pv_estimate50: 1974
2026-11-07 11:00:00 => pv_estimate50: 2334
2026-11-07 12:00:00 => pv_estimate50: 591
2026-11-07 13:00:00 => pv_estimate50: 543
2026-11-07 14:00:00 => pv_estimate50: 536
2026-11-07 15:00:00 => pv_estimate50: 214
2026-11-07 16:00:00 => pv_estimate50: 15
2026-11-08 07:00:00 => pv_estimate50: 19
2026-11-08 08:00:00 => pv_estimate50: 136
2026-11-08 09:00:00 => pv_estimate50: 415
2026-11-08 10:00:00 => pv_estimate50: 672
2026-11-08 11:00:00 => pv_estimate50: 783
2026-11-08 12:00:00 => pv_estimate50: 720
2026-11-08 13:00:00 => pv_estimate50: 529
2026-11-08 14:00:00 => pv_estimate50: 286
2026-11-08 15:00:00 => pv_estimate50: 102
2026-11-08 16:00:00 => pv_estimate50: 11
2026-11-09 07:00:00 => pv_estimate50: 25
2026-11-09 08:00:00 => pv_estimate50: 250
2026-11-09 09:00:00 => pv_estimate50: 1178
2026-11-09 10:00:00 => pv_estimate50: 2106
2026-11-09 11:00:00 => pv_estimate50: 2631
2026-11-09 12:00:00 => pv_estimate50: 2926
2026-11-09 13:00:00 => pv_estimate50: 2821
2026-11-09 14:00:00 => pv_estimate50: 2168
2026-11-09 15:00:00 => pv_estimate50: 1160
2026-11-09 16:00:00 => pv_estimate50: 51
2026-11-10 07:00:00 => pv_estimate50: 14
2026-11-10 08:00:00 => pv_estimate50: 119
2026-11-10 09:00:00 => pv_estimate50: 411
2026-11-10 10:00:00 => pv_estimate50: 705
2026-11-10 11:00:00 => pv_estimate50: 1040
2026-11-10 12:00:00 => pv_estimate50: 601
get ... nextHours
NextHour59 => starttime: 2026-11-09 23:00:00, day: 09, weekday: Mo, holiday: 0, hourofday: 24, today: 0
pvapifcraw: 0, pvapifc: 0, pvaifc: -, pvfc: 0, pvfcfeedlim: 0, aihit: 0
conlegfc: 661, conaifc: 644, confc: 644, conbiascorr: -37, confcEx: 661, weatherid: 145, wcc: 95, rr1c: 0.00
temp: 3.20, windspeed: 0.71, windspeed_fast: 0.71, rad1h: -, sunaz: 349.10, sunalt: -55.30, DoN: 0
rrange: 0.00, crange: 95, DaysInRange: 2, correff: 1.00/-
soc01: 69.0, soc02: -, soc03: -, socprogwhsum: 22042
rcdchargebat01: 1, rcdchargebat02: -, rcdchargebat03: -
lcintimebat01: 1, lcintimebat02: -, lcintimebat03: -
strategybat01: smartPower, strategybat02: -, strategybat03: -
Zitat von: DS_Starter am 07 November 2026, 11:51:36Bei mir ganz normal (SolCast:In der Tat bekomme ich jetzt wieder einen Wert:special_dayAfterTomorrowPVforecast 22997 Wh
OpenMeteo bei mir auch ok.
Vermutlich liefert dein Strahlungslieferant gerade nicht so weit aus bzw. die Kommunikation zu der API ist gestört?
special_dayAfterTomorrowPVforecast 3784 WhUnschön ist natürlich, dass zeitweise gar keine Werte zur Verfügung gestellt werden, was ich verstehen kann, wenn vom Lieferant bislang noch nichts für den betreffenden Tag geliefert wurde. Was macht SF eigentlich, wenn der Lieferant keinen Wert liefert nachdem er zuvor für den betreffenden Tag (hier übermorgen) die erforderlichen Werte bzw. einen Summenwert geliefert hat. Bleibt dann der alte Wert erst mal bestehen, sodass zumindest eine Planungsgrundlage vorhanden ist?