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. [Vorlage] LightControl

NEWS

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

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.2k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    16
    1
    3.2k

[Vorlage] LightControl

Geplant Angeheftet Gesperrt Verschoben JavaScript
javascripttemplate
224 Beiträge 25 Kommentatoren 38.5k Aufrufe 36 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.
  • P Pittini

    @ch90045 sagte in [Vorlage] LightControl:

    @pittini Mal eine Frage - im Script steht:

    const LuxSensor = 'linkeddevices.0.Klima.Draussen.brightness'; // Datenpunkt des globalen Luxsensors, wird verwendet wenn in der Gruppe kein gesonderter definiert wird
    

    Ich habe massenhaft Luxsensorer, finde aber nicht die Syntax für das Einbinden in die Gruppen. Wie macht man das?

    Christian

    Jede Raumgruppe hat nen Datenpunkt LuxSensorOid. Da halt eintragen.
    2023-01-09 14_20_59-Pittini_iobroker-LightControl_ Lichtsteuerung für Leuchtmittel unterschiedlicher.png

    ch90045C Offline
    ch90045C Offline
    ch90045
    schrieb am zuletzt editiert von
    #212

    @pittini Danke erst einmal, dass du da rein schaust - was mich wundert, ist, dass bei mir an der Stelle der Bewegungsmelder drin steht:

    c398184a-9db7-4e3b-8946-383141382a4c-image.png

    das ist aber kein Helligkeitssensor:

    3cb869d0-8420-4e79-a1ab-fd39f16057ba-image.png

    SchmakusS 1 Antwort Letzte Antwort
    0
    • ch90045C ch90045

      @pittini Danke erst einmal, dass du da rein schaust - was mich wundert, ist, dass bei mir an der Stelle der Bewegungsmelder drin steht:

      c398184a-9db7-4e3b-8946-383141382a4c-image.png

      das ist aber kein Helligkeitssensor:

      3cb869d0-8420-4e79-a1ab-fd39f16057ba-image.png

      SchmakusS Offline
      SchmakusS Offline
      Schmakus
      Developer
      schrieb am zuletzt editiert von
      #213

      @ch90045 Hi, dann wird wohl dein globaler LuxSensor falsch definiert sein.
      2023-01-10_10h43_17.png

      BTW: Darfst gerne auch den LightControl Adapter testen: https://github.com/Schmakus/ioBroker.lightcontrol.git

      Dev of LightControl Adapter, Contributor of HUE and DoorBird Adapter

      ch90045C 1 Antwort Letzte Antwort
      0
      • SchmakusS Schmakus

        @ch90045 Hi, dann wird wohl dein globaler LuxSensor falsch definiert sein.
        2023-01-10_10h43_17.png

        BTW: Darfst gerne auch den LightControl Adapter testen: https://github.com/Schmakus/ioBroker.lightcontrol.git

        ch90045C Offline
        ch90045C Offline
        ch90045
        schrieb am zuletzt editiert von
        #214

        @schmakus Ist er nicht:

        ef3c8a6e-5fe2-4ae6-9925-0c4685d9c7c2-image.png

        107aaf6e-183c-4549-8825-346d5423dd1d-image.png

        Dein adapter ist aber noch sehr beta, oder? Egal, ich schaue ihn mir mal an

        SchmakusS 1 Antwort Letzte Antwort
        0
        • ch90045C ch90045

          @schmakus Ist er nicht:

          ef3c8a6e-5fe2-4ae6-9925-0c4685d9c7c2-image.png

          107aaf6e-183c-4549-8825-346d5423dd1d-image.png

          Dein adapter ist aber noch sehr beta, oder? Egal, ich schaue ihn mir mal an

          SchmakusS Offline
          SchmakusS Offline
          Schmakus
          Developer
          schrieb am zuletzt editiert von Schmakus
          #215

          @ch90045 Steht im Datenpunkt tatsächlich der BWM? Leider ist es aus deinem Screenshot nicht ganz ersichtlich. So wie ich das sehe steht in diesem Datenpunkt genau der Sensor, welchen du als globaler LuxSensor am Anfang des Scripts definiert hast?! Und das wäre korrekt. Wenn du nun einen individuellen Sensor definieren möchtest, muss du in den Datenpunkt einfach die ID des jeweiligen Lichtsensors eintragen.

          Dev of LightControl Adapter, Contributor of HUE and DoorBird Adapter

          W 1 Antwort Letzte Antwort
          0
          • SchmakusS Schmakus

            @ch90045 Steht im Datenpunkt tatsächlich der BWM? Leider ist es aus deinem Screenshot nicht ganz ersichtlich. So wie ich das sehe steht in diesem Datenpunkt genau der Sensor, welchen du als globaler LuxSensor am Anfang des Scripts definiert hast?! Und das wäre korrekt. Wenn du nun einen individuellen Sensor definieren möchtest, muss du in den Datenpunkt einfach die ID des jeweiligen Lichtsensors eintragen.

            W Offline
            W Offline
            weisnix27
            schrieb am zuletzt editiert von
            #216

            Hallo zusammen,

            ich tue mich leider auch mit dem Skript und Bewegungsmeldern schwer. Hatte das vor ein paar Monaten schon mal getestet aber hab es nicht hinbekommen und jetzt hänge ich da leider schon wieder. Generell danke für die großartige Arbeit auch in den anderen Projekten (heating...)

            Also ich habe eigentlich erstmal eine super einfache Konfiguration wieder zum Testen aufgebaut, die Lampe kann ich schalten und dimmen, der BWM erkennt auch die Bewegung aber er schaltet nicht. Auch im Debug-Log wird Bewegung erkannt aber nicht eingeschaltet.
            Hier im Thread tauchte vor kurzem auf, dass man mindestens einen LUX-Messer haben muss. Ich habe keinen aber einen Fake-Dummy-Dateneintrag gemacht. Vielleicht liegt da das Problem, daher mal ein paar Screenshots, Codes...

            Das ist mein derzeitiges Setting, relativ reduziert. Ich habe auch schon die beiden Konstanten mit Präsenz gefüllt und wieder raus genommen und auch die Settings in der Lightgroup durchgespielt. Eventuell habe ich aber dort auch ein Verständnisproblem.

            const Version = "2.0.21" //vom 24.11.2022 - Skript um Lichter in Helligkeit, Farbe und Farbtemp global zu steuern - Git: https://github.com/Pittini/iobroker-LightControl - Forum: https://forum.iobroker.net/topic/36578/vorlage-lightcontrol
            
            log("starting LightControl V." + Version);
            
            const praefix = "javascript.0.LightControl2" // Skriptordner
            const LuxSensor = "0_userdata.0.Test.lux"; // Datenpunkt des globalen Luxsensors, wird verwendet wenn in der Gruppe kein gesonderter definiert wird
            const IsPresenceDp = ""; // Datenpunkt für Anwesenheit (true/false)
            const PresenceCountDp = ""; // Datenpunkt für Anwesenheitszähler
            const logging = true; // Logging an/aus
            const RampSteps = 10; //Wieviele Schritte zum dimmen? Bitte nicht zu hoch setzen, wird zwar smoother, kann aber zu timing Problemen führen wenn gleichzeitig eine kurze Zeit in den Objekten gewählt.
            
            const minCt = 2700; //Regelbereich für Farbtemperatur in Kelvin für Adaptive Ct
            const maxCt = 6500;//Regelbereich für Farbtemperatur in Kelvin für Adaptive Ct
            const minBri = 10; //Mindesthelligkeit für AdaptiveBri
            
            const LightGroups = {
                
                0:{
                    description: "EG.Flur_Mitte.Deckenleuchte",
                      lights: {
                          0: {
                              description: "Deckenleuchte",
                              power: { oid: "alias.0.Erdgeschoss.Flur_Mitte.Licht.Deckenleuchte.on", onVal: true, offVal: false },
                              bri: { oid: "alias.0.Erdgeschoss.Flur_Mitte.Licht.Deckenleuchte.dimmer", minVal: 0, maxVal: 100, defaultVal: 80 },
                              ct: { oid: "", minVal: 454, maxVal: 250 },
                              sat: { oid: "", minVal: null, maxVal: null },
                              modeswitch: { oid: "", whiteModeVal: false, colorModeVal: true },
                              color: { oid: "", type: "", default: "" }
                          }
                      },
                      sensors: {
                        0: { id: 'alias.0.Erdgeschoss.Flur_Mitte.Anwesenheit.Bewegungsmelder.motion', motionVal: true, noMotionVal: false }
                    }
                }
             };
            
            

            65ddbd40-07b2-45a2-bef8-0f4197a0c771-image.png

            1284bfbf-165f-4774-b871-2b74058f19d6-image.png

            113d8312-cc6e-4942-8948-4945e2241128-image.png

            Das ist mein Fake Datenpunkt für LUX (number).

            e572b84b-3de8-4ba9-a8da-5b06fb688246-image.png

            Den habe ich extra auf 50 Lux gesetzt und dann komme ich auch zu meinen Verständnisfragen, alle beziehen sich auf die Objekte unterhalb AutoOnMotion.

            Mein globaler FakeLux sagt, es sind 50 lux überall.
            Heisst minLux = 400, dass er nur bei über 400 LUX anschaltet? Das wäre für mich unlogisch, da er ja im Dunkeln anschalten soll und der Wert dann eher maxLux heißen müsste. Ich habe aber sowohl größer 50 als auch kleiner 50 getestet.

            Dann dort bri=0. Ist das der Wert mit dem die Lampe angeht? Dann würde sie ja dunkel bleiben.... Habe hier aber auch schon 80 stehen gehabt, klappt irgendwie nicht.

            Sorry, ich werde natürlich, wenn notwendig Lichtsensoren besorgen, allerdings wollte ich im ersten Step meine alten Behelfsskripte für die BWMs loswerden und solange die nicht funktionieren komme ich gar nicht zum weiter testen für die anderen schönen Auto-Funktionen im Skript.

            Hier das Debug-Log. Ich hab das Skript frisch gestartet, kurz gewartet und bin einmal zum BWM gelaufen. Lampe war vorher aus und ist nicht angegangen.
            Um 18:31 habe ich die Lampe über die Visualisierung angemacht und auch die Helligkeit angepasst.

            Wenn mir jetzt jemand die BWMs ans Laufen bekommt und die beiden, vermutlich recht einfachen Fragen beantwortet, dann wäre es top.

            16.1.2023, 18:29:30.478	[info ]: javascript.0 (356398) Start javascript script.js.common.Licht.LightControl
            16.1.2023, 18:29:30.490	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: starting LightControl V.2.0.21
            16.1.2023, 18:29:30.491	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: registered 0 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
            16.1.2023, 18:29:30.494	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching DoAllTheSensorThings
            16.1.2023, 18:29:30.594	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.power still exists, skipping creation and reading data
            16.1.2023, 18:29:30.595	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.power, value is false
            16.1.2023, 18:29:30.596	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.dimmUp still exists, skipping creation and reading data
            16.1.2023, 18:29:30.597	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.dimmUp, value is true
            16.1.2023, 18:29:30.599	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.dimmDown still exists, skipping creation and reading data
            16.1.2023, 18:29:30.599	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.dimmDown, value is true
            16.1.2023, 18:29:30.601	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.dimmAmount still exists, skipping creation and reading data
            16.1.2023, 18:29:30.602	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.dimmAmount, value is 10
            16.1.2023, 18:29:30.603	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.bri still exists, skipping creation and reading data
            16.1.2023, 18:29:30.603	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.bri, value is 80
            16.1.2023, 18:29:30.605	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.ct still exists, skipping creation and reading data
            16.1.2023, 18:29:30.605	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.ct, value is 3300
            16.1.2023, 18:29:30.607	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.color still exists, skipping creation and reading data
            16.1.2023, 18:29:30.607	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.color, value is #FFFFFF
            16.1.2023, 18:29:30.609	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.luxSensorOid still exists, skipping creation and reading data
            16.1.2023, 18:29:30.609	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.luxSensorOid, value is 
            16.1.2023, 18:29:30.610	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching DoAllTheLuxSensorThings for Group0 prop=
            16.1.2023, 18:29:30.610	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: No Luxsensor for 0 defined, skip handling
            16.1.2023, 18:29:30.611	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.adaptiveBri still exists, skipping creation and reading data
            16.1.2023, 18:29:30.612	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.adaptiveBri, value is false
            16.1.2023, 18:29:30.613	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.adaptiveCt still exists, skipping creation and reading data
            16.1.2023, 18:29:30.614	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.adaptiveCt, value is false
            16.1.2023, 18:29:30.615	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.adaptiveCtMode still exists, skipping creation and reading data
            16.1.2023, 18:29:30.615	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.adaptiveCtMode, value is solar
            16.1.2023, 18:29:30.616	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.adaptiveCtTime still exists, skipping creation and reading data
            16.1.2023, 18:29:30.617	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.adaptiveCtTime, value is 06:00
            16.1.2023, 18:29:30.617	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.powerCleaningLight still exists, skipping creation and reading data
            16.1.2023, 18:29:30.618	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.powerCleaningLight, value is false
            16.1.2023, 18:29:30.619	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.isMotion still exists, skipping creation and reading data
            16.1.2023, 18:29:30.619	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.isMotion, value is false
            16.1.2023, 18:29:30.620	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOffTimed.enabled still exists, skipping creation and reading data
            16.1.2023, 18:29:30.621	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOffTimed.autoOffTime still exists, skipping creation and reading data
            16.1.2023, 18:29:30.622	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOffTimed.noAutoOffWhenMotion still exists, skipping creation and reading data
            16.1.2023, 18:29:30.623	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOffLux.enabled still exists, skipping creation and reading data
            16.1.2023, 18:29:30.623	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOffLux.minLux still exists, skipping creation and reading data
            16.1.2023, 18:29:30.624	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOffLux.dailyLock still exists, skipping creation and reading data
            16.1.2023, 18:29:30.625	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOffLux.operator still exists, skipping creation and reading data
            16.1.2023, 18:29:30.626	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnMotion.enabled still exists, skipping creation and reading data
            16.1.2023, 18:29:30.640	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnMotion.minLux still exists, skipping creation and reading data
            16.1.2023, 18:29:30.663	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnMotion.bri still exists, skipping creation and reading data
            16.1.2023, 18:29:30.664	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnMotion.color still exists, skipping creation and reading data
            16.1.2023, 18:29:30.666	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnLux.enabled still exists, skipping creation and reading data
            16.1.2023, 18:29:30.667	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnLux.minLux still exists, skipping creation and reading data
            16.1.2023, 18:29:30.668	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnLux.bri still exists, skipping creation and reading data
            16.1.2023, 18:29:30.668	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnLux.color still exists, skipping creation and reading data
            16.1.2023, 18:29:30.669	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnLux.switchOnlyWhenPresence still exists, skipping creation and reading data
            16.1.2023, 18:29:30.670	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnLux.switchOnlyWhenNoPresence still exists, skipping creation and reading data
            16.1.2023, 18:29:30.671	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnLux.dailyLock still exists, skipping creation and reading data
            16.1.2023, 18:29:30.672	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnLux.operator still exists, skipping creation and reading data
            16.1.2023, 18:29:30.673	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnPresenceIncrease.enabled still exists, skipping creation and reading data
            16.1.2023, 18:29:30.674	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnPresenceIncrease.minLux still exists, skipping creation and reading data
            16.1.2023, 18:29:30.676	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnPresenceIncrease.bri still exists, skipping creation and reading data
            16.1.2023, 18:29:30.678	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnPresenceIncrease.color still exists, skipping creation and reading data
            16.1.2023, 18:29:30.680	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.rampOn.enabled still exists, skipping creation and reading data
            16.1.2023, 18:29:30.682	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.rampOn.time still exists, skipping creation and reading data
            16.1.2023, 18:29:30.684	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.rampOn.switchOutletsLast still exists, skipping creation and reading data
            16.1.2023, 18:29:30.685	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.rampOff.enabled still exists, skipping creation and reading data
            16.1.2023, 18:29:30.686	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.rampOff.time still exists, skipping creation and reading data
            16.1.2023, 18:29:30.687	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.rampOff.switchOutletsLast still exists, skipping creation and reading data
            16.1.2023, 18:29:30.688	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.blink.enabled still exists, skipping creation and reading data
            16.1.2023, 18:29:30.689	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.blink.frequency still exists, skipping creation and reading data
            16.1.2023, 18:29:30.690	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.blink.blinks still exists, skipping creation and reading data
            16.1.2023, 18:29:30.691	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.blink.bri still exists, skipping creation and reading data
            16.1.2023, 18:29:30.692	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.blink.color still exists, skipping creation and reading data
            16.1.2023, 18:29:30.694	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.all.power still exists, skipping creation and setting trigger
            16.1.2023, 18:29:30.695	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.all.anyOn still exists, skipping creation and setting trigger
            16.1.2023, 18:29:30.696	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Created 0 Datapoints
            16.1.2023, 18:29:30.696	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: adaptiveCtLinear=0 adaptiveCtSolar=0 adaptiveCtSolarInterpolated=0 adaptiveCtTimed=0
            16.1.2023, 18:30:07.385	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Triggered linked Sensor alias.0.Erdgeschoss.Flur_Mitte.Anwesenheit.Bewegungsmelder.motion new value is true
            16.1.2023, 18:30:07.386	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching SummarizeSensors, Group=0
            16.1.2023, 18:30:07.386	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Gruppe=0 Sensor 0 with target alias.0.Erdgeschoss.Flur_Mitte.Anwesenheit.Bewegungsmelder.motion has value true
            16.1.2023, 18:30:07.386	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Summarized IsMotion for Group 0 = true
            16.1.2023, 18:30:07.387	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching Controller, Group=0 Property1=isMotion NewVal=true OldVal=false
            16.1.2023, 18:30:30.697	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: adaptiveCtLinear=0 adaptiveCtSolar=0 adaptiveCtSolarInterpolated=0 adaptiveCtTimed=0
            16.1.2023, 18:30:49.798	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Triggered linked Sensor alias.0.Erdgeschoss.Flur_Mitte.Anwesenheit.Bewegungsmelder.motion new value is false
            16.1.2023, 18:30:49.798	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching SummarizeSensors, Group=0
            16.1.2023, 18:30:49.798	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Summarized IsMotion for Group 0 = false
            16.1.2023, 18:30:49.800	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching Controller, Group=0 Property1=isMotion NewVal=false OldVal=true
            16.1.2023, 18:31:04.467	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching Controller, Group=0 Property1=power NewVal=true OldVal=false
            16.1.2023, 18:31:04.468	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching GroupPowerOnOff for Group 0 (EG.Flur_Mitte.Deckenleuchte), OnOff=true rampOn=false - {"enabled":false,"time":10,"switchOutletsLast":true} rampOff=false - {"enabled":false,"time":10,"switchOutletsLast":false}
            16.1.2023, 18:31:04.468	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: SimpleGroupPowerOnOff: Normales anschalten ohne Ramping für EG.Flur_Mitte.Deckenleuchte
            16.1.2023, 18:31:04.475	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching Light States anyOn and Masterswitch
            16.1.2023, 18:31:04.477	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching Light States anyOn and Masterswitch
            16.1.2023, 18:31:04.479	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching powerOnAfterCare for Group 0 bri=80 ct=3300 color=#FFFFFF
            16.1.2023, 18:31:04.479	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Now setting bri to 80% for Group EG.Flur_Mitte.Deckenleuchte
            16.1.2023, 18:31:04.479	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching SetBrightness, Group=0 Brightness=80
            16.1.2023, 18:31:04.571	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching SetColor for Group 0 power=true Color=#FFFFFF
            16.1.2023, 18:31:04.571	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching WhiteSubstituteColor for Group0 = EG.Flur_Mitte.Deckenleuchte LightGroups[Group].power=true LightGroups[Group].color =#FFFFFF
            16.1.2023, 18:31:04.571	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching SetColorMode for Group 0
            16.1.2023, 18:31:04.571	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching SetCt, Group=0 Ct=3300
            16.1.2023, 18:31:14.219	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching Controller, Group=0 Property1=bri NewVal=11 OldVal=80
            16.1.2023, 18:31:14.219	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching SetBrightness, Group=0 Brightness=11
            16.1.2023, 18:31:15.224	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching Controller, Group=0 Property1=bri NewVal=41 OldVal=11
            16.1.2023, 18:31:15.224	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching SetBrightness, Group=0 Brightness=41
            16.1.2023, 18:31:18.245	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching Controller, Group=0 Property1=bri NewVal=1 OldVal=41
            16.1.2023, 18:31:18.245	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching SetBrightness, Group=0 Brightness=1
            16.1.2023, 18:31:24.003	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching Controller, Group=0 Property1=bri NewVal=91 OldVal=2
            16.1.2023, 18:31:24.003	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching SetBrightness, Group=0 Brightness=91
            16.1.2023, 18:31:30.697	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: adaptiveCtLinear=0 adaptiveCtSolar=0 adaptiveCtSolarInterpolated=0 adaptiveCtTimed=0
            
            SchmakusS 1 Antwort Letzte Antwort
            0
            • W weisnix27

              Hallo zusammen,

              ich tue mich leider auch mit dem Skript und Bewegungsmeldern schwer. Hatte das vor ein paar Monaten schon mal getestet aber hab es nicht hinbekommen und jetzt hänge ich da leider schon wieder. Generell danke für die großartige Arbeit auch in den anderen Projekten (heating...)

              Also ich habe eigentlich erstmal eine super einfache Konfiguration wieder zum Testen aufgebaut, die Lampe kann ich schalten und dimmen, der BWM erkennt auch die Bewegung aber er schaltet nicht. Auch im Debug-Log wird Bewegung erkannt aber nicht eingeschaltet.
              Hier im Thread tauchte vor kurzem auf, dass man mindestens einen LUX-Messer haben muss. Ich habe keinen aber einen Fake-Dummy-Dateneintrag gemacht. Vielleicht liegt da das Problem, daher mal ein paar Screenshots, Codes...

              Das ist mein derzeitiges Setting, relativ reduziert. Ich habe auch schon die beiden Konstanten mit Präsenz gefüllt und wieder raus genommen und auch die Settings in der Lightgroup durchgespielt. Eventuell habe ich aber dort auch ein Verständnisproblem.

              const Version = "2.0.21" //vom 24.11.2022 - Skript um Lichter in Helligkeit, Farbe und Farbtemp global zu steuern - Git: https://github.com/Pittini/iobroker-LightControl - Forum: https://forum.iobroker.net/topic/36578/vorlage-lightcontrol
              
              log("starting LightControl V." + Version);
              
              const praefix = "javascript.0.LightControl2" // Skriptordner
              const LuxSensor = "0_userdata.0.Test.lux"; // Datenpunkt des globalen Luxsensors, wird verwendet wenn in der Gruppe kein gesonderter definiert wird
              const IsPresenceDp = ""; // Datenpunkt für Anwesenheit (true/false)
              const PresenceCountDp = ""; // Datenpunkt für Anwesenheitszähler
              const logging = true; // Logging an/aus
              const RampSteps = 10; //Wieviele Schritte zum dimmen? Bitte nicht zu hoch setzen, wird zwar smoother, kann aber zu timing Problemen führen wenn gleichzeitig eine kurze Zeit in den Objekten gewählt.
              
              const minCt = 2700; //Regelbereich für Farbtemperatur in Kelvin für Adaptive Ct
              const maxCt = 6500;//Regelbereich für Farbtemperatur in Kelvin für Adaptive Ct
              const minBri = 10; //Mindesthelligkeit für AdaptiveBri
              
              const LightGroups = {
                  
                  0:{
                      description: "EG.Flur_Mitte.Deckenleuchte",
                        lights: {
                            0: {
                                description: "Deckenleuchte",
                                power: { oid: "alias.0.Erdgeschoss.Flur_Mitte.Licht.Deckenleuchte.on", onVal: true, offVal: false },
                                bri: { oid: "alias.0.Erdgeschoss.Flur_Mitte.Licht.Deckenleuchte.dimmer", minVal: 0, maxVal: 100, defaultVal: 80 },
                                ct: { oid: "", minVal: 454, maxVal: 250 },
                                sat: { oid: "", minVal: null, maxVal: null },
                                modeswitch: { oid: "", whiteModeVal: false, colorModeVal: true },
                                color: { oid: "", type: "", default: "" }
                            }
                        },
                        sensors: {
                          0: { id: 'alias.0.Erdgeschoss.Flur_Mitte.Anwesenheit.Bewegungsmelder.motion', motionVal: true, noMotionVal: false }
                      }
                  }
               };
              
              

              65ddbd40-07b2-45a2-bef8-0f4197a0c771-image.png

              1284bfbf-165f-4774-b871-2b74058f19d6-image.png

              113d8312-cc6e-4942-8948-4945e2241128-image.png

              Das ist mein Fake Datenpunkt für LUX (number).

              e572b84b-3de8-4ba9-a8da-5b06fb688246-image.png

              Den habe ich extra auf 50 Lux gesetzt und dann komme ich auch zu meinen Verständnisfragen, alle beziehen sich auf die Objekte unterhalb AutoOnMotion.

              Mein globaler FakeLux sagt, es sind 50 lux überall.
              Heisst minLux = 400, dass er nur bei über 400 LUX anschaltet? Das wäre für mich unlogisch, da er ja im Dunkeln anschalten soll und der Wert dann eher maxLux heißen müsste. Ich habe aber sowohl größer 50 als auch kleiner 50 getestet.

              Dann dort bri=0. Ist das der Wert mit dem die Lampe angeht? Dann würde sie ja dunkel bleiben.... Habe hier aber auch schon 80 stehen gehabt, klappt irgendwie nicht.

              Sorry, ich werde natürlich, wenn notwendig Lichtsensoren besorgen, allerdings wollte ich im ersten Step meine alten Behelfsskripte für die BWMs loswerden und solange die nicht funktionieren komme ich gar nicht zum weiter testen für die anderen schönen Auto-Funktionen im Skript.

              Hier das Debug-Log. Ich hab das Skript frisch gestartet, kurz gewartet und bin einmal zum BWM gelaufen. Lampe war vorher aus und ist nicht angegangen.
              Um 18:31 habe ich die Lampe über die Visualisierung angemacht und auch die Helligkeit angepasst.

              Wenn mir jetzt jemand die BWMs ans Laufen bekommt und die beiden, vermutlich recht einfachen Fragen beantwortet, dann wäre es top.

              16.1.2023, 18:29:30.478	[info ]: javascript.0 (356398) Start javascript script.js.common.Licht.LightControl
              16.1.2023, 18:29:30.490	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: starting LightControl V.2.0.21
              16.1.2023, 18:29:30.491	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: registered 0 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
              16.1.2023, 18:29:30.494	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching DoAllTheSensorThings
              16.1.2023, 18:29:30.594	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.power still exists, skipping creation and reading data
              16.1.2023, 18:29:30.595	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.power, value is false
              16.1.2023, 18:29:30.596	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.dimmUp still exists, skipping creation and reading data
              16.1.2023, 18:29:30.597	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.dimmUp, value is true
              16.1.2023, 18:29:30.599	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.dimmDown still exists, skipping creation and reading data
              16.1.2023, 18:29:30.599	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.dimmDown, value is true
              16.1.2023, 18:29:30.601	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.dimmAmount still exists, skipping creation and reading data
              16.1.2023, 18:29:30.602	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.dimmAmount, value is 10
              16.1.2023, 18:29:30.603	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.bri still exists, skipping creation and reading data
              16.1.2023, 18:29:30.603	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.bri, value is 80
              16.1.2023, 18:29:30.605	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.ct still exists, skipping creation and reading data
              16.1.2023, 18:29:30.605	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.ct, value is 3300
              16.1.2023, 18:29:30.607	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.color still exists, skipping creation and reading data
              16.1.2023, 18:29:30.607	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.color, value is #FFFFFF
              16.1.2023, 18:29:30.609	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.luxSensorOid still exists, skipping creation and reading data
              16.1.2023, 18:29:30.609	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.luxSensorOid, value is 
              16.1.2023, 18:29:30.610	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching DoAllTheLuxSensorThings for Group0 prop=
              16.1.2023, 18:29:30.610	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: No Luxsensor for 0 defined, skip handling
              16.1.2023, 18:29:30.611	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.adaptiveBri still exists, skipping creation and reading data
              16.1.2023, 18:29:30.612	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.adaptiveBri, value is false
              16.1.2023, 18:29:30.613	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.adaptiveCt still exists, skipping creation and reading data
              16.1.2023, 18:29:30.614	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.adaptiveCt, value is false
              16.1.2023, 18:29:30.615	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.adaptiveCtMode still exists, skipping creation and reading data
              16.1.2023, 18:29:30.615	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.adaptiveCtMode, value is solar
              16.1.2023, 18:29:30.616	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.adaptiveCtTime still exists, skipping creation and reading data
              16.1.2023, 18:29:30.617	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.adaptiveCtTime, value is 06:00
              16.1.2023, 18:29:30.617	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.powerCleaningLight still exists, skipping creation and reading data
              16.1.2023, 18:29:30.618	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.powerCleaningLight, value is false
              16.1.2023, 18:29:30.619	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init:Datapoint javascript.0.LightControl2.0.isMotion still exists, skipping creation and reading data
              16.1.2023, 18:29:30.619	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Read data from:javascript.0.LightControl2.0.isMotion, value is false
              16.1.2023, 18:29:30.620	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOffTimed.enabled still exists, skipping creation and reading data
              16.1.2023, 18:29:30.621	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOffTimed.autoOffTime still exists, skipping creation and reading data
              16.1.2023, 18:29:30.622	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOffTimed.noAutoOffWhenMotion still exists, skipping creation and reading data
              16.1.2023, 18:29:30.623	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOffLux.enabled still exists, skipping creation and reading data
              16.1.2023, 18:29:30.623	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOffLux.minLux still exists, skipping creation and reading data
              16.1.2023, 18:29:30.624	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOffLux.dailyLock still exists, skipping creation and reading data
              16.1.2023, 18:29:30.625	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOffLux.operator still exists, skipping creation and reading data
              16.1.2023, 18:29:30.626	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnMotion.enabled still exists, skipping creation and reading data
              16.1.2023, 18:29:30.640	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnMotion.minLux still exists, skipping creation and reading data
              16.1.2023, 18:29:30.663	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnMotion.bri still exists, skipping creation and reading data
              16.1.2023, 18:29:30.664	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnMotion.color still exists, skipping creation and reading data
              16.1.2023, 18:29:30.666	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnLux.enabled still exists, skipping creation and reading data
              16.1.2023, 18:29:30.667	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnLux.minLux still exists, skipping creation and reading data
              16.1.2023, 18:29:30.668	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnLux.bri still exists, skipping creation and reading data
              16.1.2023, 18:29:30.668	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnLux.color still exists, skipping creation and reading data
              16.1.2023, 18:29:30.669	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnLux.switchOnlyWhenPresence still exists, skipping creation and reading data
              16.1.2023, 18:29:30.670	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnLux.switchOnlyWhenNoPresence still exists, skipping creation and reading data
              16.1.2023, 18:29:30.671	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnLux.dailyLock still exists, skipping creation and reading data
              16.1.2023, 18:29:30.672	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnLux.operator still exists, skipping creation and reading data
              16.1.2023, 18:29:30.673	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnPresenceIncrease.enabled still exists, skipping creation and reading data
              16.1.2023, 18:29:30.674	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnPresenceIncrease.minLux still exists, skipping creation and reading data
              16.1.2023, 18:29:30.676	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnPresenceIncrease.bri still exists, skipping creation and reading data
              16.1.2023, 18:29:30.678	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.autoOnPresenceIncrease.color still exists, skipping creation and reading data
              16.1.2023, 18:29:30.680	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.rampOn.enabled still exists, skipping creation and reading data
              16.1.2023, 18:29:30.682	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.rampOn.time still exists, skipping creation and reading data
              16.1.2023, 18:29:30.684	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.rampOn.switchOutletsLast still exists, skipping creation and reading data
              16.1.2023, 18:29:30.685	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.rampOff.enabled still exists, skipping creation and reading data
              16.1.2023, 18:29:30.686	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.rampOff.time still exists, skipping creation and reading data
              16.1.2023, 18:29:30.687	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.rampOff.switchOutletsLast still exists, skipping creation and reading data
              16.1.2023, 18:29:30.688	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.blink.enabled still exists, skipping creation and reading data
              16.1.2023, 18:29:30.689	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.blink.frequency still exists, skipping creation and reading data
              16.1.2023, 18:29:30.690	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.blink.blinks still exists, skipping creation and reading data
              16.1.2023, 18:29:30.691	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.blink.bri still exists, skipping creation and reading data
              16.1.2023, 18:29:30.692	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.0.blink.color still exists, skipping creation and reading data
              16.1.2023, 18:29:30.694	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.all.power still exists, skipping creation and setting trigger
              16.1.2023, 18:29:30.695	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Datapoint javascript.0.LightControl2.all.anyOn still exists, skipping creation and setting trigger
              16.1.2023, 18:29:30.696	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Init: Created 0 Datapoints
              16.1.2023, 18:29:30.696	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: adaptiveCtLinear=0 adaptiveCtSolar=0 adaptiveCtSolarInterpolated=0 adaptiveCtTimed=0
              16.1.2023, 18:30:07.385	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Triggered linked Sensor alias.0.Erdgeschoss.Flur_Mitte.Anwesenheit.Bewegungsmelder.motion new value is true
              16.1.2023, 18:30:07.386	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching SummarizeSensors, Group=0
              16.1.2023, 18:30:07.386	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Gruppe=0 Sensor 0 with target alias.0.Erdgeschoss.Flur_Mitte.Anwesenheit.Bewegungsmelder.motion has value true
              16.1.2023, 18:30:07.386	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Summarized IsMotion for Group 0 = true
              16.1.2023, 18:30:07.387	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching Controller, Group=0 Property1=isMotion NewVal=true OldVal=false
              16.1.2023, 18:30:30.697	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: adaptiveCtLinear=0 adaptiveCtSolar=0 adaptiveCtSolarInterpolated=0 adaptiveCtTimed=0
              16.1.2023, 18:30:49.798	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Triggered linked Sensor alias.0.Erdgeschoss.Flur_Mitte.Anwesenheit.Bewegungsmelder.motion new value is false
              16.1.2023, 18:30:49.798	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching SummarizeSensors, Group=0
              16.1.2023, 18:30:49.798	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Summarized IsMotion for Group 0 = false
              16.1.2023, 18:30:49.800	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching Controller, Group=0 Property1=isMotion NewVal=false OldVal=true
              16.1.2023, 18:31:04.467	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching Controller, Group=0 Property1=power NewVal=true OldVal=false
              16.1.2023, 18:31:04.468	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching GroupPowerOnOff for Group 0 (EG.Flur_Mitte.Deckenleuchte), OnOff=true rampOn=false - {"enabled":false,"time":10,"switchOutletsLast":true} rampOff=false - {"enabled":false,"time":10,"switchOutletsLast":false}
              16.1.2023, 18:31:04.468	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: SimpleGroupPowerOnOff: Normales anschalten ohne Ramping für EG.Flur_Mitte.Deckenleuchte
              16.1.2023, 18:31:04.475	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching Light States anyOn and Masterswitch
              16.1.2023, 18:31:04.477	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching Light States anyOn and Masterswitch
              16.1.2023, 18:31:04.479	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching powerOnAfterCare for Group 0 bri=80 ct=3300 color=#FFFFFF
              16.1.2023, 18:31:04.479	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Now setting bri to 80% for Group EG.Flur_Mitte.Deckenleuchte
              16.1.2023, 18:31:04.479	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching SetBrightness, Group=0 Brightness=80
              16.1.2023, 18:31:04.571	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching SetColor for Group 0 power=true Color=#FFFFFF
              16.1.2023, 18:31:04.571	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching WhiteSubstituteColor for Group0 = EG.Flur_Mitte.Deckenleuchte LightGroups[Group].power=true LightGroups[Group].color =#FFFFFF
              16.1.2023, 18:31:04.571	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching SetColorMode for Group 0
              16.1.2023, 18:31:04.571	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching SetCt, Group=0 Ct=3300
              16.1.2023, 18:31:14.219	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching Controller, Group=0 Property1=bri NewVal=11 OldVal=80
              16.1.2023, 18:31:14.219	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching SetBrightness, Group=0 Brightness=11
              16.1.2023, 18:31:15.224	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching Controller, Group=0 Property1=bri NewVal=41 OldVal=11
              16.1.2023, 18:31:15.224	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching SetBrightness, Group=0 Brightness=41
              16.1.2023, 18:31:18.245	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching Controller, Group=0 Property1=bri NewVal=1 OldVal=41
              16.1.2023, 18:31:18.245	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching SetBrightness, Group=0 Brightness=1
              16.1.2023, 18:31:24.003	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching Controller, Group=0 Property1=bri NewVal=91 OldVal=2
              16.1.2023, 18:31:24.003	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: Reaching SetBrightness, Group=0 Brightness=91
              16.1.2023, 18:31:30.697	[info ]: javascript.0 (356398) script.js.common.Licht.LightControl: adaptiveCtLinear=0 adaptiveCtSolar=0 adaptiveCtSolarInterpolated=0 adaptiveCtTimed=0
              
              SchmakusS Offline
              SchmakusS Offline
              Schmakus
              Developer
              schrieb am zuletzt editiert von
              #217

              @weisnix27 LightControl gibts auch als Adapter in der Beta-Repository....

              Dev of LightControl Adapter, Contributor of HUE and DoorBird Adapter

              W 1 Antwort Letzte Antwort
              0
              • SchmakusS Schmakus

                @weisnix27 LightControl gibts auch als Adapter in der Beta-Repository....

                W Offline
                W Offline
                weisnix27
                schrieb am zuletzt editiert von
                #218

                @schmakus Ja, das habe ich auch schon entdeckt, aber noch beta und da habe ich doch vermutlich das gleich (vermutlich selbstgemachte Config-) Problem?!
                Wie ist es denn generell, strebt ihr eine Coexistenz an oder wird generell umgestellt auf den Adapter?

                SchmakusS 1 Antwort Letzte Antwort
                0
                • W weisnix27

                  @schmakus Ja, das habe ich auch schon entdeckt, aber noch beta und da habe ich doch vermutlich das gleich (vermutlich selbstgemachte Config-) Problem?!
                  Wie ist es denn generell, strebt ihr eine Coexistenz an oder wird generell umgestellt auf den Adapter?

                  SchmakusS Offline
                  SchmakusS Offline
                  Schmakus
                  Developer
                  schrieb am zuletzt editiert von
                  #219

                  @weisnix27 Die Konfiguration ist komplett anders und trivialer.
                  Das Script von Pittini wird weiterhin bestehen bleiben, denke ich. Der Adapter wird jedoch entsprechend weiterentwickelt und mit der einen oder anderen Funktion erweitert.

                  Dev of LightControl Adapter, Contributor of HUE and DoorBird Adapter

                  W 1 Antwort Letzte Antwort
                  1
                  • SchmakusS Schmakus

                    @weisnix27 Die Konfiguration ist komplett anders und trivialer.
                    Das Script von Pittini wird weiterhin bestehen bleiben, denke ich. Der Adapter wird jedoch entsprechend weiterentwickelt und mit der einen oder anderen Funktion erweitert.

                    W Offline
                    W Offline
                    weisnix27
                    schrieb am zuletzt editiert von
                    #220

                    @schmakus Danke. Dann schau ich es mir die nächsten Tage mal an. Habe erstmal den BWM in meine kleinen Skripte übernommen. Sonst meckert die Frau.

                    1 Antwort Letzte Antwort
                    0
                    • P Pittini

                      @passuff sagte in [Vorlage] LightControl:

                      Folgendes Szenario:

                      Das Licht im Wohnzimmer wird über AutoOnMotion eingeschaltet, wenn es die Helligkeit erfordert.
                      Das Licht im Wohnzimmer wird über AutoOffTimed nach 120s ausgeschaltet.
                      Wenn jemand den Lichtschalter manuell betätigt, greift leider das Auto OffTimed nicht, da Power in diesem Fall false zeigt, obwohl der Lichtschalter betätigt ist.
                      Gibt es eine Möglichkeit auf den Schalter zu triggern und somit auch die AutoOffTimed Funktion zu nutzen, wenn das Licht manuell eingeschaltet wurde?

                      Der Lichtschalter darf halt nicht die Lampe(n) direkt schalten, sondern den entsprechenden Power Datenpunkt vom Skript, dann funktioniert das einwandfrei, hab ich hier in etlichen Räumen so.

                      P Offline
                      P Offline
                      passuff
                      schrieb am zuletzt editiert von passuff
                      #221

                      @pittini sagte in [Vorlage] LightControl:

                      @passuff sagte in [Vorlage] LightControl:

                      Folgendes Szenario:

                      Das Licht im Wohnzimmer wird über AutoOnMotion eingeschaltet, wenn es die Helligkeit erfordert.
                      Das Licht im Wohnzimmer wird über AutoOffTimed nach 120s ausgeschaltet.
                      Wenn jemand den Lichtschalter manuell betätigt, greift leider das Auto OffTimed nicht, da Power in diesem Fall false zeigt, obwohl der Lichtschalter betätigt ist.
                      Gibt es eine Möglichkeit auf den Schalter zu triggern und somit auch die AutoOffTimed Funktion zu nutzen, wenn das Licht manuell eingeschaltet wurde?

                      Der Lichtschalter darf halt nicht die Lampe(n) direkt schalten, sondern den entsprechenden Power Datenpunkt vom Skript, dann funktioniert das einwandfrei, hab ich hier in etlichen Räumen so.

                      Wenn ich den Power Datenpunkt nutze, hat dies weder eine Auswirkung auf die Lampenschaltung, noch triggert es die AutoOff Funktionen. Der Datenpunkt ist eher ein Messwert und dient offensichtlich nur der Anzeige.
                      Muss man den "Schalter" irgendwie aktivieren?

                      EDIT: Hat sich erledigt. Ich hatte mit "Bestätigung" gesendet... Mein Fehler. Es funktioniert jetzt.

                      1 Antwort Letzte Antwort
                      0
                      • P Offline
                        P Offline
                        passuff
                        schrieb am zuletzt editiert von
                        #222

                        Wie kann ich die Log Stufe beeinflussen? Aktuell sind aufgrund von LightControl meine LogDateien 30Mb groß. Ich würde das gerne reduzieren bzw. auch gerne einfach deaktivieren.

                        SchmakusS 1 Antwort Letzte Antwort
                        0
                        • P passuff

                          Wie kann ich die Log Stufe beeinflussen? Aktuell sind aufgrund von LightControl meine LogDateien 30Mb groß. Ich würde das gerne reduzieren bzw. auch gerne einfach deaktivieren.

                          SchmakusS Offline
                          SchmakusS Offline
                          Schmakus
                          Developer
                          schrieb am zuletzt editiert von
                          #223

                          @passuff du kannst dum einen im Kopfbereich das logging auf false setzten. Sollten es immer noch zu viele Logs sein, füge vor jedem Log „if (logging) „ ein, wo noch keins ist.

                          Dev of LightControl Adapter, Contributor of HUE and DoorBird Adapter

                          1 Antwort Letzte Antwort
                          0
                          • P Offline
                            P Offline
                            passuff
                            schrieb am zuletzt editiert von
                            #224

                            Ich bekomme neuerdings beim Start des Skripts folgende Warnung:
                            "script.js.common.Licht.Lightcontrol: More than 100 subscriptions registered. Check your script!"
                            Hat jemand eine Idee was da genau bemängelt wird?

                            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

                            793

                            Online

                            32.4k

                            Benutzer

                            81.5k

                            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