HTTPMOD reread nach set

Begonnen von Muschelpuster, 17 September 2021, 23:11:11

Vorheriges Thema - Nächstes Thema

Muschelpuster

Moin zusammen,

ich setzte über das HTTPMOD Werte in meinem Ziel mittels GET, was ich entsprechend über die set-Attribute definiert habe. Nun möchte ich natürlich auch, das mein HTTPMOD die eingestellten Daten anzeigt. Dazu müsste ich das Ziel neu auslesen. Kann man das irgendwie einstellen, dass das nach jedem set passiert?

Niels
fhem @ ZBOX mit 1,6MHz Celeron, 4GB RAM & 120GB SSD mit Debian Bullseye # MiLight # Homematic via CCU3 # W&T WebIO # Rademacher DuoFern # ESPeasy # logdb@mysql # configdb@mysql # Shelly @ MQTT2 # go-eCharger mit PV-Überschussladung via DOIF

StefanStrobel

Hallo,

dafür habe ich vor einer Weile ein neues Attribut eingebaut:

Zitat
(get|set)[0-9]*FollowGet
allows to chain a get command after another set or get command.
If for example you want to set a new required temerature with a set 'TargetTemp' command and this set command changes the temperature with a series of HTTP requests in your heating system, then you can automaticaly do a get 'TargetTemp' to read out the new value from your heating.
The value of this attribute must match a defined get command name.

Gruss
    Stefan

Muschelpuster

fhem @ ZBOX mit 1,6MHz Celeron, 4GB RAM & 120GB SSD mit Debian Bullseye # MiLight # Homematic via CCU3 # W&T WebIO # Rademacher DuoFern # ESPeasy # logdb@mysql # configdb@mysql # Shelly @ MQTT2 # go-eCharger mit PV-Überschussladung via DOIF