NEWS
Wert von Homematic Gerät bei Funktion abrufen
-
Habe ein Problem,
möchte bei einer Berechnung "edit function node" einen Wert einer Homematic Componente miot einbeziehen.
Habe es versuch wie bei einem Java Skrift mit "var zv = getState("javascript.0.Strom.Zählerstand.Vorjahr"/javascript.0.Strom.Zählerstand.Vorjahr/).val;" doch das geht nicht.
Wie ist der Befehlt oder geht das gar nicht??
[{"id":"e46e912d.1b917","type":"inject","name":"","topic":" ","payload":"","payloadType":"date","repeat":"10","crontab":"","once":false,"x":187,"y":484,"z":"fc6c7385.03939","wires":[["dd040bba.22fbf8","937366d3.6c8c98"]]},{"id":"6cdb284d.9324d8","type":"debug","name":"","active":true,"console":"false","complete":"false","x":570,"y":460,"z":"fc6c7385.03939","wires":[]},{"id":"937366d3.6c8c98","type":"function","name":"Tage + 1","func":"msg = {};\nvar Tage = require(\"hm-rega.0.10499\"/*Tage_Strom*/).val;\nvar Tageneu = Tage + 1; \nmsg.payload = Tageneu;\nreturn msg;","outputs":1,"noerr":0,"x":382,"y":491,"z":"fc6c7385.03939","wires":[["6cdb284d.9324d8"]]},{"id":"dd040bba.22fbf8","type":"debug","name":"","active":true,"console":"false","complete":"false","x":378,"y":417,"z":"fc6c7385.03939","wires":[]}]