NEWS
Problem mit schalten eines 2. Ereignisses mit Telegrammenü
-
Hallo Zusammen,
ich habe mich mithilfe dieser Anleitung mal daran gemacht ein Telegrammenü zu bauen:
https://www.smarthome-tricks.de/software-iobroker/iobroker-telegram-menus-fuer-den-einfachen-zugriff-von-unterwegs/soweit so gut!
Ich starte mit dem Script:
sendTo('telegram.0', { text: 'Raum oder Funktion wählen', reply_markup: { keyboard: [ ['Bademodus', ''], ['Alarmanlage' ,''] ], resize_keyboard: true, one_time_keyboard: false } });
Das klappt wunderbar. Verzweige ich in Bademodus:
sendTo('telegram.0', { text: 'Bademodus AN oder AUS', reply_markup: { keyboard: [ ['Übersicht', ''], ['Bademodus an', 'Bademodus aus'] ], resize_keyboard: true, one_time_keyboard: false } });
Klappt alles wunderbar.
Aber verzweige ich in Alarmanlage geht es leider nicht. Die Scripte sind ja quasi gleich:
sendTo('telegram.0', { text: 'Alarmanlage AN oder AUS', reply_markup: { keyboard: [ ['Übersicht', ''], ['Alarmanlage an', 'Alarmanlage aus'] ], resize_keyboard: true, one_time_keyboard: false } });
Was ich aus dem Log sehen kann, ist dass er beim Aufruf von Alarmanlage an oder aus, immer auf das Menue wechseln will...
Hier das Log:
text2command.0 2021-01-23 16:36:37.724 info (28154) Response: undefined text2command.0 2021-01-23 16:36:37.587 info (28154) Control ID javascript.0.scriptEnabled.common.Telegram-Menu.Start with : true text2command.0 2021-01-23 16:36:37.586 info (28154) processText: "Übersicht" text2command.0 2021-01-23 16:36:33.159 info (28154) Response: undefined text2command.0 2021-01-23 16:36:33.123 info (28154) Control ID javascript.0.scriptEnabled.common.Telegram-Menu.Alarmanlage with : true text2command.0 2021-01-23 16:36:33.122 info (28154) processText: "Alarmanlage aus" text2command.0 2021-01-23 16:36:31.702 info (28154) Response: undefined text2command.0 2021-01-23 16:36:31.660 info (28154) Control ID javascript.0.scriptEnabled.common.Telegram-Menu.Alarmanlage with : true text2command.0 2021-01-23 16:36:31.659 info (28154) processText: "Alarmanlage an" text2command.0 2021-01-23 16:36:29.555 info (28154) Response: undefined text2command.0 2021-01-23 16:36:29.523 info (28154) Control ID javascript.0.scriptEnabled.common.Telegram-Menu.Alarmanlage with : true text2command.0 2021-01-23 16:36:29.522 info (28154) processText: "Alarmanlage" text2command.0 2021-01-23 16:36:27.888 info (28154) Response: undefined text2command.0 2021-01-23 16:36:27.854 info (28154) Control ID javascript.0.scriptEnabled.common.Telegram-Menu.Start with : true text2command.0 2021-01-23 16:36:27.853 info (28154) processText: "Übersicht" text2command.0 2021-01-23 16:36:26.330 info (28154) Response: undefined text2command.0 2021-01-23 16:36:26.293 info (28154) Control ID 0_userdata.0.Bademodus.Bademodus_aktiv with : false text2command.0 2021-01-23 16:36:26.292 info (28154) processText: "Bademodus aus" text2command.0 2021-01-23 16:36:24.661 info (28154) Response: undefined text2command.0 2021-01-23 16:36:24.588 info (28154) Control ID 0_userdata.0.Bademodus.Bademodus_aktiv with : true text2command.0 2021-01-23 16:36:24.587 info (28154) processText: "Bademodus an" text2command.0 2021-01-23 16:36:23.218 info (28154) Response: undefined text2command.0 2021-01-23 16:36:23.178 info (28154) Control ID javascript.0.scriptEnabled.common.Telegram-Menu.Bademodus with : true text2command.0 2021-01-23 16:36:23.177 info (28154) processText: "Bademodus" text2command.0 2021-01-23 16:36:16.153 info (28154) Response: undefined text2command.0 2021-01-23 16:36:16.127 info (28154) Control ID javascript.0.scriptEnabled.common.Telegram-Menu.Start with : true text2command.0 2021-01-23 16:36:16.125 info (28154) processText: "Übersicht"
Hier die Aufrufe im test2command:
hat jemand eine Idee?
Danke schon mal
-
@nobody28 Ich habe das gleiche Problem momentan. Ich nutze das ganze Setup schon 3 Jahre lang und es funktionierte bisher alles super. Jetzt wollte ich ein paar neue Menüpunkte ins Telegram-Menü einbauen und bekomme den gleichen Fehler wie du.
Hast du eine Lösung gefunden?
-
@elsmarto
Leider bisher nicht. Tut mir leid