Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • 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

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Einsteigerfragen
  4. NSPanel/Lovelace und Sonoff TRV

NEWS

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

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.3k

NSPanel/Lovelace und Sonoff TRV

Scheduled Pinned Locked Moved Einsteigerfragen
34 Posts 3 Posters 3.2k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D DarkSoul

    @tt-tom Ja läuft.
    Ich habe bei mir noch die Zeile mit dem Unreach raus genommen. Irgendwie habe ich da immer ein rotes Sysmbol gehabt.
    Denke da ist irgenwo noch ein Dreher der Zustände drin.

    T Offline
    T Offline
    TT-Tom
    wrote on last edited by TT-Tom
    #21

    @darksoul
    Ja stimmt der Wert muss negiert werden. Du kannst im alias in der read Konvertierung !val eintragen. Dann wird aus true false

    Gruß Tom
    https://github.com/tt-tom17
    Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

    NSPanel Script Wiki
    https://github.com/joBr99/nspanel-lovelace-ui/wiki

    NSPanel Adapter Wiki
    https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

    D 1 Reply Last reply
    0
    • T TT-Tom

      @darksoul
      Ja stimmt der Wert muss negiert werden. Du kannst im alias in der read Konvertierung !val eintragen. Dann wird aus true false

      D Offline
      D Offline
      DarkSoul
      wrote on last edited by
      #22

      @tt-tom Ähm, jaaa, nur kann ich den Alias dann nicht Speichern. Das Feld ist ausgegraut. Es geht nur Abbrechen und damit wird die Änderung dann nicht übernommen ???

      T 1 Reply Last reply
      0
      • D DarkSoul

        @tt-tom Ähm, jaaa, nur kann ich den Alias dann nicht Speichern. Das Feld ist ausgegraut. Es geht nur Abbrechen und damit wird die Änderung dann nicht übernommen ???

        T Offline
        T Offline
        TT-Tom
        wrote on last edited by
        #23

        @darksoul zeige mal ein Screenshot

        Gruß Tom
        https://github.com/tt-tom17
        Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

        NSPanel Script Wiki
        https://github.com/joBr99/nspanel-lovelace-ui/wiki

        NSPanel Adapter Wiki
        https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

        D 1 Reply Last reply
        0
        • T TT-Tom

          @darksoul zeige mal ein Screenshot

          D Offline
          D Offline
          DarkSoul
          wrote on last edited by DarkSoul
          #24

          @tt-tom
          Mit !val im fx
          Nummer1.png
          Nach dem "OK"
          Nummer2.png
          Kein Speichern verfügbar ...

          Ich habe gerade gesehen, das der Punkt avaible zeimal drin ist, aber selbst wenn ich einen raus lösche geht es nicht.

          T ArmilarA 2 Replies Last reply
          0
          • D DarkSoul

            @tt-tom
            Mit !val im fx
            Nummer1.png
            Nach dem "OK"
            Nummer2.png
            Kein Speichern verfügbar ...

            Ich habe gerade gesehen, das der Punkt avaible zeimal drin ist, aber selbst wenn ich einen raus lösche geht es nicht.

            T Offline
            T Offline
            TT-Tom
            wrote on last edited by
            #25

            @darksoul

            Ich bin persönlich nicht so begeistert von diesem Adapter. Du kannst es im Alias direkt ändern bzw. poste mal deine aktuelle Version vom Script. Dann passe ich es dort an, dann wird der Alias richtig gesetzt.

            Gruß Tom
            https://github.com/tt-tom17
            Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

            NSPanel Script Wiki
            https://github.com/joBr99/nspanel-lovelace-ui/wiki

            NSPanel Adapter Wiki
            https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

            1 Reply Last reply
            0
            • D DarkSoul

              @tt-tom
              Mit !val im fx
              Nummer1.png
              Nach dem "OK"
              Nummer2.png
              Kein Speichern verfügbar ...

              Ich habe gerade gesehen, das der Punkt avaible zeimal drin ist, aber selbst wenn ich einen raus lösche geht es nicht.

              ArmilarA Offline
              ArmilarA Offline
              Armilar
              Most Active Forum Testing
              wrote on last edited by
              #26

              @darksoul

              Ich bin ehrlich gesagt etwas verwirrt...

              Das Skript von @TT-Tom erzeugt andere Alias-States:

              2af4683a-bb73-4b4d-ba98-717884ba4c49-image.png

              Die sind auch korrekt im Case-Sensitiv (Alle Buchstaben groß) erzeugt worden.

              In deinem Bild sehe ich lauter abweichende Bezeichner:

              3c06dc7e-362b-49a9-8daa-95d9ba9d4b8e-image.png

              und statt eines erwarteten Thermostaten sehe ich:

              e83e6210-9e8d-41ac-b4ea-adfd3d3fdd6f-image.png

              Installationsanleitung, Tipps, Alias-Definitionen, FAQ für das Sonoff NSPanel mit lovelace UI unter ioBroker
              https://github.com/joBr99/nspanel-lovelace-ui/wiki

              Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

              T 1 Reply Last reply
              0
              • ArmilarA Armilar

                @darksoul

                Ich bin ehrlich gesagt etwas verwirrt...

                Das Skript von @TT-Tom erzeugt andere Alias-States:

                2af4683a-bb73-4b4d-ba98-717884ba4c49-image.png

                Die sind auch korrekt im Case-Sensitiv (Alle Buchstaben groß) erzeugt worden.

                In deinem Bild sehe ich lauter abweichende Bezeichner:

                3c06dc7e-362b-49a9-8daa-95d9ba9d4b8e-image.png

                und statt eines erwarteten Thermostaten sehe ich:

                e83e6210-9e8d-41ac-b4ea-adfd3d3fdd6f-image.png

                T Offline
                T Offline
                TT-Tom
                wrote on last edited by
                #27

                @armilar oh ja, so genau habe ich da nicht hingeschaut. Da läuft anscheinend noch mehr schief.

                Gruß Tom
                https://github.com/tt-tom17
                Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                NSPanel Script Wiki
                https://github.com/joBr99/nspanel-lovelace-ui/wiki

                NSPanel Adapter Wiki
                https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                ArmilarA 1 Reply Last reply
                0
                • T TT-Tom

                  @armilar oh ja, so genau habe ich da nicht hingeschaut. Da läuft anscheinend noch mehr schief.

                  ArmilarA Offline
                  ArmilarA Offline
                  Armilar
                  Most Active Forum Testing
                  wrote on last edited by Armilar
                  #28

                  @tt-tom

                  eben. Ich musste etwas schlucken, als ich selbstgebaute Typen wie available gesehen habe und weitere die hinten kleingeschrieben sind. Das NSPanelTs.ts kann nur handelsübliche Alias-States zum jeweiligen Alias-Channel auswerten (ist ja keine KI :blush:)

                  Installationsanleitung, Tipps, Alias-Definitionen, FAQ für das Sonoff NSPanel mit lovelace UI unter ioBroker
                  https://github.com/joBr99/nspanel-lovelace-ui/wiki

                  Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                  T 1 Reply Last reply
                  1
                  • ArmilarA Armilar

                    @tt-tom

                    eben. Ich musste etwas schlucken, als ich selbstgebaute Typen wie available gesehen habe und weitere die hinten kleingeschrieben sind. Das NSPanelTs.ts kann nur handelsübliche Alias-States zum jeweiligen Alias-Channel auswerten (ist ja keine KI :blush:)

                    T Offline
                    T Offline
                    TT-Tom
                    wrote on last edited by
                    #29

                    @armilar hier sieht der Alias aber okay aus.

                    Gruß Tom
                    https://github.com/tt-tom17
                    Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                    NSPanel Script Wiki
                    https://github.com/joBr99/nspanel-lovelace-ui/wiki

                    NSPanel Adapter Wiki
                    https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                    ArmilarA 1 Reply Last reply
                    1
                    • T TT-Tom

                      @armilar hier sieht der Alias aber okay aus.

                      ArmilarA Offline
                      ArmilarA Offline
                      Armilar
                      Most Active Forum Testing
                      wrote on last edited by
                      #30

                      @tt-tom

                      @armilar hier sieht der Alias aber okay aus.

                      ja, da "war" es noch okay.

                      Installationsanleitung, Tipps, Alias-Definitionen, FAQ für das Sonoff NSPanel mit lovelace UI unter ioBroker
                      https://github.com/joBr99/nspanel-lovelace-ui/wiki

                      Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                      T 1 Reply Last reply
                      0
                      • ArmilarA Armilar

                        @tt-tom

                        @armilar hier sieht der Alias aber okay aus.

                        ja, da "war" es noch okay.

                        T Offline
                        T Offline
                        TT-Tom
                        wrote on last edited by
                        #31

                        @armilar ich werde das Script mal anpassen, und dann schauen wir mal was kommt.

                        Gruß Tom
                        https://github.com/tt-tom17
                        Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                        NSPanel Script Wiki
                        https://github.com/joBr99/nspanel-lovelace-ui/wiki

                        NSPanel Adapter Wiki
                        https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                        D 1 Reply Last reply
                        0
                        • T TT-Tom

                          @armilar ich werde das Script mal anpassen, und dann schauen wir mal was kommt.

                          D Offline
                          D Offline
                          DarkSoul
                          wrote on last edited by DarkSoul
                          #32

                          @tt-tom Also mein aktuelles Skript sieht aus:

                          
                          const devicePath = 'zigbee.1.0ceff6fffedc84ef'; // Pfad zu den Thermostat Datenpunkten
                          const aliasPath = 'alias.0.Heizungen.HeizungBad'; // Pfad zu den Thermostat Alias
                          const userPath = '0_userdata.0.Heizungen.HeizungBad'; // Pfad für die Benutzerdatenpunkte
                           
                          async function createUserdata() {
                              extendObject(userPath, { type: 'folder', common: { name: 'Thermostat' }, native: {} });
                              await createStateAsync(userPath + '.lowbat', false, { type: 'boolean', write: true });
                              await createStateAsync(userPath + '.Auto', false, { type: 'boolean', write: true });
                              await createStateAsync(userPath + '.Manual', false, { type: 'boolean', write: true });
                              await createStateAsync(userPath + '.power', false, { type: 'boolean', write: true });
                          }
                          createUserdata();
                           
                          async function createAliasThermostat() {
                              extendObjectAsync(aliasPath, { type: 'channel', common: { name: 'Thermostat', role: 'thermostat' }, native: {} });
                              await createAliasAsync(aliasPath + '.UNREACH', devicePath + '.available', true, <iobJS.StateCommon>{ type: 'boolean', role: 'switch', name: 'available', write: false });
                              await createAliasAsync(aliasPath + '.LOWBAT', userPath + '.lowbat', true, <iobJS.StateCommon>{ type: 'boolean', role: 'indicator.maintenance', name: 'Battery', write: false });
                              /*await createAliasAsync(aliasPath + '.ACTUAL', devicePath + '.local_temperature', true, <iobJS.StateCommon>{ type: 'number', role: 'value.themperature', name: 'Temperature', write: false });*/
                              /*await createAliasAsync(aliasPath + '.SET', devicePath + '.occupied_heating_setpoint', true, <iobJS.StateCommon>{ type: 'number', role: 'level.themperature', name: 'Setpoint', write: true });*/
                              await createAliasAsync(aliasPath + '.AUTOMATIC', userPath + '.Auto', true, <iobJS.StateCommon>{ type: 'boolean', role: 'switch.mode.enable', name: 'Auto', write: true });
                              await createAliasAsync(aliasPath + '.MANUAL', userPath + '.Manual', true, <iobJS.StateCommon>{ type: 'boolean', role: 'switch.mode.enable', name: 'Manual', write: true });
                              await createAliasAsync(aliasPath + '.POWER', userPath + '.power', true, <iobJS.StateCommon>{ type: 'boolean', role: 'switch.power', name: 'Power', write: true });
                              await createAliasAsync(aliasPath + '.MODE', devicePath + '.mode', true, <iobJS.StateCommon>{ type: 'string', role: 'state', name: 'Modus' });
                          }
                           
                          createAliasThermostat();
                           
                          // überwacht Batterielevel
                          // kleiner als 25% wird angezeigt
                          on({ id: [devicePath + '.battery'], change: 'ne' }, function (obj) {
                              if (obj.state.val < 25) {
                                  setStateAsync(userPath + '.lowbat', true);
                              } else {
                                  setStateAsync(userPath + '.lowbat', false);
                              }
                          });
                           
                          // überwacht den Modus vom Thermostat
                          // setzt die Benutzerdatenpunkte entsprechend
                          on({ id: [devicePath + '.mode'], change: 'ne' }, function (obj) {
                              switch (obj.state.val) {
                                  case 'auto':
                                      setStateAsync(userPath + '.Auto', true);
                                      setStateAsync(userPath + '.Manual', false);
                                      setStateAsync(userPath + '.power', true);
                                      break;
                           
                                  case 'heat':
                                      setStateAsync(userPath + '.Auto', false);
                                      setStateAsync(userPath + '.Manual', true);
                                      setStateAsync(userPath + '.power', true);
                                      break;
                           
                                  default:
                                      setStateAsync(userPath + '.Auto', false);
                                      setStateAsync(userPath + '.Manual', false);
                                      setStateAsync(userPath + '.power', false);
                                      break;
                              }
                          });
                           
                          // überwacht den Modus der Benutzerdatenpunkte
                          // setzt den Thermostat Modus entsprechend
                          on({ id: [userPath + '.Auto'], change: 'ne' }, function (obj) {
                              if (obj.state.val) {
                                  setStateAsync(devicePath + '.mode', 'auto');
                              }
                          });
                           
                          on({ id: [userPath + '.Manual'], change: 'ne' }, function (obj) {
                              if (obj.state.val) {
                                  setStateAsync(devicePath + '.mode', 'heat');
                              }
                          });
                           
                          on({ id: [userPath + '.power'], change: 'ne' }, function (obj) {
                              if (obj.state.val) {
                                  setStateAsync(devicePath + '.mode', 'auto');
                              } else {
                                  setStateAsync(devicePath + '.mode', 'off');
                              }
                          });
                          
                          

                          Die ersten drei Zeilen an die Gegebenheiten angepasst.
                          Und unter "async function" die beiden Zeilen abgeschaltet, da die in dem Alias nicht passten. Da habe ich die originalen DP aus dem ZigBee/Sonoff eingetragen.
                          HeizungBad.png
                          Der Rest des Skript sieht aus wie in der Vorlage.
                          Und bis auf das Symbol für die Verbindung "unreach" läuft es auch bestens.
                          Warum der Geräte Adapter einen Schieberegler als Gerät anzeigt und nicht Thermostat weiß ich auch nicht.

                          T 1 Reply Last reply
                          0
                          • D DarkSoul

                            @tt-tom Also mein aktuelles Skript sieht aus:

                            
                            const devicePath = 'zigbee.1.0ceff6fffedc84ef'; // Pfad zu den Thermostat Datenpunkten
                            const aliasPath = 'alias.0.Heizungen.HeizungBad'; // Pfad zu den Thermostat Alias
                            const userPath = '0_userdata.0.Heizungen.HeizungBad'; // Pfad für die Benutzerdatenpunkte
                             
                            async function createUserdata() {
                                extendObject(userPath, { type: 'folder', common: { name: 'Thermostat' }, native: {} });
                                await createStateAsync(userPath + '.lowbat', false, { type: 'boolean', write: true });
                                await createStateAsync(userPath + '.Auto', false, { type: 'boolean', write: true });
                                await createStateAsync(userPath + '.Manual', false, { type: 'boolean', write: true });
                                await createStateAsync(userPath + '.power', false, { type: 'boolean', write: true });
                            }
                            createUserdata();
                             
                            async function createAliasThermostat() {
                                extendObjectAsync(aliasPath, { type: 'channel', common: { name: 'Thermostat', role: 'thermostat' }, native: {} });
                                await createAliasAsync(aliasPath + '.UNREACH', devicePath + '.available', true, <iobJS.StateCommon>{ type: 'boolean', role: 'switch', name: 'available', write: false });
                                await createAliasAsync(aliasPath + '.LOWBAT', userPath + '.lowbat', true, <iobJS.StateCommon>{ type: 'boolean', role: 'indicator.maintenance', name: 'Battery', write: false });
                                /*await createAliasAsync(aliasPath + '.ACTUAL', devicePath + '.local_temperature', true, <iobJS.StateCommon>{ type: 'number', role: 'value.themperature', name: 'Temperature', write: false });*/
                                /*await createAliasAsync(aliasPath + '.SET', devicePath + '.occupied_heating_setpoint', true, <iobJS.StateCommon>{ type: 'number', role: 'level.themperature', name: 'Setpoint', write: true });*/
                                await createAliasAsync(aliasPath + '.AUTOMATIC', userPath + '.Auto', true, <iobJS.StateCommon>{ type: 'boolean', role: 'switch.mode.enable', name: 'Auto', write: true });
                                await createAliasAsync(aliasPath + '.MANUAL', userPath + '.Manual', true, <iobJS.StateCommon>{ type: 'boolean', role: 'switch.mode.enable', name: 'Manual', write: true });
                                await createAliasAsync(aliasPath + '.POWER', userPath + '.power', true, <iobJS.StateCommon>{ type: 'boolean', role: 'switch.power', name: 'Power', write: true });
                                await createAliasAsync(aliasPath + '.MODE', devicePath + '.mode', true, <iobJS.StateCommon>{ type: 'string', role: 'state', name: 'Modus' });
                            }
                             
                            createAliasThermostat();
                             
                            // überwacht Batterielevel
                            // kleiner als 25% wird angezeigt
                            on({ id: [devicePath + '.battery'], change: 'ne' }, function (obj) {
                                if (obj.state.val < 25) {
                                    setStateAsync(userPath + '.lowbat', true);
                                } else {
                                    setStateAsync(userPath + '.lowbat', false);
                                }
                            });
                             
                            // überwacht den Modus vom Thermostat
                            // setzt die Benutzerdatenpunkte entsprechend
                            on({ id: [devicePath + '.mode'], change: 'ne' }, function (obj) {
                                switch (obj.state.val) {
                                    case 'auto':
                                        setStateAsync(userPath + '.Auto', true);
                                        setStateAsync(userPath + '.Manual', false);
                                        setStateAsync(userPath + '.power', true);
                                        break;
                             
                                    case 'heat':
                                        setStateAsync(userPath + '.Auto', false);
                                        setStateAsync(userPath + '.Manual', true);
                                        setStateAsync(userPath + '.power', true);
                                        break;
                             
                                    default:
                                        setStateAsync(userPath + '.Auto', false);
                                        setStateAsync(userPath + '.Manual', false);
                                        setStateAsync(userPath + '.power', false);
                                        break;
                                }
                            });
                             
                            // überwacht den Modus der Benutzerdatenpunkte
                            // setzt den Thermostat Modus entsprechend
                            on({ id: [userPath + '.Auto'], change: 'ne' }, function (obj) {
                                if (obj.state.val) {
                                    setStateAsync(devicePath + '.mode', 'auto');
                                }
                            });
                             
                            on({ id: [userPath + '.Manual'], change: 'ne' }, function (obj) {
                                if (obj.state.val) {
                                    setStateAsync(devicePath + '.mode', 'heat');
                                }
                            });
                             
                            on({ id: [userPath + '.power'], change: 'ne' }, function (obj) {
                                if (obj.state.val) {
                                    setStateAsync(devicePath + '.mode', 'auto');
                                } else {
                                    setStateAsync(devicePath + '.mode', 'off');
                                }
                            });
                            
                            

                            Die ersten drei Zeilen an die Gegebenheiten angepasst.
                            Und unter "async function" die beiden Zeilen abgeschaltet, da die in dem Alias nicht passten. Da habe ich die originalen DP aus dem ZigBee/Sonoff eingetragen.
                            HeizungBad.png
                            Der Rest des Skript sieht aus wie in der Vorlage.
                            Und bis auf das Symbol für die Verbindung "unreach" läuft es auch bestens.
                            Warum der Geräte Adapter einen Schieberegler als Gerät anzeigt und nicht Thermostat weiß ich auch nicht.

                            T Offline
                            T Offline
                            TT-Tom
                            wrote on last edited by
                            #33

                            @darksoul

                            ersetze mal diese Funktion.

                            async function createAliasThermostat() {
                                extendObjectAsync(aliasPath, { type: 'channel', common: { name: 'Thermostat', role: 'thermostat' }, native: {} });
                                await createAliasAsync(aliasPath + '.UNREACH', devicePath + '.available', true, <iobJS.StateCommon>{
                                    type: 'boolean',
                                    role: 'switch',
                                    name: 'available',
                                    write: false,
                                    alias: { id: devicePath + '.available', read: '!val' },
                                });
                                await createAliasAsync(aliasPath + '.LOWBAT', userPath + '.lowbat', true, <iobJS.StateCommon>{ type: 'boolean', role: 'indicator.maintenance', name: 'Battery', write: false });
                                await createAliasAsync(aliasPath + '.ACTUAL', devicePath + '.local_temperature', true, <iobJS.StateCommon>{ type: 'number', role: 'value.themperature', name: 'Temperature', write: false });
                                await createAliasAsync(aliasPath + '.SET', devicePath + '.occupied_heating_setpoint', true, <iobJS.StateCommon>{ type: 'number', role: 'level.themperature', name: 'Setpoint', write: true });
                                await createAliasAsync(aliasPath + '.AUTOMATIC', userPath + '.Auto', true, <iobJS.StateCommon>{ type: 'boolean', role: 'switch.mode.enable', name: 'Auto', write: true });
                                await createAliasAsync(aliasPath + '.MANUAL', userPath + '.Manual', true, <iobJS.StateCommon>{ type: 'boolean', role: 'switch.mode.enable', name: 'Manual', write: true });
                                await createAliasAsync(aliasPath + '.POWER', userPath + '.power', true, <iobJS.StateCommon>{ type: 'boolean', role: 'switch.power', name: 'Power', write: true });
                                await createAliasAsync(aliasPath + '.MODE', devicePath + '.mode', true, <iobJS.StateCommon>{ type: 'string', role: 'state', name: 'Modus' });
                            }
                            

                            Gruß Tom
                            https://github.com/tt-tom17
                            Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

                            NSPanel Script Wiki
                            https://github.com/joBr99/nspanel-lovelace-ui/wiki

                            NSPanel Adapter Wiki
                            https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

                            D 1 Reply Last reply
                            0
                            • T TT-Tom

                              @darksoul

                              ersetze mal diese Funktion.

                              async function createAliasThermostat() {
                                  extendObjectAsync(aliasPath, { type: 'channel', common: { name: 'Thermostat', role: 'thermostat' }, native: {} });
                                  await createAliasAsync(aliasPath + '.UNREACH', devicePath + '.available', true, <iobJS.StateCommon>{
                                      type: 'boolean',
                                      role: 'switch',
                                      name: 'available',
                                      write: false,
                                      alias: { id: devicePath + '.available', read: '!val' },
                                  });
                                  await createAliasAsync(aliasPath + '.LOWBAT', userPath + '.lowbat', true, <iobJS.StateCommon>{ type: 'boolean', role: 'indicator.maintenance', name: 'Battery', write: false });
                                  await createAliasAsync(aliasPath + '.ACTUAL', devicePath + '.local_temperature', true, <iobJS.StateCommon>{ type: 'number', role: 'value.themperature', name: 'Temperature', write: false });
                                  await createAliasAsync(aliasPath + '.SET', devicePath + '.occupied_heating_setpoint', true, <iobJS.StateCommon>{ type: 'number', role: 'level.themperature', name: 'Setpoint', write: true });
                                  await createAliasAsync(aliasPath + '.AUTOMATIC', userPath + '.Auto', true, <iobJS.StateCommon>{ type: 'boolean', role: 'switch.mode.enable', name: 'Auto', write: true });
                                  await createAliasAsync(aliasPath + '.MANUAL', userPath + '.Manual', true, <iobJS.StateCommon>{ type: 'boolean', role: 'switch.mode.enable', name: 'Manual', write: true });
                                  await createAliasAsync(aliasPath + '.POWER', userPath + '.power', true, <iobJS.StateCommon>{ type: 'boolean', role: 'switch.power', name: 'Power', write: true });
                                  await createAliasAsync(aliasPath + '.MODE', devicePath + '.mode', true, <iobJS.StateCommon>{ type: 'string', role: 'state', name: 'Modus' });
                              }
                              
                              D Offline
                              D Offline
                              DarkSoul
                              wrote on last edited by
                              #34

                              @tt-tom 'nabend.
                              Scheint zu funktionieren.
                              Ich weiß nur nicht, ob der abgefragte DP auch das wiedergibt was er soll. Ich habe eine gute Stunde die Batterien aus dem Thermostat raus genommen und er hat seinen Status nicht geändert. Auch ein Mehrmaliges neustarten der Instance hat da nichts geändert. Aber das ist kein Problem des Scriptes. ZigBee halt, ist wohl ein wenig sehr träge.

                              Dank dir und schönen Abend noch

                              1 Reply Last reply
                              1
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              Support us

                              ioBroker
                              Community Adapters
                              Donate

                              683

                              Online

                              32.6k

                              Users

                              82.3k

                              Topics

                              1.3m

                              Posts
                              Community
                              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                              ioBroker Community 2014-2025
                              logo
                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Home
                              • Recent
                              • Tags
                              • Unread 0
                              • Categories
                              • Unreplied
                              • Popular
                              • GitHub
                              • Docu
                              • Hilfe