NEWS
Problem mit einen vorher funktionierenden Script
-
@ticaki Oh, da ist wohl was beim Export schief gelaufen. Ich korrigiere das mal und hänge dann auch das Java Script mit ran. Mein Fehler, im Script, steht alles nur einmal drin.
-
@ticaki sagte: wenn ich das einmal importiere sieht es so aus:
Das wurde zweimal importiert. Der Trigger ist nur einmal vorhanden.
Ich kann auch keinen Fehler erkennen, außer dass die Telegramblöcke nicht das melden, was wohl erwartet wird. -
-
@ticaki Danke an euch beiden. Ich ändere mal mein Script ab und hänge mal das Java Script mit dran.
var delayOn, delayOff; on({id: [].concat(['0_userdata.0.Stromzaehler.Aktuell']), change: "ne"}, async function (obj) { var value = obj.state.val; var oldValue = obj.oldState.val; if ((obj.state ? obj.state.val : "") >= -500) { (function () {if (delayOn) {clearTimeout(delayOn); delayOn = null;}})(); } else if ((obj.oldState ? obj.oldState.val : "") >= -500) { delayOn = setTimeout(async function () { setState("zigbee.0.a4c138c5b266a383.state"/*On/off state of the switch*/, true); sendTo("telegram", "send", { text: 'Heizung Bad2 ist an' }); }, 150000); } if ((obj.state ? obj.state.val : "") <= -50) { (function () {if (delayOff) {clearTimeout(delayOff); delayOff = null;}})(); } else if ((obj.oldState ? obj.oldState.val : "") <= -50) { delayOff = setTimeout(async function () { setState("zigbee.0.a4c138c5b266a383.state"/*On/off state of the switch*/, false); sendTo("telegram", "send", { text: 'Heizung Bad2 ist aus' }); }, 120000); } }); //JTNDeG1sJTIweG1sbnMlM0QlMjJodHRwcyUzQSUyRiUyRmRldmVsb3BlcnMuZ29vZ2xlLmNvbSUyRmJsb2NrbHklMkZ4bWwlMjIlM0UlM0N2YXJpYWJsZXMlM0UlM0N2YXJpYWJsZSUyMHR5cGUlM0QlMjJ0aW1lb3V0JTIyJTIwaWQlM0QlMjJkZWxheU9uJTIyJTNFZGVsYXlPbiUzQyUyRnZhcmlhYmxlJTNFJTNDdmFyaWFibGUlMjB0eXBlJTNEJTIydGltZW91dCUyMiUyMGlkJTNEJTIyZGVsYXlPZmYlMjI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WRvdyUyMHR5cGUlM0QlMjJ0ZXh0JTIyJTIwaWQlM0QlMjIlNUVITzd1JTVCJTJDN20qWkgoY2dYbHFfciUyMiUzRSUzQ2ZpZWxkJTIwbmFtZSUzRCUyMlRFWFQlMjIlM0VIZWl6dW5nJTIwQmFkMiUyMGlzdCUyMGF1cyUzQyUyRmZpZWxkJTNFJTNDJTJGc2hhZG93JTNFJTNDJTJGdmFsdWUlM0UlM0MlMkZibG9jayUzRSUzQyUyRm5leHQlM0UlM0MlMkZibG9jayUzRSUzQyUyRnN0YXRlbWVudCUzRSUzQyUyRmJsb2NrJTNFJTNDJTJGc3RhdGVtZW50JTNFJTNDJTJGYmxvY2slM0UlM0MlMkZuZXh0JTNFJTNDJTJGYmxvY2slM0UlM0MlMkZzdGF0ZW1lbnQlM0UlM0MlMkZibG9jayUzRSUzQyUyRnhtbCUzRQ==
-
@kurt_88 sagte: hänge mal das Java Script mit dran.
Es ist kein Fehler erkennbar, muss also funktionieren.
-
@paul53 Danke an paul53 und @ticaki . Ein kurzes Update, heute Früh hatte ich noch Probleme, obwohl laut Zähler mehrmals nicht mehr eingespeist wurde (auch zeitlich), hat sich die Heizung nicht ausgeschaltet, oder dann viel zu spät. Ich habe dann mehrmals das Script aktiviert und wieder deaktiviert und ab heute Nachmittag, hat es dann wieder richtig funktioniert. Ich habe aber immer noch das ursprüngliche Problem mit der Erweiterung, der oder Logik. Wäre es möglich, mal einen kurzen Blick drauf zuwerfen? Die Heizung soll mit den Solarüberschuss betrieben werden, wenn aber der Wert 855 Watt Überschuss erreicht wird, dann wieder ausschalten, ebenso bei 5 Watt.
Dann soll nämlich eine weiteres Script starten und den Heizstab der Brauchwasser Wärmepumpe einschalten. Anbei mal das erweiterte Script.und das dazugehörige Java Script.
var delayOn, delayOff; on({id: [].concat(['0_userdata.0.Stromzaehler.Aktuell']), change: "ne"}, async function (obj) { var value = obj.state.val; var oldValue = obj.oldState.val; if ((obj.state ? obj.state.val : "") >= -500) { (function () {if (delayOn) {clearTimeout(delayOn); delayOn = null;}})(); } else if ((obj.oldState ? obj.oldState.val : "") >= -500) { delayOn = setTimeout(async function () { setState("zigbee.0.a4c138c5b266a383.state"/*On/off state of the switch*/, true); sendTo("telegram", "send", { text: 'Heizung Bad2 ist an' }); }, 150000); } if ((obj.state ? obj.state.val : "") <= -5 || (obj.state ? obj.state.val : "") >= -855) { (function () {if (delayOff) {clearTimeout(delayOff); delayOff = null;}})(); } else if ((obj.oldState ? obj.oldState.val : "") <= -5 || (obj.oldState ? obj.oldState.val : "") >= -855) { delayOff = setTimeout(async function () { setState("zigbee.0.a4c138c5b266a383.state"/*On/off state of the switch*/, false); sendTo("telegram", "send", { text: 'Heizung Bad2 ist aus' }); }, 30000); } }); //JTNDeG1sJTIweG1sbnMlM0QlMjJodHRwcyUzQSUyRiUyRmRldmVsb3BlcnMuZ29vZ2xlLmNvbSUyRmJsb2NrbHklMkZ4bWwlMjIlM0UlM0N2YXJpYWJsZXMlM0UlM0N2YXJpYWJsZSUyMHR5cGUlM0QlMjJ0aW1lb3V0JTIyJTIwaWQlM0QlMjJkZWxheU9uJTIyJTNFZGVsYXlPbiUzQyUyRnZhcmlhYmxlJTNFJTNDdmFyaWFibGUlMjB0eXBlJTNEJTIydGltZW91dCUyMiUyMGlkJTNEJTIyZGVsYXlPZmYlMjIlM0VkZWxheU9mZiUzQyUyRnZhcmlhYmxlJTNFJTNDJTJGdmFyaWFibGVzJTNFJTNDYmxvY2slMjB0eXBlJTNEJTIyb25fZXh0JTIyJTIwaWQlM0QlMjJWayElNjBSdTUoeiUzRCU3RGxrYTU2RyU3Q3NTJTIyJTIweCUzRCUyMi0xMDYyJTIyJTIweSUzRCUyMi04NjIlMjIlM0UlM0NtdXRhdGlvbiUyMHhtbG5zJTNEJTIyaHR0cCUzQSUyRiUyRnd3dy53My5vcmclMkYxOTk5JTJGeGh0bWwlMjIlMjBpdGVtcyUzRCUyMjElMjIlM0UlM0MlMkZtdXRhdGlvbiUzRSUzQ2Zp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RQ==
Danke schon im Voraus
-
@kurt_88 sagte: weiteres Script starten und den Heizstab der Brauchwasser Wärmepumpe einschalten.
Wie sieht dieses Skript aus?
-
@paul53 Anbei das Script zum ansteuern des Heizstabes der Brauchwasser Wärmepumpe.
Der Heizstab verbraucht so 1,6 KWh.Und der Java Teil.
var delayOn, delayOff; on({id: [].concat(['0_userdata.0.Stromzaehler.Aktuell']), change: "ne"}, async function (obj) { var value = obj.state.val; var oldValue = obj.oldState.val; if ((obj.state ? obj.state.val : "") >= -1300) { (function () {if (delayOn) {clearTimeout(delayOn); delayOn = null;}})(); } else if ((obj.oldState ? obj.oldState.val : "") >= -1300) { delayOn = setTimeout(async function () { setState("zigbee.0.a4c1380d59c4e599.state"/*On/off state of the switch*/, true); }, 150000); } if ((obj.state ? obj.state.val : "") <= 400) { (function () {if (delayOff) {clearTimeout(delayOff); delayOff = null;}})(); } else if ((obj.oldState ? obj.oldState.val : "") <= 400) { delayOff = setTimeout(async function () { setState("zigbee.0.a4c1380d59c4e599.state"/*On/off state of the switch*/, false); }, 90000); } }); sendTo("telegram", "send", { text: 'Heizstab bwbp ist an' }); sendTo("telegram", "send", { text: 'Heizstab bwwp ist aus' }); //JTNDeG1sJTIweG1sbnMlM0QlMjJodHRwcyUzQSUyRiUyRmRldmVsb3BlcnMuZ29vZ2xlLmNvbSUyRmJsb2NrbHklMkZ4bWwlMjIlM0UlM0N2YXJpYWJsZXMlM0UlM0N2YXJpYWJsZSUyMHR5cGUlM0QlMjJ0aW1lb3V0JTIyJTIwaWQlM0QlMjJkZWxheU9uJTIyJTNFZGVsYXlPbiUzQyUyRnZhcmlhYmxlJTNFJTNDdmFyaWFibGUlMjB0eXBlJTNEJTIydGltZW91dCUyMiUyMGlkJTNEJTIyZGVsYXlPZmYlMjIlM0VkZWxheU9mZiUzQyUyRnZhcmlhYmxlJTNFJTNDJTJGdmFyaWFibGVzJTNFJTNDYmxvY2slMjB0eXBlJTNEJTIyb25fZXh0JTIyJTIwaWQlM0Ql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zRCUyMkRJU0FCTEVfV0VCX1BBR0VfUFJFVklFVyUyMiUzRUZBTFNFJTNDJTJGZmllbGQlM0UlM0N2YWx1ZSUyMG5hbWUlM0QlMjJNRVNTQUdFJTIyJTNFJTNDc2hhZG93JTIwdHlwZSUzRCUyMnRleHQlMjIlMjBpZCUzRCUyMiU1RUhPN3UlNUIlMkM3bSpaSChjZ1hscV9yJTIyJTNFJTNDZmllbGQlMjBuYW1lJTNEJTIyVEVYVCUyMiUzRUhlaXpzdGFiJTIwYnd3cCUyMGlzdCUyMGF1cyUzQyUyRmZpZWxkJTNFJTNDJTJGc2hhZG93JTNFJTNDJTJGdmFsdWUlM0UlM0MlMkZibG9jayUzRSUzQyUyRnhtbCUzRQ==
-
@kurt_88
Der Javateil ist nur wichtig wenn du ein Problem hast und man findet es nicht im Skript (und für mich manchmal)hast du das - bei den 400 vergessen?
-
@ticaki Wie meinst Du das mit bei den 400 vergessen?
-
@kurt_88 du hast überall minus werte stehen ausser bei den 400
-
@ticaki Das hängt mit dem auslesen des Stromzählers zusammen, bei negativen Werten speise ich über die Solarpannels den Strom ein und bei positiven Werten beziehe ich den Strom vom Versorger. Ich möchte dann nur bei größer werdenden Bezug von 400 Watt, dass sich der Heizstab wieder ausschaltet.
-
@kurt_88 sagte: Script zum ansteuern des Heizstabes der Brauchwasser Wärmepumpe.
Mache es besser mit nur einem Trigger (ein Skript).
Vorschlag: Anstelle der verzögerten Abschaltung bei -855 W schalte den 1,6 kW Heizstab bei -1000 W ein und gleichzeitig die 400 W Heizung aus. -
@paul53 Danke, dass sieht erheblich übersichtlicher aus, eine Bitte, könntest Du mir das Script noch im xml format posten? Dann kann ich das einfacher bei mir übernehmen.
-
@kurt_88 sagte: Script noch im xml format posten?
-
@paul53 Danke, übersehe ich jetzt was? Bei dem Script wird aber nicht der Heizstab der Wärmepumpe zugeschaltet, oder? Da müsste dann der Block mit zigbee.0.a4c1380d59c4e599 noch rein?
-
@kurt_88 sagte: Bei dem Script wird aber nicht der Heizstab der Wärmepumpe zugeschaltet
Der Datenpunkt "Switch" muss durch den DP für den Heizstab ersetzt werden. Ich hatte ihn nicht zur Verfügung.
-
@paul53 Ok, ich habe mal wieder den Wald vor lauter Bäumen nicht gesehen, nochmals vielen Dank. Ich werde mal gleich testen, es scheint auch gerade die Sonne.
-
@kurt_88 will den thread nicht kapern, hatte aber immer Probleme wenn wert ein - Vorzeichen hat,
das Ding hat auch bei -500 geschalten obwohl ich als BEdingung hatte grösser /gleich 0 , als ich dann vorher den wert *-1 gerechnet habe und dann auf diesen gerechneten wert getrigert habe ,funktionierte alles (vorher ca 2,5 Jahren hat es damals funktioniert , nur dann irgend ein Update und seitdem nicht mehr) kann aber nicht genau sagen wann es war , waren 3Schlaganfälle dazwischen sorry -
@mikewolf Danke kein Problem, wie meinst Du das mit *-? Du stellst bei -500 einfach ein Stern davor, dann müsst es *-500 heißen?