NEWS
Test Adapter telegram-menu v.1.6.x
-
@liv-in-sky Wenn ich das jetzt richtig verstanden habe , ist die Frage ob die Kombination funktioniert. Du willst einen Daten punkt setzen, und den Rückgabewert erst bekommen wenn ein anderer Datenpunkt gesetzt wurde.
Ob die Kobi funktioniert, weiss ich nicht, ich denke aber nicht.
Wenn das ist das was du möchtest, leg ein Issue an, mit allen Infos
-
-
@liv-in-sky Aber als Rückgabe wert möchtest du den wert den du als erstes gesetzt hast, richtg?
-
@michael-roling nee - ich will den rückgabe wert der angegeben id - also des anderen dp's
-
@liv-in-sky mmmh, haben wir das denn nicht schon? Bzw wo wäre der Unterschied?
-
ich glaube nicht
- {'id':'ID','text':'Your Text'} damit kann ich nur einen festen wert setzen - also nichts eingeben - der wert ist im setting definiert
- {setDynamicValue:RequestText:Type:ConfirmText:} damit kann ich irgendeinen wert eingeben, aber nicht auf ein ergebnis in einem anderen dp warten
ich bräuchte eine kombi
-
@liv-in-sky Achso, noch mal zusammen gefasst. Du möchtest einen Datenpunkt setzen. Dann einen Rückgabewert von einem anderen Datenpunkt wenn dieser gesetzt wird.
-
@michael-roling genau
-
@liv-in-sky {'id':'ID','text':'Your Text'} dann würde ich dem einfach einen parameter hinzufügen das das state gelesen werden soll und das value dem text, wie bei allen anderen auch mit && als Platzhalter hinzugefügt wird
-
wie du es am besten findest -rein semantisch wäre es halt ein setdynamicvalue
-
@liv-in-sky Achso, jetzt ist es klar. Dann hast du natürlich recht. Ich überlege mir was
-
@liv-in-sky Ist fertig zum testen. {setDynamicValue:RequestText:Type:ConfirmText:ID:} bei ID einfach die gewünschte id eintragen. Auch hier wird nur der Text geschickt wenn der State bestätigt wurde.
Bitte noch nicht updaten. Ich sage Bescheid wenn es geht
-
wollte über github url installieren - code 0 war erfolgreich
jetzt kann ich das setting nicht mehr aufrufen - das iobroker symbol dreht ewig - der browser sagt, seite fertig geladen
ein fehler: weiß nicht, ob der dazu gehört - auch ein downgrade funktioniert jetzt nicht mehr
host.iobroker59 2024-06-23 17:20:59.116 warn adapter "telegram-menu" seems to be installed for a different version of Node.js. Trying to rebuild it... 3 attempt host.iobroker59 2024-06-23 17:20:59.116 error instance system.adapter.telegram-menu.0 terminated with code 1 (JS_CONTROLLER_STOPPED) host.iobroker59 2024-06-23 17:20:59.116 error Caught by controller[0]: Node.js v20.13.1 host.iobroker59 2024-06-23 17:20:59.116 error Caught by controller[0]: } host.iobroker59 2024-06-23 17:20:59.116 error Caught by controller[0]: ] host.iobroker59 2024-06-23 17:20:59.116 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.telegram-menu/build/src/main.js' host.iobroker59 2024-06-23 17:20:59.116 error Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.telegram-menu/build/src/lib/backend/onStateChange.js', host.iobroker59 2024-06-23 17:20:59.115 error Caught by controller[0]: requireStack: [ host.iobroker59 2024-06-23 17:20:59.115 error Caught by controller[0]: code: 'MODULE_NOT_FOUND', host.iobroker59 2024-06-23 17:20:59.115 error Caught by controller[0]: at Module._load (node:internal/modules/cjs/loader:1024:12) { host.iobroker59 2024-06-23 17:20:59.115 error Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1208:32) host.iobroker59 2024-06-23 17:20:59.115 error Caught by controller[0]: at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) host.iobroker59 2024-06-23 17:20:59.115 error Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1358:14) host.iobroker59 2024-06-23 17:20:59.115 error Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/iobroker.telegram-menu/build/src/lib/backend/onStateChange.js:7:32) host.iobroker59 2024-06-23 17:20:59.115 error Caught by controller[0]: at require (node:internal/modules/helpers:179:18) host.iobroker59 2024-06-23 17:20:59.115 error Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1233:19) host.iobroker59 2024-06-23 17:20:59.115 error Caught by controller[0]: at Module._load (node:internal/modules/cjs/loader:986:27) host.iobroker59 2024-06-23 17:20:59.115 error Caught by controller[0]: at Module._resolveFilename (/opt/iobroker/node_modules/module-alias/index.js:49:29) host.iobroker59 2024-06-23 17:20:59.115 error Caught by controller[0]: at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15) host.iobroker59 2024-06-23 17:20:59.115 error Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.telegram-menu/build/src/main.js host.iobroker59 2024-06-23 17:20:59.115 error Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.telegram-menu/build/src/lib/backend/onStateChange.js host.iobroker59 2024-06-23 17:20:59.115 error Caught by controller[0]: Require stack: host.iobroker59 2024-06-23 17:20:59.115 error Caught by controller[0]: Error: Cannot find module '@backend/main' host.iobroker59 2024-06-23 17:20:59.115 error Caught by controller[0]: ^ host.iobroker59 2024-06-23 17:20:59.115 error Caught by controller[0]: throw err; host.iobroker59 2024-06-23 17:20:59.114 error Caught by controller[0]: node:internal/modules/cjs/loader:1148
-
@liv-in-sky Ja ich habe nicht aufgepasst, kannst jetzt noch mal updaten
-
ok - die 1.7.1. läuft wieder - ich probier's nochmal
-
es wird installiert - der adapter ist jetzt grün - aber in telgram wird nicht reagiert und das setting geht auch nicht auf
telegram-menu.0 2024-06-23 17:30:27.847 debug Sent Value to {"xxxxx":6178} users! telegram-menu.0 2024-06-23 17:30:27.788 debug ParseModeType: "Markdown" telegram-menu.0 2024-06-23 17:30:27.788 debug ChatId : "xxxxxxx" telegram-menu.0 2024-06-23 17:30:27.788 debug Parse_mode : "false" telegram-menu.0 2024-06-23 17:30:27.788 debug UserListWithChatID : [{"name":"liv-in-sky","chatID":"xxxxxxx"}] telegram-menu.0 2024-06-23 17:30:27.787 debug Instance: "telegram.3" telegram-menu.0 2024-06-23 17:30:27.787 debug Send to: liv-in-sky => Startseite aktualisiert .... telegram-menu.0 2024-06-23 17:30:27.787 debug User List: [{"name":"liv-in-sky","chatID":"989074665"}] telegram-menu.0 2024-06-23 17:30:27.783 debug GoBackMenu {"liv-in-sky":{"list":[],"last":"an"}} telegram-menu.0 2024-06-23 17:30:27.783 debug Startseite: "an" telegram-menu.0 2024-06-23 17:30:27.783 debug MenuList: ["liv-in-sky"] telegram-menu.0 2024-06-23 17:30:27.783 debug Checkboxes: {"checkboxNoValueFound":false,"resKey":true,"oneTiKey":false,"sendMenuAfterRestart":true} telegram-menu.0 2024-06-23 17:30:27.783 debug Gen. Actions: {"an":{"nav":[["➡ Heizung","outSide","getStandort"],["Clear","CompAus","➡ Grüner"],["➡ Tests"]],"text":"Startseite aktualisiert ....","parse_mode":"false"},"➡ Heizung":{"nav":[["Room","Bad"],["Flur","Küche"],["ÜbersichtHeizung"],["BACK ↩"]],"text":"nur wenn Standort 4 {set:'id':'0_userdata.0.CONTROL-OWN.HeizungTelegram',true,ack}","parse_mode":"false"},"➡ Grüner":{"nav":[["MelPic","MelSet","➡ SonderTour",""],["SonderStart","SonderEnde","SonderPic"],["MelBild","PostGPS(RouteRecord)"],["BACK ↩","SetLoc","SetZeit"],["RepariereKM","SetKilometer",""]],"text":"SetLoc (in Tab eintragen) zuerst Text - Sonderfahrt zuerst Button Sondertour zuerst Name","parse_mode":"false"},"➡ Tests":{"nav":[["IN","OUT"],["GetTable","GetDevices","SetWord"],["DynMenu","AlexaShopping","PostIts","LÖSCHEN","BACK ↩"]],"text":"Choose an action","parse_mode":"false"},"BACK ↩":{"nav":[["menu:back"],[""]],"text":"Wähle eine Aktion","parse_mode":"false"},"outSide":{"nav":[["menu:number0-6-1- :aussen:"],[""]],"text":"Wähle eine Aktion aus","parse_mode":"false"},"➡ SonderTour":{"nav":[["Anfahrt","Abholung"],["EndeAbholung","BeendeFahrt"],["SonderPic2","BACK ↩"]],"text":"Anfahrt zuerst Name - und Anfahrt drücken","parse_mode":"false"},"LÖSCHEN":{"nav":[["menu:deleteAll:➡ Grüner"],[""]],"text":"Choose an action","parse_mode":"false"},"Lüfter5":{"switch":[{"id":"0_userdata.0.CONTROL-OWN.Luefter5","value":"!","toggle":true,"confirm":"true","returnText":"Lüfter ist jetzt: && ","ack":"true","parse_mode":"false"}]},"IN":{"switch":[{"id":"0_userdata.0.CONTROL-OWN.AAATEST.telegramInnen","value":"!","toggle":true,"confirm":"true","returnText":"","ack":"true","parse_mode":"false"}]},"OUT":{"switch":[{"id":"0_userdata.0.CONTROL-OWN.AAATEST.telegramAUSSEN","value":"!","toggle":true,"confirm":"true","returnText":"","ack":"true","parse_mode":"false"}]},"MelBild":{"switch":[{"id":"0_userdata.0.CONTROL-OWN.TRACCAR.sendTelegramMelikeGesamtBild","value":"-","toggle":true,"confirm":"true","returnText":"-","ack":"false","parse_mode":"false"}]},"Clear":{"switch":[{"id":"0_userdata.0.CONTROL-OWN.TelegramDelete3Chat","value":true,"toggle":false,"confirm":"true","returnText":"ALLES LÖSCHEN ... Wait ... {novalue}","ack":"true","parse_mode":"false"}]},"CompAus":{"switch":[{"id":"0_userdata.0.CONTROL-OWN.fx6300","value":false,"toggle":true,"confirm":"true","returnText":"Computer wird abgeschalten! Value: &&","ack":"false","parse_mode":"false"}]},"SonderStart":{"switch":[{"id":"0_userdata.0.CONTROL-OWN.TRACCAR.SONDERFAHRT.SonderfahrtBeginn","value":true,"toggle":false,"confirm":"true","returnText":"Name und Kilometer (mit Komma) {'id':'0_userdata.0.CONTROL-OWN.TRACCAR.SONDERFAHRT.BeginnKM','text':'Kilometer Start ist &&'}","ack":"false","parse_mode":"false"}]},"SonderEnde":{"switch":[{"id":"0_userdata.0.CONTROL-OWN.TRACCAR.SONDERFAHRT.SonderfahrtEnde","value":true,"toggle":false,"confirm":"true","returnText":"Name und Kilometer (mit Komma) {'id':'0_userdata.0.CONTROL-OWN.TRACCAR.SONDERFAHRT.EndeKM','text':'Kilometer Ende ist &&'}","ack":"false","parse_mode":"false"}]},"MelSet":{"switch":[{"id":"0_userdata.0.CONTROL-OWN.TRACCAR.MelikeSchreiben","value":"-","toggle":true,"confirm":"true","returnText":"Wert ist &&","ack":"false","parse_mode":"false"}]},"PostGPS(RouteRecord)":{"switch":[{"id":"0_userdata.0.CONTROL-OWN.TRACCAR.postGPSData","value":true,"toggle":false,"confirm":"true","returnText":"{'id':'0_userdata.0.CONTROL-OWN.TRACCAR.postGPSResult','text':'GPS Post ist:\\n&&'}","ack":"false","parse_mode":"false"}]},"aussen":{"switch":[{"id":"0_userdata.0.CONTROL-OWN.MOTION.Standort","value":"!","toggle":false,"confirm":"true","returnText":"Standort: && ","ack":"true","parse_mode":"false"}]},"Room":{"switch":[{"id":"0_userdata.0.CONTROL-OWN.HeizungZimmer30","value":true,"toggle":false,"confirm":"true","returnText":"Heizung Raum ist: &&","ack":"false","parse_mode":"false"}]},"Bad":{"switch":[{"id":"0_userdata.0.CONTROL-OWN.BAD.BADHeizung30","value":true,"toggle":false,"confirm":"true","returnText":"Heizung Bad ist: &&","ack":"false","parse_mode":"false"}]},"Flur":{"switch":[{"id":"0_userdata.0.CONTROL-OWN.Heizung30","value":true,"toggle":false,"confirm":"true","returnText":"Heizung Flur ist: &&","ack":"false","parse_mode":"false"}]},"Küche":{"switch":[{"id":"0_userdata.0.CONTROL-OWN.HeizungKueche30","value":true,"toggle":false,"confirm":"true","returnText":"Heizung Küche ist: &&","ack":"false","parse_mode":"false"}]},"ÜbersichtHeizung":{"switch":[{"id":"0_userdata.0.CONTROL-OWN.HeizungTelegram","value":true,"toggle":false,"confirm":"true","returnText":"-","ack":"false","parse_mode":"false"}]},"SetLoc":{"switch":[{"id":"0_userdata.0.CONTROL-OWN.TRACCAR.SetLoc","value":true,"toggle":false,"confirm":"true","returnText":"{'id':'0_userdata.0.CONTROL-OWN.TRACCAR.OldValue','text':'SetLoc ist:\\n&&'}","ack":"false","parse_mode":"false"}]},"SetZeit":{"switch":[{"id":"0_userdata.0.CONTROL-OWN.TRACCAR.DailyHoursSwitch","value":true,"toggle":false,"confirm":"false","returnText":"done &&","ack":"false","parse_mode":"false"}]},"SetWord":{"switch":[{"id":"0_userdata.0.CONTROL-OWN.AAATEST.TestString4","value":"&&","toggle":false,"confirm":"true","returnText":"{setDynamicValue:WaitForManualInput:Type:Input was : &&:}","ack":"true","parse_mode":"false"}]},"RepariereKM":{"switch":[{"id":"0_userdata.0.CONTROL-OWN.TRACCAR.Kilometer.KorrektiereKilometer","value":"&&","toggle":false,"confirm":"true","returnText":"{setDynamicValue:nur Abweichung eingeben:Number: &&:}","ack":"true","parse_mode":"false"}]},"SetKilometer":{"switch":[{"id":"0_userdata.0.CONTROL-OWN.TRACCAR.Kilometer.SetKMoverTelegram","value":"&&","toggle":false,"confirm":"true","returnText":"setz kM {setDynamicValue:GebeGesamtKmEin:number:'Kilometer ist &&':}","ack":"true","parse_mode":"false"}]},"MelPic":{"sendPic":[{"id":"-","fileName":"/opt/iobroker/iobrokerMelike.png","delay":"5000"}]},"SonderPic":{"sendPic":[{"id":"-","fileName":"/opt/iobroker/iobrokerSonder.png","delay":"5000"}]},"SonderPic2":{"sendPic":[{"id":"-","fileName":"/opt/iobroker/iobrokerSonderEinmalig.png","delay":"5000"}]},"getStandort":{"getData":[{"id":"0_userdata.0.CONTROL-OWN.MOTION.Standort","text":"Standort ist momentan: <b>&&</b>","newline":"true","parse_mode":"true"}]},"GetTable":{"getData":[{"id":"0_userdata.0.CONTROL-OWN.AAATEST.TestJSON","text":"{json;[label:\"ErsterWert\",value:\"ZweiterWert\"];MonatsÜbersicht;}","newline":"true","parse_mode":"false"}]},"GetDevices":{"getData":[{"id":"0_userdata.0.CONTROL-OWN.STROMZÄHLER.JSONStromDaten","text":"{json;[Datum:Datum,VerbrauchMonat:VerbrauchMonat];Monatlich;TextTable;}","newline":"true","parse_mode":"false"}]},"AlexaShopping":{"getData":[{"id":"alexa-shoppinglist.0.list_activ","text":"{json;[name:Einträge];ALEXALIST-Shopping;shoppinglist;}","newline":"true","parse_mode":"false"}]},"PostIts":{"getData":[{"id":"0_userdata.0.Alarm-MaterialDesign.PostItMessages","text":"{json;[text:Einträge];Postit's;}","newline":"true","parse_mode":"false"}]}} telegram-menu.0 2024-06-23 17:30:27.782 debug Array Buttons: [{"call":"an","text":"Startseite aktualisiert ....","parse_mode":"false","nav":[["➡ Heizung","outSide","getStandort"],["Clear","CompAus","➡ Grüner"],["➡ Tests"]]},{"call":"➡ Heizung","text":"nur wenn Standort 4 {set:'id':'0_userdata.0.CONTROL-OWN.HeizungTelegram',true,ack}","parse_mode":"false","nav":[["Room","Bad"],["Flur","Küche"],["ÜbersichtHeizung"],["BACK ↩"]]},{"call":"➡ Grüner","text":"SetLoc (in Tab eintragen) zuerst Text - Sonderfahrt zuerst Button Sondertour zuerst Name","parse_mode":"false","nav":[["MelPic","MelSet","➡ SonderTour",""],["SonderStart","SonderEnde","SonderPic"],["MelBild","PostGPS(RouteRecord)"],["BACK ↩","SetLoc","SetZeit"],["RepariereKM","SetKilometer",""]]},{"call":"➡ Tests","text":"Choose an action","parse_mode":"false","nav":[["IN","OUT"],["GetTable","GetDevices","SetWord"],["DynMenu","AlexaShopping","PostIts","LÖSCHEN","BACK ↩"]]},{"call":"BACK ↩","text":"Wähle eine Aktion","parse_mode":"false","nav":[["menu:back"],[""]]},{"call":"outSide","text":"Wähle eine Aktion aus","parse_mode":"false","nav":[["menu:number0-6-1- :aussen:"],[""]]},{"call":"➡ SonderTour","text":"Anfahrt zuerst Name - und Anfahrt drücken","parse_mode":"false","nav":[["Anfahrt","Abholung"],["EndeAbholung","BeendeFahrt"],["SonderPic2","BACK ↩"]]},{"call":"LÖSCHEN","text":"Choose an action","parse_mode":"false","nav":[["menu:deleteAll:➡ Grüner"],[""]]}] telegram-menu.0 2024-06-23 17:30:27.782 debug MenuName: "liv-in-sky" telegram-menu.0 2024-06-23 17:30:27.782 debug Subscribe all States of: [["0_userdata.0.CONTROL-OWN.TelegramDelete3Chat"]] telegram-menu.0 2024-06-23 17:30:27.782 debug Subscribe all States of: ["0_userdata.0.CONTROL-OWN.Luefter5","0_userdata.0.CONTROL-OWN.AAATEST.telegramInnen","0_userdata.0.CONTROL-OWN.AAATEST.telegramAUSSEN","0_userdata.0.CONTROL-OWN.TRACCAR.sendTelegramMelikeGesamtBild","0_userdata.0.CONTROL-OWN.TelegramDelete3Chat","0_userdata.0.CONTROL-OWN.fx6300","0_userdata.0.CONTROL-OWN.TRACCAR.SONDERFAHRT.SonderfahrtBeginn","0_userdata.0.CONTROL-OWN.TRACCAR.SONDERFAHRT.SonderfahrtEnde","0_userdata.0.CONTROL-OWN.TRACCAR.MelikeSchreiben","0_userdata.0.CONTROL-OWN.TRACCAR.postGPSData","0_userdata.0.CONTROL-OWN.MOTION.Standort","0_userdata.0.CONTROL-OWN.HeizungZimmer30","0_userdata.0.CONTROL-OWN.BAD.BADHeizung30","0_userdata.0.CONTROL-OWN.Heizung30","0_userdata.0.CONTROL-OWN.HeizungKueche30","0_userdata.0.CONTROL-OWN.HeizungTelegram","0_userdata.0.CONTROL-OWN.TRACCAR.SetLoc","0_userdata.0.CONTROL-OWN.TRACCAR.DailyHoursSwitch","0_userdata.0.CONTROL-OWN.AAATEST.TestString4","0_userdata.0.CONTROL-OWN.TRACCAR.Kilometer.KorrektiereKilometer","0_userdata.0.CONTROL-OWN.TRACCAR.Kilometer.SetKMoverTelegram"] telegram-menu.0 2024-06-23 17:30:27.782 debug SubscribeForeignStates: ["0_userdata.0.CONTROL-OWN.Luefter5","0_userdata.0.CONTROL-OWN.AAATEST.telegramInnen","0_userdata.0.CONTROL-OWN.AAATEST.telegramAUSSEN","0_userdata.0.CONTROL-OWN.TRACCAR.sendTelegramMelikeGesamtBild","0_userdata.0.CONTROL-OWN.TelegramDelete3Chat","0_userdata.0.CONTROL-OWN.fx6300","0_userdata.0.CONTROL-OWN.TRACCAR.SONDERFAHRT.SonderfahrtBeginn","0_userdata.0.CONTROL-OWN.TRACCAR.SONDERFAHRT.SonderfahrtEnde","0_userdata.0.CONTROL-OWN.TRACCAR.MelikeSchreiben","0_userdata.0.CONTROL-OWN.TRACCAR.postGPSData","0_userdata.0.CONTROL-OWN.MOTION.Standort","0_userdata.0.CONTROL-OWN.HeizungZimmer30","0_userdata.0.CONTROL-OWN.BAD.BADHeizung30","0_userdata.0.CONTROL-OWN.Heizung30","0_userdata.0.CONTROL-OWN.HeizungKueche30","0_userdata.0.CONTROL-OWN.HeizungTelegram","0_userdata.0.CONTROL-OWN.TRACCAR.SetLoc","0_userdata.0.CONTROL-OWN.TRACCAR.DailyHoursSwitch","0_userdata.0.CONTROL-OWN.AAATEST.TestString4","0_userdata.0.CONTROL-OWN.TRACCAR.Kilometer.KorrektiereKilometer","0_userdata.0.CONTROL-OWN.TRACCAR.Kilometer.SetKMoverTelegram"] telegram-menu.0 2024-06-23 17:30:27.780 debug Telegram Info Connection: true telegram-menu.0 2024-06-23 17:30:27.771 info Telegram was found telegram-menu.0 2024-06-23 17:30:27.763 info StartSides {"liv-in-sky":"an"} telegram-menu.0 2024-06-23 17:30:27.752 info starting. Version 1.7.3 (non-npm: MiRo1310/ioBroker.telegram-menu#9a12d94de9f0dfd9cb6800d909f66b54191999c6) in /opt/iobroker/node_modules/iobroker.telegram-menu, node: v20.13.1, js-controller: 5.0.19
-
@liv-in-sky Stimmt, was ist das denn jetzt. Moment ich mache mal was rückgängig
-
node 20 ?
-
@liv-in-sky Nein nein, warte kurz
-
@liv-in-sky geh wieder auf 1.7.3 . Ich muss mir das in Ruhe anschauen, ich weiss nicht was da jetzt auf einmal los ist