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. English
  3. ioBroker general
  4. What is the best way to keep custom constants/vars in iob?

NEWS

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    22
    1
    1.1k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.1k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    14
    1
    2.4k

What is the best way to keep custom constants/vars in iob?

Scheduled Pinned Locked Moved ioBroker general
10 Posts 6 Posters 1.3k Views 6 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.
  • PutnikP Offline
    PutnikP Offline
    Putnik
    wrote on last edited by
    #1

    What is the best practice to set and keep some custom values for general and specific use in js or elsewhere?

    For example
    if I need to define general light down time "22:00", where should I place it? In Object tree, if yes, where?
    Or similar case - power of ventilation: "70%" ... ?

    It would be good, that these values could be accessible from any place.

    geschildG 2 Replies Last reply
    0
    • PutnikP Putnik

      What is the best practice to set and keep some custom values for general and specific use in js or elsewhere?

      For example
      if I need to define general light down time "22:00", where should I place it? In Object tree, if yes, where?
      Or similar case - power of ventilation: "70%" ... ?

      It would be good, that these values could be accessible from any place.

      geschildG Offline
      geschildG Offline
      geschild
      wrote on last edited by
      #2

      @putnik Im Ordner "userdata_0".

      1 Reply Last reply
      0
      • mickymM Offline
        mickymM Offline
        mickym
        Most Active
        wrote on last edited by mickym
        #3

        In Object tree, if yes, where?

        0_userdata.0

        Jeder Flow bzw. jedes Script, das ich hier poste implementiert jeder auf eigene Gefahr. Flows und Scripts können Fehler aufweisen und weder der Seitenbetreiber noch ich persönlich können hierfür haftbar gemacht werden. Das gleiche gilt für Empfehlungen aller Art.

        PutnikP 1 Reply Last reply
        1
        • mickymM mickym

          In Object tree, if yes, where?

          0_userdata.0

          PutnikP Offline
          PutnikP Offline
          Putnik
          wrote on last edited by Putnik
          #4

          @mickym
          Thank all of you, who answered!

          Could you clarify, what does "_0" mean in "userdata_0"?

          DJMarc75D 1 Reply Last reply
          0
          • PutnikP Putnik

            @mickym
            Thank all of you, who answered!

            Could you clarify, what does "_0" mean in "userdata_0"?

            DJMarc75D Offline
            DJMarc75D Offline
            DJMarc75
            wrote on last edited by DJMarc75
            #5

            @putnik sagte in What is the best way to keep custom constants/vars in iob?:

            Could you clarify, what does "_0" mean in "userdata_0"?

            maybe it was a mistake:

            0_userdata.0
            

            is the right folder like @mickym commented

            Lehrling seit 1975 !!!
            Beitrag geholfen ? dann gerne ein upvote rechts unten im Beitrag klicken ;)
            https://forum.iobroker.net/topic/51555/hinweise-f%C3%BCr-gute-forenbeitr%C3%A4ge

            A 1 Reply Last reply
            0
            • DJMarc75D DJMarc75

              @putnik sagte in What is the best way to keep custom constants/vars in iob?:

              Could you clarify, what does "_0" mean in "userdata_0"?

              maybe it was a mistake:

              0_userdata.0
              

              is the right folder like @mickym commented

              A Offline
              A Offline
              Ahnungsbefreit
              wrote on last edited by
              #6

              @djmarc75 said in What is the best way to keep custom constants/vars in iob?:

              0_userdata.0

              is the right folder like @mickym commented

              ...and the leading "0_" ist just to ensure this folder always appears on top of the list in the "objects" tab

              Wenn meine Antwort hilfreich war, dürft Ihr das gerne durch einen "Upvote" (der kleine "^" unten rechts) zum Ausdruck bringen.

              PutnikP 1 Reply Last reply
              1
              • A Ahnungsbefreit

                @djmarc75 said in What is the best way to keep custom constants/vars in iob?:

                0_userdata.0

                is the right folder like @mickym commented

                ...and the leading "0_" ist just to ensure this folder always appears on top of the list in the "objects" tab

                PutnikP Offline
                PutnikP Offline
                Putnik
                wrote on last edited by
                #7

                @ahnungsbefreit
                THX!!!
                :slightly_smiling_face:

                1 Reply Last reply
                0
                • PutnikP Putnik

                  What is the best practice to set and keep some custom values for general and specific use in js or elsewhere?

                  For example
                  if I need to define general light down time "22:00", where should I place it? In Object tree, if yes, where?
                  Or similar case - power of ventilation: "70%" ... ?

                  It would be good, that these values could be accessible from any place.

                  geschildG Offline
                  geschildG Offline
                  geschild
                  wrote on last edited by geschild
                  #8

                  @putnik Ich bitte den Tippfehler zu entschuldigen. Sorry.:disappointed_relieved:

                  1 Reply Last reply
                  0
                  • mcm1957M Offline
                    mcm1957M Offline
                    mcm1957
                    wrote on last edited by
                    #9

                    @geschild said in What is the best way to keep custom constants/vars in iob?:

                    @putnik Ich bitte den Tippfehler zu entschuldigen. Sorry.:disappointed_relieved:

                    Please use english wording at english section.
                    Thanks for helping!

                    Entwicklung u Betreuung: envertech-pv, hoymiles-ms, ns-client, pid, snmp Adapter;
                    Support Repositoryverwaltung.

                    Wer Danke sagen will, kann nen Kaffee spendieren: https://paypal.me/mcm1957atiobroker

                    LESEN - gute Forenbeitrage

                    geschildG 1 Reply Last reply
                    0
                    • mcm1957M mcm1957

                      @geschild said in What is the best way to keep custom constants/vars in iob?:

                      @putnik Ich bitte den Tippfehler zu entschuldigen. Sorry.:disappointed_relieved:

                      Please use english wording at english section.
                      Thanks for helping!

                      geschildG Offline
                      geschildG Offline
                      geschild
                      wrote on last edited by
                      #10

                      @mcm57 I apologize for the typo. (Translated with google)

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


                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      537

                      Online

                      32.5k

                      Users

                      81.6k

                      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