Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Problem mit schalten eines 2. Ereignisses mit Telegrammenü

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Problem mit schalten eines 2. Ereignisses mit Telegrammenü

    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      Nobody28 last edited by

      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:
      4759cadc-951f-4cfc-8d75-9c54df442fcf-image.png
      9f84b8ed-fa9e-4bf8-9b20-36dd605de1e1-image.png
      636762cb-3b77-4128-a5c5-c890bbb761d3-image.png

      hat jemand eine Idee?

      Danke schon mal 🙂

      E 1 Reply Last reply Reply Quote 0
      • E
        elsmarto @Nobody28 last edited by

        @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?

        N 1 Reply Last reply Reply Quote 0
        • N
          Nobody28 @elsmarto last edited by

          @elsmarto
          Leider bisher nicht. Tut mir leid

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Support us

          ioBroker
          Community Adapters
          Donate

          380
          Online

          31.8k
          Users

          80.0k
          Topics

          1.3m
          Posts

          2
          3
          228
          Loading More Posts
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes
          Reply
          • Reply as topic
          Log in to reply
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
          The ioBroker Community 2014-2023
          logo