FHEM Forum

FHEM => Sonstiges => Thema gestartet von: Muschelpuster am 17 September 2021, 23:11:11

Titel: HTTPMOD reread nach set
Beitrag von: Muschelpuster am 17 September 2021, 23:11:11
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
Titel: Antw:HTTPMOD reread nach set
Beitrag von: StefanStrobel am 20 September 2021, 19:53:11
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
Titel: Antw:HTTPMOD reread nach set
Beitrag von: Muschelpuster am 20 September 2021, 22:37:03
Perfekt!

Danke
Niels