Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Visualisierung
    4. VIS View Wechsel Befehl - Formatierung

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    VIS View Wechsel Befehl - Formatierung

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

      Hallo,

      beim Kommando zum ViewechselsetState('vis.0.control.command', {val: {instance: "FFFFFFFF", command: 'changeView', data: 'Home'}, ack: false});bekomme ich seit ein paar Wochen diesen bekannten Fehler:```
      [33mwarn[39m: javascript.0 Wrong type of vis.0.control.command: "object". Please fix, while deprecated and will not work in next versions.[/code]
      So geht's auch nicht ohne Fehler:`~~[code]~~setState('vis.0.control.command', {instance: 'FFFFFFFF', command: 'changeView', data: 'Home'});
      // oder
      setState('vis.0.control.command', {'instance': 'FFFFFFFF', 'command': 'changeView', 'data': 'Home'});
      // oder

      [/code]`
      Wie muss ich das Kommando korrigieren?


      :!: Auch hier kann ich mir nach einigem Probieren wieder selbst die Antwort geben:
      ~~[code]~~ setState('vis.0.control.instance', 'FFFFFFFF'); setState('vis.0.control.data', 'Home'); setState('vis.0.control.command', 'changeView');[/code]
      Gruß

      Pix

      1 Reply Last reply Reply Quote 0
      • D
        Davipet last edited by

        Hallo Pix,

        ich grabe den Thread mal aus…

        Ich habe Probleme damit.

        Bei mit hat das Objekt "vis.0" kein "control"

        Geschweige denn "control.instance" etc.

        Ich habe nur vis.0.command und "main" sowie "total" im Unterordner "Datapoints".

        Muss ich noch etwas nachinstallieren?

        Im Log steht auszugsweise folgendes:

        warn	State "vis.0.control.command" not found
        
        warn	State "vis.0.control.data" not found
        
        warn	State "vis.0.control.instance" not found
        
        

        Danke für die Hilfe!

        David

        1 Reply Last reply Reply Quote 0
        • V
          vondefenn last edited by

          Bei mir geht das so:

          setState("vis.0.control.command", '{"instance": "FFFFFFFF", "data": "Security", "command": "changeView"}');
          
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Support us

          ioBroker
          Community Adapters
          Donate

          780
          Online

          31.7k
          Users

          79.7k
          Topics

          1.3m
          Posts

          3
          3
          1718
          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