Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. JavaScript
  5. Problem mit schalten eines 2. Ereignisses mit Telegrammenü

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    16
    1
    1.3k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    780

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.0k

Problem mit schalten eines 2. Ereignisses mit Telegrammenü

Geplant Angeheftet Gesperrt Verschoben JavaScript
3 Beiträge 2 Kommentatoren 355 Aufrufe 2 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • N Offline
    N Offline
    Nobody28
    schrieb am zuletzt editiert von
    #1

    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 Antwort Letzte Antwort
    0
    • N Nobody28

      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 Offline
      E Offline
      elsmarto
      schrieb am zuletzt editiert von
      #2

      @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 Antwort Letzte Antwort
      0
      • E elsmarto

        @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 Offline
        N Offline
        Nobody28
        schrieb am zuletzt editiert von
        #3

        @elsmarto
        Leider bisher nicht. Tut mir leid

        1 Antwort Letzte Antwort
        0
        Antworten
        • In einem neuen Thema antworten
        Anmelden zum Antworten
        • Älteste zuerst
        • Neuste zuerst
        • Meiste Stimmen


        Support us

        ioBroker
        Community Adapters
        Donate

        791

        Online

        32.6k

        Benutzer

        82.0k

        Themen

        1.3m

        Beiträge
        Community
        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
        ioBroker Community 2014-2025
        logo
        • Anmelden

        • Du hast noch kein Konto? Registrieren

        • Anmelden oder registrieren, um zu suchen
        • Erster Beitrag
          Letzter Beitrag
        0
        • Home
        • Aktuell
        • Tags
        • Ungelesen 0
        • Kategorien
        • Unreplied
        • Beliebt
        • GitHub
        • Docu
        • Hilfe