Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter telegram-menu v.1.6.x

    NEWS

    • [erledigt] 15. 05. Wartungsarbeiten am ioBroker Forum

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Test Adapter telegram-menu v.1.6.x

    This topic has been deleted. Only users with topic management privileges can see it.
    • liv-in-sky
      liv-in-sky @Michael Roling last edited by

      @michael-roling

      wäre es möglich, als antwort bei einem setstate auch einen datenpunkt anzugeben

      hintergrund:

      ich möchte einen text über einen menupunkt setzen. dazu wird ein script ausgeführt (welches auf den menupunkt reagiert), welches daraus ein json erstellt und dies wegschreibt - als antwort (bestätigung) würde ich den inhalt eines (ganz anderen) datenpunktes benötigen

      hoffe, es ist verständlich

      Michael Roling 1 Reply Last reply Reply Quote 0
      • Michael Roling
        Michael Roling Developer @liv-in-sky last edited by

        @liv-in-sky ich vestehe schon was du meinst, ist sicherlich irgendwie möglich

        liv-in-sky 1 Reply Last reply Reply Quote 0
        • liv-in-sky
          liv-in-sky @Michael Roling last edited by

          @michael-roling könnte mir vorstellen, dass es zu einem zeitproblem kommen könnte - evtl antwortet dein adapter schneller, als das script die antwort in den datenpunkt schreibt

          Michael Roling 3 Replies Last reply Reply Quote 0
          • Michael Roling
            Michael Roling Developer @Guest last edited by

            @alinaclg dein Problem habe ich behoben, müsstest dann den adapter dann einmal von github installieren

            ? 1 Reply Last reply Reply Quote 0
            • Michael Roling
              Michael Roling Developer @liv-in-sky last edited by

              @liv-in-sky ja das ist klar, da müsste man einen neuen trigger registrieren auf den dann reagiert wird bei Änderung

              1 Reply Last reply Reply Quote 0
              • Michael Roling
                Michael Roling Developer @liv-in-sky last edited by

                @liv-in-sky ich schaue man gerade ob ich da was bauen kann

                1 Reply Last reply Reply Quote 1
                • ?
                  A Former User @Michael Roling last edited by

                  @michael-roling danke dir - ich update nachher gleich 🙂

                  1 Reply Last reply Reply Quote 0
                  • Michael Roling
                    Michael Roling Developer @liv-in-sky last edited by Michael Roling

                    @liv-in-sky du kannst es mal von github laden, und testen, erster Versuch hier hat funktioniert

                    setstate ganz normal erstellen und anstatt eines Rückgabetextes das hier einfügen und anpassen {"id":"0_userdata.0.Wetterstation.Aussentemperatur","text":""}

                    liv-in-sky 2 Replies Last reply Reply Quote 0
                    • liv-in-sky
                      liv-in-sky @Michael Roling last edited by

                      @michael-roling

                      habe jetzt ein anderes problem - vielleicht habe ich was falsch beim installieren gemacht - z.b kann ich kein telegram instanz mehr auswählen und damit setzen in den einstellungen

                      host.iobroker59
                      2023-09-17 18:52:40.585	error	instance system.adapter.telegram-menu.1 terminated with code 6 (UNCAUGHT_EXCEPTION)
                      host.iobroker59
                      2023-09-17 18:52:40.238	error	instance system.adapter.telegram-menu.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
                      
                      telegram-menu.1
                      2023-09-17 18:52:39.938	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason
                      
                      telegram-menu.1
                      2023-09-17 18:52:39.937	info	terminating
                      
                      telegram-menu.1
                      2023-09-17 18:52:39.930	error	Cannot read properties of null (reading 'length')
                      
                      telegram-menu.1
                      2023-09-17 18:52:39.930	error	TypeError: Cannot read properties of null (reading 'length') at TelegramMenu.onReady (/opt/iobroker/node_modules/iobroker.telegram-menu/main.js:48:24) at TelegramMenu.emit (node:events:514:28) at TelegramMenu._callReadyHandler (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:9069:18) at /opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:9048:26
                      
                      telegram-menu.1
                      2023-09-17 18:52:39.929	error	unhandled promise rejection: Cannot read properties of null (reading 'length')
                      
                      telegram-menu.1
                      2023-09-17 18:52:39.929	error	Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
                      
                      telegram-menu.1
                      2023-09-17 18:52:39.898	info	starting. Version 0.6.8 (non-npm: MiRo1310/ioBroker.telegram-menu) in /opt/iobroker/node_modules/iobroker.telegram-menu, node: v18.17.1, js-controller: 5.0.12
                      
                      telegram-menu.0
                      2023-09-17 18:52:39.478	error	Cannot read properties of null (reading 'length')
                      
                      telegram-menu.0
                      2023-09-17 18:52:39.478	error	TypeError: Cannot read properties of null (reading 'length') at TelegramMenu.onReady (/opt/iobroker/node_modules/iobroker.telegram-menu/main.js:48:24) at TelegramMenu.emit (node:events:514:28) at TelegramMenu._callReadyHandler (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:9069:18) at /opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:9048:26
                      
                      telegram-menu.0
                      2023-09-17 18:52:39.476	error	unhandled promise rejection: Cannot read properties of null (reading 'length')
                      
                      telegram-menu.0
                      2023-09-17 18:52:39.474	error	Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
                      host.iobroker59
                      2023-09-17 18:52:08.746	error	instance system.adapter.telegram-menu.1 terminated with code 6 (UNCAUGHT_EXCEPTION)
                      host.iobroker59
                      2023-09-17 18:52:08.232	error	instance system.adapter.telegram-menu.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
                      
                      telegram-menu.1
                      2023-09-17 18:52:08.078	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason
                      
                      telegram-menu.1
                      2023-09-17 18:52:08.078	info	terminating
                      

                      Michael Roling 1 Reply Last reply Reply Quote 0
                      • Michael Roling
                        Michael Roling Developer @liv-in-sky last edited by

                        @liv-in-sky da habe ich gerade keine idee zu

                        liv-in-sky 2 Replies Last reply Reply Quote 0
                        • liv-in-sky
                          liv-in-sky @Michael Roling last edited by

                          @michael-roling

                          ich vergleiche gerade die setting via json file - da stimmt was nicht mehr

                          diese instanz macht keinen fehler und sieht so aus: (siehe telegram instanz) - startet aber funktioniert nicht

                          {
                           "_id": "system.adapter.telegram-menu.0",
                           "common": {
                             "name": "telegram-menu",
                             "version": "0.6.8",
                             "authors": [
                               "MiRo1310 <michael.roling@gmx.de>"
                             ],
                             "keywords": [
                               "telegram",
                               "menu"
                             ],
                             "license": "MIT",
                             "platform": "Javascript/Node.js",
                             "main": "main.js",
                             "icon": "telegram-menu.png",
                             "enabled": true,
                             "messagebox": true,
                             "extIcon": "https://raw.githubusercontent.com/MiRo1310/ioBroker.telegram-menu/main/admin/telegram-menu.png",
                             "readme": "https://github.com/MiRo1310/ioBroker.telegram-menu/blob/main/README.md",
                             "loglevel": "info",
                             "mode": "daemon",
                             "type": "messaging",
                             "compact": true,
                             "connectionType": "local",
                             "dataSource": "poll",
                             "adminUI": {
                               "config": "materialize"
                             },
                             "dependencies": [
                               {
                                 "js-controller": ">=3.3.22"
                               }
                             ],
                             "globalDependencies": [
                               {
                                 "admin": ">=5.0.0",
                                 "telegram": ">=1.15.0"
                               }
                             ],
                             "installedFrom": "MiRo1310/ioBroker.telegram-menu",
                             "installedVersion": "0.6.8",
                             "host": "iobroker59"
                           },
                           "native": {
                             "checkbox": {
                               "checkboxNoValueFound": true,
                               "resKey": true,
                               "oneTiKey": false
                             },
                             "textNoEntry": "",
                             "tokenGrafana": "",
                             "directory": "",
                             "usersInGroup": {},
                             "userListWithChatID": [
                               {
                                 "name": "liv-in-sky",
                                 "chatID": "989074665"
                               }
                             ],
                             "userActiveCheckbox": {},
                             "instance": null,
                             "data": {
                               "nav": {},
                               "action": {}
                             },
                             "users": [],
                             "startsides": {}
                           }
                          }
                          

                          die zweite instanz bleibt rot und bringt die fehler wie vorher - das json:

                          {
                           "_id": "system.adapter.telegram-menu.1",
                           "common": {
                             "name": "telegram-menu",
                             "version": "0.6.8",
                             "authors": [
                               "MiRo1310 <michael.roling@gmx.de>"
                             ],
                             "keywords": [
                               "telegram",
                               "menu"
                             ],
                             "license": "MIT",
                             "platform": "Javascript/Node.js",
                             "main": "main.js",
                             "icon": "telegram-menu.png",
                             "enabled": false,
                             "messagebox": true,
                             "extIcon": "https://raw.githubusercontent.com/MiRo1310/ioBroker.telegram-menu/main/admin/telegram-menu.png",
                             "readme": "https://github.com/MiRo1310/ioBroker.telegram-menu/blob/main/README.md",
                             "loglevel": "info",
                             "mode": "daemon",
                             "type": "messaging",
                             "compact": true,
                             "connectionType": "local",
                             "dataSource": "poll",
                             "adminUI": {
                               "config": "materialize"
                             },
                             "dependencies": [
                               {
                                 "js-controller": ">=3.3.22"
                               }
                             ],
                             "globalDependencies": [
                               {
                                 "admin": ">=5.0.0",
                                 "telegram": ">=1.15.0"
                               }
                             ],
                             "installedFrom": "MiRo1310/ioBroker.telegram-menu",
                             "installedVersion": "0.6.8",
                             "host": "iobroker59"
                           },
                           "native": {
                             "checkbox": {
                               "checkboxNoValueFound": false,
                               "resKey": true,
                               "oneTiKey": false
                             },
                             "textNoEntry": "",
                             "tokenGrafana": "",
                             "directory": "",
                             "usersInGroup": {
                               "liv-in-sky": [
                                 "liv-in-sky"
                               ]
                             },
                             "userListWithChatID": [
                               {
                                 "name": "liv-in-sky",
                                 "chatID": "989074665"
                               }
                             ],
                             "userActiveCheckbox": {
                               "liv-in-sky": true
                             },
                             "instance": null,
                             "data": {
                               "nav": {
                                 "liv-in-sky": [
                                   {
                                     "call": "Startseite",
                                     "value": "Lüfter5,outSide && getStandort,Melike",
                                     "text": "MyMenu "
                                   },
                                   {
                                     "call": "outSide",
                                     "value": "menu:number0-6-1- :aussen:",
                                     "text": "Wähle eine Aktion"
                                   }
                                 ]
                               },
                               "action": {
                                 "liv-in-sky": {
                                   "get": [
                                     {
                                       "trigger": [
                                         "getStandort"
                                       ],
                                       "IDs": [
                                         "0_userdata.0.CONTROL-OWN.MOTION.Standort"
                                       ],
                                       "text": [
                                         "Standort ist momentan: &amp;&amp;"
                                       ],
                                       "newline_checkbox": [
                                         "true"
                                       ]
                                     }
                                   ],
                                   "set": [
                                     {
                                       "trigger": [
                                         "Lüfter5"
                                       ],
                                       "IDs": [
                                         "0_userdata.0.CONTROL-OWN.Luefter5"
                                       ],
                                       "values": [
                                         "!"
                                       ],
                                       "returnText": [
                                         "ist jetzt &amp;&amp; ack:true"
                                       ],
                                       "confirm": [
                                         "true"
                                       ],
                                       "switch_checkbox": [
                                         "true"
                                       ]
                                     },
                                     {
                                       "trigger": [
                                         "aussen"
                                       ],
                                       "IDs": [
                                         "0_userdata.0.CONTROL-OWN.MOTION.Standort"
                                       ],
                                       "values": [
                                         "!"
                                       ],
                                       "returnText": [
                                         "wert ist jetzt &amp;&amp; ack:true"
                                       ],
                                       "confirm": [
                                         "true"
                                       ],
                                       "switch_checkbox": [
                                         "false"
                                       ]
                                     },
                                     {
                                       "trigger": [
                                         "Melike"
                                       ],
                                       "IDs": [
                                         "0_userdata.0.CONTROL-OWN.TRACCAR.MelikeSchreiben"
                                       ],
                                       "values": [
                                         "!"
                                       ],
                                       "returnText": [
                                         "-"
                                       ],
                                       "confirm": [
                                         "true"
                                       ],
                                       "switch_checkbox": [
                                         "true"
                                       ]
                                     }
                                   ],
                                   "pic": []
                                 }
                               }
                             },
                             "users": [
                               "liv-in-sky"
                             ],
                             "startsides": {
                               "liv-in-sky": "Startseite"
                             }
                           }
                          }```
                          [/s]
                          1 Reply Last reply Reply Quote 0
                          • liv-in-sky
                            liv-in-sky @Michael Roling last edited by

                            @michael-roling

                            auch wenn ich ein instanz lösche und ohne json lade und definiere, kann ich keine telegram instnz wählen - da kommt keine auswahl

                            ich habe über github und dann telegram-menu ausgewählt und installiert

                            Michael Roling 1 Reply Last reply Reply Quote 0
                            • Michael Roling
                              Michael Roling Developer @liv-in-sky last edited by

                              @liv-in-sky ich habe gerade mein produktiv System von Github installiert. Keine Probleme.

                              Was ist denn wenn du wieder die stable Version installierst?

                              liv-in-sky 1 Reply Last reply Reply Quote 0
                              • liv-in-sky
                                liv-in-sky @Michael Roling last edited by

                                @michael-roling

                                total ausfall

                                • cache browser gelöscht
                                • verschiedene browser getestet
                                • server neugestartet
                                • version 0.67. stable installiert

                                keine ahnung was da jetzt los ist

                                Michael Roling 1 Reply Last reply Reply Quote 0
                                • Michael Roling
                                  Michael Roling Developer @liv-in-sky last edited by

                                  @liv-in-sky Telegram ist aber noch installiert und aktiv ?

                                  liv-in-sky 4 Replies Last reply Reply Quote 0
                                  • liv-in-sky
                                    liv-in-sky @Michael Roling last edited by liv-in-sky

                                    @michael-roling ja - 4 instanzen

                                    die eine instanz ,die grün blieb, sagte im log telegram gefunden

                                    kann den irgendwo ein setting im filesystem liegen, was bei der deinstallation nicht gelöscht wird ?

                                    1 Reply Last reply Reply Quote 0
                                    • liv-in-sky
                                      liv-in-sky @Michael Roling last edited by

                                      @michael-roling

                                      ich hoffe mal, dass der neue js-controller kein thema ist

                                      arteck 1 Reply Last reply Reply Quote 0
                                      • arteck
                                        arteck Developer Most Active @liv-in-sky last edited by

                                        @liv-in-sky nein den hab ich bei mir auch laufen

                                        liv-in-sky 1 Reply Last reply Reply Quote 0
                                        • liv-in-sky
                                          liv-in-sky @arteck last edited by liv-in-sky

                                          @arteck

                                          ich weiß langsam nicht mehr, was ich noch ausprobieren soll - weder mit neuer, noch der stable version, kann ich das setting der telegram instanz einstellen

                                          wenn ich ein setting importiere, welches mal lief, wird eine grüne instanz angezeigt aber im setting steht auch keine telegram-instanz - im log wird angezeigt: telegram gefunden - öffne ich das instanz setting wieder, ist es wieder leer - wie nie konfiguriert
                                          dann: wenn ich json wieder importiere , wird das setting nicht überschrieben sondern doppelt angezeigt - öffne ich das setting dann nochmal, ist es wieder leer


                                          Image 086.png

                                          admin habe ich auch downgegraded

                                          ich habe mal eine neue sonoff instanz installiert und mit dem json import und export getestet - da funktioniert alles

                                          bei einer neuinstallation kommen keine fehler

                                          $ iobroker add telegram-menu --host iobroker59
                                          
                                          NPM version: 9.6.7
                                          
                                          Installing iobroker.telegram-menu@0.6.8... (System call)
                                          
                                          added 2 packages in 5s325 packages are looking for funding run `npm fund` for details
                                          
                                          host.iobroker59 install adapter telegram-menu
                                          
                                          upload [21] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/css/color.css css/color.css text/css
                                          
                                          upload [20] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/css/scrolling.css css/scrolling.css text/css
                                          
                                          upload [19] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/css/style.css css/style.css text/css
                                          
                                          upload [18] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/i18n/de/translations.json i18n/de/translations.json application/json
                                          
                                          upload [17] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/i18n/en/translations.json i18n/en/translations.json application/json
                                          
                                          upload [16] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/i18n/es/translations.json i18n/es/translations.json application/json
                                          
                                          upload [15] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/i18n/fr/translations.json i18n/fr/translations.json application/json
                                          
                                          upload [14] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/i18n/it/translations.json i18n/it/translations.json application/json
                                          
                                          upload [13] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/i18n/nl/translations.json i18n/nl/translations.json application/json
                                          
                                          upload [12] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/i18n/pl/translations.json i18n/pl/translations.json application/json
                                          
                                          upload [11] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/i18n/pt/translations.json i18n/pt/translations.json application/json
                                          
                                          upload [10] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/i18n/ru/translations.json i18n/ru/translations.json application/json
                                          
                                          upload [9] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/i18n/uk/translations.json i18n/uk/translations.json application/json
                                          
                                          upload [8] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/i18n/zh-cn/translations.json i18n/zh-cn/translations.json application/json
                                          
                                          upload [7] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/img/info-big.png img/info-big.png image/png
                                          
                                          upload [6] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/index_m.html index_m.html text/html
                                          
                                          upload [5] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/js/component.js js/component.js application/javascript
                                          
                                          upload [4] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/js/emit.js js/emit.js application/javascript
                                          
                                          upload [3] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/js/global.js js/global.js application/javascript
                                          
                                          upload [2] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/js/main.js js/main.js application/javascript
                                          
                                          upload [1] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/telegram-menu.png telegram-menu.png image/png
                                          
                                          upload [0] telegram-menu.admin /opt/iobroker/node_modules/iobroker.telegram-menu/admin/words.js words.js application/javascript
                                          
                                          host.iobroker59 object system.adapter.telegram-menu created/updated
                                          
                                          host.iobroker59 create instance telegram-menu
                                          
                                          host.iobroker59 object system.adapter.telegram-menu.0.alive created
                                          
                                          host.iobroker59 object system.adapter.telegram-menu.0.connected created
                                          
                                          host.iobroker59 object system.adapter.telegram-menu.0.compactMode created
                                          
                                          host.iobroker59 object system.adapter.telegram-menu.0.cpu created
                                          
                                          host.iobroker59 object system.adapter.telegram-menu.0.cputime created
                                          
                                          host.iobroker59 object system.adapter.telegram-menu.0.memHeapTotal created
                                          
                                          host.iobroker59 object system.adapter.telegram-menu.0.uptime created
                                          
                                          host.iobroker59 object system.adapter.telegram-menu.0.inputCount created
                                          
                                          host.iobroker59 Set default value of telegram-menu.0.info.connection: false
                                          
                                          host.iobroker59 object system.adapter.telegram-menu.0 created
                                          
                                          Process exited with code 0
                                          

                                          1 Reply Last reply Reply Quote 0
                                          • liv-in-sky
                                            liv-in-sky @Michael Roling last edited by

                                            @michael-roling
                                            @arteck

                                            noch ein hinweis - ich habe evtl einen fehler gemacht - kann dies eine ursache sein - ich habe beim letzten ersten update nicht über github sondern über benutzer definiert und der github adapter url installiert - kann das was verschossen haben

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            672
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            58
                                            1727
                                            535972
                                            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