Giter Club home page Giter Club logo

iobroker.lightcontrol's Issues

Ct converting not working correctly

Describe the bug
the function convertCt not working correctly.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '....'
  4. See error

Expected behavior

function kelvinToRange(kelvin, outMinCt, outMaxCt) {
	const minCt = 2700;
	const maxCt = 6500;
  if (kelvin < minCt) {
    return outMinCt; // below the specified range
  } else if (kelvin > maxCt) {
    return outMaxCt; // above the specified range
  } else {
    const percentValue = (kelvin - minCt) / (maxCt - minCt);
    const rangeValue = percentValue * (outMaxCt - outMinCt) + outMinCt; // map the range to the output range
    return Math.min(Math.max(rangeValue, outMinCt), outMaxCt); // constrain the range to outMinCt and outMaxCt
  }
}

const kelvinValue = 2800; // replace this with your actual Kelvin value
const outMinCt = 2703;
const outMaxCt = 6530;
const rangeValue = kelvinToRange(kelvinValue, outMinCt, outMaxCt);
console.log(rangeValue); // output: 2753.7037

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Versions:

  • Adapter version:
  • JS-Controller version:
  • Node version:
  • Operating system:

Additional context
Add any other context about the problem here.

nur autoOffTimed alleine funktioniert nicht.

Erstmal: Super Projekt! Danke!

Habe Eltako/FUD14-Dimmer + MQTT im Einsatz. Der Dimmer wird für OFF auf 0% geregelt.
Wenn ich nun autoOnMotion und autoOffTimed auf enable=True setze, dann funktioniert alles ;-)

Ich möchte nun NUR autoOffTimed alleine (ohne autoOnMotion oder anderen Funktionen) mit noAutoOffWhenMotion verwenden, um die manuell angeschaltete Lampe nach einer Zeitspanne automatisch auszuschalten (zum Energie-Sparen).
Dies funktioniert leider nicht.

Manuell geschaltet Lampen erkenne ich per JS-Script (state-Änderungen).
Das JS-Scripts setzt eine Variable. Per Timer setze ich die Variable dann zurück, um einen PIR zu simulieren. (Das funktioniert alles!)
Die Variable habe ich als Pir-Sensor für lightcontrol konfiguriert.
isMotion wird laut log korrekt erkannt und nach einem Timeout auch wieder zurückgesetzt.
Leider wird das Licht nicht wieder ausgeschaltet.

Hinweis (falls das hilft):
Das Schalten des Dimmers über Datenpunkt power funtioniert nicht!
In main.js::Controller wird in Zeile 769 power abgefangen, obwohl der code ab Zeile 883 vorhanden ist.

Warum funktioniert es, wenn ich mit autoOnMotion das Licht anschalte, aber nicht, wenn ich einen PIR Sensor simuliere?

in der Anleitung steht:
Hinweis: Theoretisch können hier auch Schalter angegeben werden. Hauptsache es gibt für Ein/Aus unterschiedliche Werte. Jedoch verhält sich der Auschaltprozess je nach Einstellung. z.B. Licht geht aus nach 60 Sekunden

... ich scheidere leider an der Praxis ;-0

Wäre super, wenn das ginge.
Danke schon mal.

Unterstützung von Lampen mit HSL Farbraum

Ich habe hier das Ikea System im Einsatz. die Lampen werden nicht als RGB sondern als HSL angesprochen.
Es gibt also die Datenpunkte: Hue, Saturation, Lightness (bzw. Brighness)

image

Brightness und Saturation gibt es ja, wär toll wenn man auch den Hue-Wert (also den Farbwinkel) übergeben könnte.

Oder geht das bereits?

Ramp down doesn't switch off the lights - error in log

With ramp down is enabled and switch off the light group, the lights doesn't switch off, here is a bug see the logfile, please.
2023-01-03 07:23:08.300 - warn: lightcontrol.0 (158663) State "lightcontrol.0.tuya.0.bfca0ac8444651ebeeqcqy.20" has no existing object, this might lead to an error in future versions
Adapter Version 0.1.0, Node 16, NPM 8

Logfile:

`
2023-01-03 07:15:57.912 - info: lightcontrol.0 (158663) onObjectChange => Enable LightControl for : tuya.0.bfca0ac8444651ebeeqcqy.24-rgb
2023-01-03 07:16:19.141 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="color" NewVal="#22FFAA", OldVal=""
2023-01-03 07:16:32.295 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="actualLux" NewVal="4", OldVal="4"
2023-01-03 07:17:07.190 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="actualLux" NewVal="3", OldVal="3"
2023-01-03 07:17:27.136 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="actualLux" NewVal="4", OldVal="4"
2023-01-03 07:17:45.300 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="bri" NewVal="100", OldVal=""
2023-01-03 07:17:52.060 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="actualLux" NewVal="14", OldVal="14"
2023-01-03 07:18:08.040 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="color" NewVal="#11FFAA", OldVal=""
2023-01-03 07:18:16.995 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="actualLux" NewVal="5", OldVal="5"
2023-01-03 07:18:31.953 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="actualLux" NewVal="3", OldVal="3"
2023-01-03 07:18:42.465 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="ct" NewVal="4500", OldVal=""
2023-01-03 07:18:56.957 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="bri" NewVal="100", OldVal=""
2023-01-03 07:19:04.540 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="dimmDown" NewVal="true", OldVal=""
2023-01-03 07:19:04.546 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="bri" NewVal="90", OldVal=""
2023-01-03 07:19:06.854 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="actualLux" NewVal="14", OldVal="14"
2023-01-03 07:19:25.570 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="dimmUp" NewVal="true", OldVal=""
2023-01-03 07:19:25.575 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="bri" NewVal="100", OldVal=""
2023-01-03 07:19:49.914 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="rampOn.enabled" NewVal="true", OldVal=""
2023-01-03 07:20:04.107 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="rampOff.enabled" NewVal="true", OldVal=""
2023-01-03 07:20:14.873 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="power" NewVal="false", OldVal="true"
2023-01-03 07:20:14.880 - info: lightcontrol.0 (158663) Reaching powerOnAfterCare for Group="BueroBOG" bri="100" ct="4500" color="#11FFAA"
2023-01-03 07:20:24.882 - warn: lightcontrol.0 (158663) State "lightcontrol.0.tuya.0.bfca0ac8444651ebeeqcqy.20" has no existing object, this might lead to an error in future versions
2023-01-03 07:20:24.886 - warn: lightcontrol.0 (158663) State "lightcontrol.0.tuya.0.bff755bafd2a4ec063efix.20" has no existing object, this might lead to an error in future versions
2023-01-03 07:20:26.623 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="actualLux" NewVal="9", OldVal="9"
2023-01-03 07:20:41.580 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="actualLux" NewVal="4", OldVal="4"
2023-01-03 07:20:57.839 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="rampOff.switchOutletsLast" NewVal="true", OldVal=""
2023-01-03 07:21:08.494 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="power" NewVal="true", OldVal="false"
2023-01-03 07:21:08.513 - info: lightcontrol.0 (158663) Reaching powerOnAfterCare for Group="BueroBOG" bri="100" ct="4500" color="#11FFAA"
2023-01-03 07:21:16.474 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="actualLux" NewVal="6", OldVal="6"
2023-01-03 07:21:31.434 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="actualLux" NewVal="15", OldVal="15"
2023-01-03 07:21:35.003 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="power" NewVal="false", OldVal="true"
2023-01-03 07:21:35.011 - info: lightcontrol.0 (158663) Reaching powerOnAfterCare for Group="BueroBOG" bri="100" ct="4500" color="#11FFAA"
2023-01-03 07:21:46.396 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="actualLux" NewVal="9", OldVal="9"
2023-01-03 07:22:01.352 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="actualLux" NewVal="4", OldVal="4"
2023-01-03 07:22:08.130 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="rampOn.switchOutletsLast" NewVal="false", OldVal=""
2023-01-03 07:22:13.745 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="rampOff.switchOutletsLast" NewVal="false", OldVal=""
2023-01-03 07:22:35.681 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="power" NewVal="true", OldVal="false"
2023-01-03 07:22:35.699 - info: lightcontrol.0 (158663) Reaching powerOnAfterCare for Group="BueroBOG" bri="100" ct="4500" color="#11FFAA"
2023-01-03 07:22:46.211 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="actualLux" NewVal="8", OldVal="8"
2023-01-03 07:22:58.285 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="power" NewVal="false", OldVal="true"
2023-01-03 07:22:58.294 - info: lightcontrol.0 (158663) Reaching powerOnAfterCare for Group="BueroBOG" bri="100" ct="4500" color="#11FFAA"
2023-01-03 07:23:01.172 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="actualLux" NewVal="14", OldVal="14"
2023-01-03 07:23:08.300 - warn: lightcontrol.0 (158663) State "lightcontrol.0.tuya.0.bfca0ac8444651ebeeqcqy.20" has no existing object, this might lead to an error in future versions
2023-01-03 07:23:08.302 - warn: lightcontrol.0 (158663) State "lightcontrol.0.tuya.0.bff755bafd2a4ec063efix.20" has no existing object, this might lead to an error in future versions

2023-01-03 07:23:16.126 - info: lightcontrol.0 (158663) Reaching Controller, Group="BueroBOG" Property="actualLux" NewVal="4", OldVal="4"

`

Homekit Farbtemperatur auswahl

Für Leuchtmittel unter Homekit funktioniert die lineare Skalierung nur mit Abweichung, da dort anders gerechnet wird.

The corresponding value is an integer representing the color temperature in micro-reciprocal degrees (mired), which is 1,000,000 divided by the color temperature in kelvins. For example, to emulate a traditional tungsten light with a color temperature of 3200 K, use a mired value of about 312.

Wäre es möglich bei der Auswahl "Verhalten der Farbtemperatur" noch z.B. Homekit o.ä. hinzuzufügen? Min und Max müssten aber bleiben, da es auch Leuchtmittel gibt die von Apples min und max abweichen.

Error: TypeError: this._LightGroups is not iterable

Describe the bug
Error: TypeError: this._LightGroups is not iterable

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.
Xnip2022-12-23_20-31-10
Versions:

  • Adapter version:
  • JS-Controller version:
  • Node version:
  • Operating system:

Additional context
Add any other context about the problem here.

DeviceSwitch shows Warning by Ramping

Describe the bug
[ DeviceSwitch ] Can't switch to: true. No power & brightness state defined for Light = "Licht1" in Group = "Kind1"

To Reproduce
At RampUp or RampDown.

Expected behavior
I Think, it's a logging failure or a bad checking.

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Versions:

  • Adapter version:
  • JS-Controller version:
  • Node version:
  • Operating system:

Additional context
Add any other context about the problem here.

Motion Sensor and RampOff does not work like it should

Example: I have a bulb and a aqara motion sensor. I have RampOff and AutoOnMotion activated. When the motion seonsor triggers the bulb is switched on. After the defined time the RampOff starts, if in this time a new trigger from the motion sensor comes the RampOff will not break, so there was motion but the bulb is off.

The new trigger from the motion sensor should stop the RampOff and switch the bulb to the defined brightness.

Object-ID "adapter.GlobalSettings.IsPresenceDp" not exits. Please check your config! (Error: The id is empty! Please provide a valid id.)

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.
Xnip2022-12-23_20-31-10

Versions:

  • Adapter version:
  • JS-Controller version:
  • Node version:
  • Operating system:

Additional context
Add any other context about the problem here.

Lampe lässt sich nicht ausschalten

Describe the bug
Meine Lampe lässt sich nur einschalten, aber nicht ausschalten.
Scheinbar liegt hier das Problem.

State value to set for "zigbee.0.0123456789b1a483.state" has to be type "boolean" but received type "string"

Jeder String der bei dem State landet, schaltet die Lampe ein.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Versions:

  • Adapter version:
  • JS-Controller version:
  • Node version:
  • Operating system:

Additional context
Add any other context about the problem here.

nur Power ab 2. Lampe

Describe the bug
Datenpunkte lassen sich nicht aktivieren, nur Power ist möglich ab 2. Lampe

To Reproduce
Steps to reproduce the behavior:
Gruppe anlegen
2 Lampen hinzufügen
Helligkeit bei 1. Lampe anklicken -> geht
Helligkeit bei 2. Lampe anklicken -> lässt sich nicht aktivieren

Expected behavior
Jeder Datenpunkt ist bei jeder Lampe aktivierbar

Versions:

  • Adapter version: 0.0.5
  • JS-Controller version: 4.0.23
  • Node version: v16.16.0
  • Operating system: Ubuntu 20.04.4 LTS

Ausschaltwert wird überschrieben

Wenn ich bei den Lampeneinstellungen einen Einschaltwert true eingebe und einen Auschaltwert false,
dann die config speichere und schließe und danach wieder öffne, steht in beiden Einstellungen ein true.

Ramping with directly transition time of the lamp

Describe the bug

Ramping with directly transition time of the lamp if available

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Versions:

  • Adapter version:
  • JS-Controller version:
  • Node version:
  • Operating system:

Additional context
Add any other context about the problem here.

Umbenennen von Lampen

Describe the bug
Wenn man bei mehreren Lampe eine umbenennt werden alle umbenannt

To Reproduce
2 Lampen in einer Gruppe mit unterschiedlichen Namen anlegen (Decke_1 und Decke_2)
beliebige Lampe umbenennen

Versions:

  • Adapter version: 0.0.5
  • JS-Controller version: 4.0.23
  • Node version: v16.16.0
  • Operating system: Ubuntu 20.04.4 LTS

min Wert wird nicht korrekt gesetzt

Describe the bug
image

Expected behavior
Wert aus den Einstellungen wird nicht übernommen
image

Screenshots & Logfiles
{ "type": "state", "common": { "read": true, "write": true, "name": { "en": "Colortemperature", "de": "Farbtemperatur", "ru": "Цветная температура", "pt": "Temperatura de cor", "nl": "Colortemperatuur", "fr": "Colortemperature", "it": "Coloratemperature", "es": "Colortemperatura", "pl": "Colortemperatura", "uk": "Кольори", "zh-cn": "法定人数" }, "type": "number", "role": "level.color.temperature", "def": 3300, "min": 2100, "max": 6500, "unit": "K" }, "native": {}, "_id": "lightcontrol.0.Schlafzimmer.ct", "acl": { "object": 1636, "state": 1636, "owner": "system.user.admin", "ownerGroup": "system.group.administrator" }, "from": "system.adapter.admin.0", "user": "system.user.eistee", "ts": 1688502545739 }

Versions:

  • Adapter version: 0.2.17
  • JS-Controller version: 5.0.6
  • Node version: 18.16.1
  • Operating system: debian

Which data points for Hue devices

Hello,
I try in vain to insert a Hue bulb.
No matter what I do, the light comes on when there is movement, but the color/temperature is not right.

Can someone tell me the correct data points and what settings they need to be provided with?

In Advance thank you

hue

Error if no Global Lux Sensor defined

Describe the bug
Error if no Global Lux Sensor defined

To Reproduce
Steps to reproduce the behavior:

  1. Install Adapter2.
  2. Create one Group without individual lux sensor2.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.
Xnip2022-12-23_20-31-10

Versions:

  • Adapter version:
  • JS-Controller version:
  • Node version:
  • Operating system:

Additional context
Add any other context about the problem here.

Bei 2 Lampen wird nur eine geschaltet

Describe the bug
Beim erstellen der Lightgroup überschreibt die 2. Lampe die 1.

To Reproduce
Steps to reproduce the behavior:

  1. Lampe hinzufügen
    Lightgroup im Log enthält nur die 2. Lampe
    Beim auslösen der Bewegung wird nur die zuletzt hinzugefügte geschaltet

Expected behavior
beide Lampen werden geschaltet

Screenshots & Logfiles

vom dem hinzufügen der 2. Lampe (Badezimmer_Dusche vorhanden)

{"HWR":{"description":"HWR","LuxSensor":"alias.0.Helligkeiten.Helligkeit_Aussen.ACTUAL","lights":[{"description":"HWR Decke","power":{"oid":"alias.0.Beleuchtung.HWR.HWR_Decke.SET","onVal":true,"offVal":false}}],"sensors":[{"oid":"alias.0.Bewegungsmelder.HWR_Bewegungsmelder.ACTUAL","motionVal":true,"noMotionVal":false,"isMotion":true}],"actualLux":251.1,"powerNewVal":true,"power":true,"dimmUp":false,"dimmDown":false,"dimmAmount":10,"bri":100,"ct":3300,"color":"#FFFFFF","adaptiveBri":false,"adaptiveCt":false,"adaptiveCtMode":"solar","adaptiveCtTime":"06:00","powerCleaningLight":false,"isMotion":true,"autoOffTimed":{"enabled":true,"autoOffTime":125,"noAutoOffWhenMotion":true,"noticeEnabled":false,"noticeBri":10,"noticeTime":10},"autoOffLux":{"enabled":true,"minLux":500,"dailyLock":false,"operator":">","dailyLockCounter":0},"autoOnMotion":{"enabled":true,"minLux":300,"bri":0,"color":""},"autoOnLux":{"enabled":false,"minLux":50,"bri":0,"color":"","switchOnlyWhenPresence":true,"switchOnlyWhenNoPresence":false,"dailyLock":false,"operator":"<","dailyLockCounter":0},"autoOnPresenceIncrease":{"enabled":false,"minLux":50,"bri":0,"color":""},"rampOn":{"enabled":false,"time":10,"switchOutletsLast":true},"rampOff":{"enabled":false,"time":10,"switchOutletsLast":false},"blink":{"enabled":false,"frequency":1,"blinks":3,"bri":100,"color":"#FF0000"}},"EG Badezimmer":{"description":"EG Badezimmer","LuxSensor":"alias.0.Helligkeiten.Helligkeit_Aussen.ACTUAL","lights":[{"description":"Badezimmer_Dusche","power":{"oid":"alias.0.Beleuchtung.Badezimmer_unten.Dusche.SET","onVal":true,"offVal":false}}],"sensors":[{"oid":"alias.0.Bewegungsmelder.Badezimmer_unten_Bewegungsmelder.ACTUAL","motionVal":true,"noMotionVal":false,"isMotion":false}],"actualLux":251.1,"powerNewVal":false,"power":false,"dimmUp":false,"dimmDown":false,"dimmAmount":10,"bri":100,"ct":3300,"color":"#FFFFFF","adaptiveBri":false,"adaptiveCt":false,"adaptiveCtMode":"solar","adaptiveCtTime":"06:00","powerCleaningLight":false,"isMotion":false,"autoOffTimed":{"enabled":true,"autoOffTime":300,"noAutoOffWhenMotion":true,"noticeEnabled":false,"noticeBri":10,"noticeTime":10},"autoOffLux":{"enabled":false,"minLux":500,"dailyLock":false,"operator":">","dailyLockCounter":0},"autoOnMotion":{"enabled":true,"minLux":300,"bri":0,"color":""},"autoOnLux":{"enabled":false,"minLux":50,"bri":0,"color":"FFFFFF","switchOnlyWhenPresence":true,"switchOnlyWhenNoPresence":false,"dailyLock":false,"operator":"<","dailyLockCounter":0},"autoOnPresenceIncrease":{"enabled":false,"minLux":50,"bri":0,"color":""},"rampOn":{"enabled":false,"time":10,"switchOutletsLast":true},"rampOff":{"enabled":false,"time":10,"switchOutletsLast":false},"blink":{"enabled":false,"frequency":1,"blinks":3,"bri":100,"color":"#FF0000"}},"All":{"powerNewVal":false,"power":false,"anyOn":true}}

nach dem hinzufügen der 2. Lampe (Badezimmer_Decke hizugefügt, Badezimmer_Dusche verschwunden)

{"HWR":{"description":"HWR","LuxSensor":"alias.0.Helligkeiten.Helligkeit_Aussen.ACTUAL","lights":[{"description":"HWR Decke","power":{"oid":"alias.0.Beleuchtung.HWR.HWR_Decke.SET","onVal":true,"offVal":false}}],"sensors":[{"oid":"alias.0.Bewegungsmelder.HWR_Bewegungsmelder.ACTUAL","motionVal":true,"noMotionVal":false,"isMotion":false}],"actualLux":251.1,"powerNewVal":true,"power":true,"dimmUp":false,"dimmDown":false,"dimmAmount":10,"bri":100,"ct":3300,"color":"#FFFFFF","adaptiveBri":false,"adaptiveCt":false,"adaptiveCtMode":"solar","adaptiveCtTime":"06:00","powerCleaningLight":false,"isMotion":false,"autoOffTimed":{"enabled":true,"autoOffTime":125,"noAutoOffWhenMotion":true,"noticeEnabled":false,"noticeBri":10,"noticeTime":10},"autoOffLux":{"enabled":true,"minLux":500,"dailyLock":false,"operator":">","dailyLockCounter":0},"autoOnMotion":{"enabled":true,"minLux":300,"bri":0,"color":""},"autoOnLux":{"enabled":false,"minLux":50,"bri":0,"color":"","switchOnlyWhenPresence":true,"switchOnlyWhenNoPresence":false,"dailyLock":false,"operator":"<","dailyLockCounter":0},"autoOnPresenceIncrease":{"enabled":false,"minLux":50,"bri":0,"color":""},"rampOn":{"enabled":false,"time":10,"switchOutletsLast":true},"rampOff":{"enabled":false,"time":10,"switchOutletsLast":false},"blink":{"enabled":false,"frequency":1,"blinks":3,"bri":100,"color":"#FF0000"}},"EG Badezimmer":{"description":"EG Badezimmer","LuxSensor":"alias.0.Helligkeiten.Helligkeit_Aussen.ACTUAL","lights":[{"description":"Badezimmer_Decke","power":{"oid":"alias.0.Beleuchtung.Badezimmer_unten.Decke.SET","onVal":true,"offVal":false}}],"sensors":[{"oid":"alias.0.Bewegungsmelder.Badezimmer_unten_Bewegungsmelder.ACTUAL","motionVal":true,"noMotionVal":false,"isMotion":false}],"actualLux":251.1,"powerNewVal":false,"power":false,"dimmUp":false,"dimmDown":false,"dimmAmount":10,"bri":100,"ct":3300,"color":"#FFFFFF","adaptiveBri":false,"adaptiveCt":false,"adaptiveCtMode":"solar","adaptiveCtTime":"06:00","powerCleaningLight":false,"isMotion":false,"autoOffTimed":{"enabled":true,"autoOffTime":300,"noAutoOffWhenMotion":true,"noticeEnabled":false,"noticeBri":10,"noticeTime":10},"autoOffLux":{"enabled":false,"minLux":500,"dailyLock":false,"operator":">","dailyLockCounter":0},"autoOnMotion":{"enabled":true,"minLux":300,"bri":0,"color":""},"autoOnLux":{"enabled":false,"minLux":50,"bri":0,"color":"FFFFFF","switchOnlyWhenPresence":true,"switchOnlyWhenNoPresence":false,"dailyLock":false,"operator":"<","dailyLockCounter":0},"autoOnPresenceIncrease":{"enabled":false,"minLux":50,"bri":0,"color":""},"rampOn":{"enabled":false,"time":10,"switchOutletsLast":true},"rampOff":{"enabled":false,"time":10,"switchOutletsLast":false},"blink":{"enabled":false,"frequency":1,"blinks":3,"bri":100,"color":"#FF0000"}},"All":{"powerNewVal":false,"power":false,"anyOn":true}}

Versions:

  • Adapter version:
  • JS-Controller version:
  • Node version:
  • Operating system:

Additional context
Add any other context about the problem here.

request neuer Datenpunkt (zb isMotionAny)

Ein neuer Datenpunkt für Gruppen mit mehreren Bewegungsmeldern wäre schön. Damit man ohne zusätzliches Skript Lampen schalten kann, wenn nur ein Bewegungsmelder auslöst. Da der Datenpunkt isMotion nur auslöst, wenn alle Bewegungsmelder der Grupper aktiv sind.

Zb wenn man an einer Treppe onen und unten einen Bewegungsmelder hat, und die Lampe(n) schalten will egal welcher der beiden Bewegungsmelder auslöst.

Wert für Helligkeitskorrektur wird falsch interpretiert

Hell/Dunkel Wert für Helligkeitskorrektur soll laut der Beschreibung ein Wert in Prozent sein. Stattdessen wird dieser Wert aber als 100% genommen. Heißt wenn ich min auf 0 und max auf 254 stelle und in Wert für Helligkeitskorrektur eine 100 eintrage dann wird bei 100% Helligkeit der Datenpunkt auf 100 statt auf 254 gesteuert. Trage ich 254 in Wert für Helligkeitskorrektur ein entsprechen 100% 254.

Lightname not fill out automatically

Describe the bug
At CustomConfig the Lightname will not filled out automatically if it's exist

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '....'
  4. See error

Expected behavior
It's a problem of customJson

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Versions:

  • Adapter version: 0.2.0
  • JS-Controller version:
  • Node version:
  • Operating system:

Additional context
Add any other context about the problem here.

2. Lampe nur Power möglich und umbenennen

Neue Gruppe erstellt,

  1. Lampe mit "Decke 1" erstellt.
    Power, Helligkeit und Farbtemperatur hinzugefügt.
    Sensor hinzugefügt
  2. Lampe mit "Decke 2" erstellt
    Power lässt sich hinzufügen, die restlichen Datenpunkte lassen sich nicht aktivieren

Weiteres Problem.
Habe dann versucht die 2. Lampe umzubenennen in Decke_2, daraufhin waren beide Lampen ohne Name
config

Name des Lichts sollte ein Dropdown haben

Describe the bug
Name des Licht ist nur ein Textfeld. Dies führt zu Tippfehlern oder Problemen mit Groß- und Kleinschreibung.

Expected behavior
Name des Lichts sollte ein Dropdown Auswahlfeld haben um bereits in der Gruppe verwendete Namen des Lichts auszuwählen. Damit werden fehlerhafte Eingaben vermieden. Noch besser währe es die Namen innerhalb der Gruppe festzulegen so das man keinen Namen mehr in das Feld "Name des Licht" eintippen kann sondern nur aus den vorher definierten Namen auswählen kann.

Umkehrung der Farbtemperatur berechnung ohne Funktion

Describe the bug
Ändern des Verhaltens der Farbtemperatur funktioniert nicht.

Expected behavior
A clear and concise description of what you expected to happen.
Das umschalten zwischen "Warmweiß bis Kaltweiß" und "Tageslicht bis Warmweiß" sollte min und max umdrehen.

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Im Objekt der Lampe unter "ct" fehlt "CtReverse".
{ "description": "Schreibtisch", "power": { "oid": "homekit-controller.0.IP-15:1D:83:50:AA:EA.1.lightbulb-11.on", "onVal": true, "offVal": false }, "bri": { "oid": "homekit-controller.0.IP-15:1D:83:50:AA:EA.1.lightbulb-11.brightness", "minVal": 30, "maxVal": 100, "defaultBri": 100, "useBri": false }, "ct": { "oid": "homekit-controller.0.IP-15:1D:83:50:AA:EA.1.lightbulb-11.color-temperature", "minVal": 208, "maxVal": 400, "sendCt": true } }

Versions:

  • Adapter version: v0.2.16
  • JS-Controller version:
  • Node version:
  • Operating system:

Additional context
Add any other context about the problem here.

Not able to change the blink frequency

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Versions:

  • Adapter version:
  • JS-Controller version:
  • Node version:
  • Operating system:

Additional context
Add any other context about the problem here.

Scene Datenpunkt

Für HUE Lampen/Gruppen/Räume eine Möglichkeit eine Scene vorzugeben. Quasi ein String Datenpunkt zuordnen der über die Gruppe dann bei allen Leuchtmitteln beschaltet werden kann. Evtl. unterstützen auch andere Hersteller Scenen die über deren Apps im Gateway anlegbar sind.

PowerCleaningLight Error

Describe the bug
GroupPowerCleaningLightOnOff => TypeError: Cannot read properties of undefined (reading 'oid')
Also Power State is not sync with powerCleaning state
v0.2.0

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Versions:

  • Adapter version:
  • JS-Controller version:
  • Node version:
  • Operating system:

Additional context
Add any other context about the problem here.

Fragen und Diskusion :-)

Hi,

ist es möglich einen support für einen Scene Datenpunkt einzufügen. Damit könnte man sich über die HUE App Scenen anlegen und diese über den Namen aufrufen statt RGB bzw. Helligkeits- oder Farbwerte zu setzen. Quasi nur einen String an einen Datenpunkt senden wenn dieser in der angelegten Gruppe gesetzt wird.

Des weiteren frage ich mich wozu "Name des Lichts" dient. Die Datenpunkte werden doch über die Licht Gruppenzuordnung gesteuert so das es theoretisch auch möglich ist HUE Gruppen oder Räume zu steuern und nicht jedes Leuchtmittel einzeln gesteuert werden muss sofern diese alle gleich gesteuert werden sollen. Evtl. könnte man hier in der Hilfe noch für Klarheit sorgen. Bzw. dieses unnötige Textfeld entfernen sofern es unnötig ist.

Dann können die HUE Lampen 2000-6500 kelvin. Einstellbar ist aber nur 2700-6500 kelvin. Warum gibt es hier eine Begrenzung (Adaptereinstellungen -> Allgemeine Einstellungen -> Einstellungen für Farbtemperatur)?

Evtl. könnten wir hier kurz diskutieren und dann sich daraus resultierende einzelne Issues erstellen.

Ich hatte mir bisher eine recht komplexe Lichtsteuerung mit Blockly gebaut und bin gerade bei dies auf diesen Adapter umzustellen.

Gruß Alina

Licht State Objekt wird nicht True, obwohl Gruppe isMotion auf True geht

Ich habe einmal einen Bewegungsmelder und
2024-02-25_17-17-58_objects_-iob0–_Mozilla_Firefox

einmal den State eines Lichts mit einer Gruppe verknüpft.

2024-02-25_17-17-33_objects_-iob0–_Mozilla_Firefox

Doch aus irgend einem Grund wird der Objekt-Status des Lichts nicht auf True gesetzt wenn der BWM auslöst.

2024-02-25_17-19-17_objects_-iob0–_Mozilla_Firefox

Im Log wird auch angezeigt, dass der BWM die Gruppe eigentlich einschaltet, trotzdem wird der Status des Lichts nicht True. Setze ich diesen manuell, setze ich diesen manuell, dann wird er sofort True.

lightcontrol.0 | 2024-02-25 17:18:58.394 | info | [ Controller ] Reaching, Group="Kueche1" Property="isMotion" NewVal="true", OldVal=true"
lightcontrol.0 | 2024-02-25 17:17:05.540 | info | [ Controller ] Reaching, Group="Kueche1" Property="isMotion" NewVal="false", OldVal=false"
lightcontrol.0 | 2024-02-25 17:16:33.423 | info | [ Controller ] Reaching, Group="Kueche1" Property="isMotion" NewVal="true", OldVal=true"
lightcontrol.0 | 2024-02-25 17:13:25.315 | info | [ Controller ] Reaching, Group="Kueche1" Property="isMotion" NewVal="false", OldVal=false"
lightcontrol.0 | 2024-02-25 17:12:23.603 | info | [ Controller ] Reaching, Group="Kueche1" Property="isMotion" NewVal="true", OldVal=true"

Wie könnte ich hier noch weiter Fehler suchen / debuggen?

Checkbox an falscher Stelle

Describe the bug
Checkbox für Farb-Temperatur wir bei Switch angezeigt

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '....'
  4. See error

Expected behavior
muss hier ausgeblendet werden

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.
Xnip2022-12-24_14-16-08

Versions:

  • Adapter version:
  • JS-Controller version:
  • Node version:
  • Operating system:

Additional context
Add any other context about the problem here.

autoOnMotion.enabled = false

autoOnMotion.enabled ist auf false gestellt und trotzdem schaltet der Bewegungsmelder die Lampe an. Ich musste gestern Abend den Adapter stoppen um mein Schlafzimmer dunkel zu bekommen...

Es ist nicht eine autoOn... funktion enabled. Alles auf false

Adapter 0.3.0

Sonnenauf-/untergang Funktion

Ich hatte meine Lampen so programmiert das diese ab einem bestimmten Zeitpunkt anfangen langsam heller zu werden bis ein 2. Zeitpunkt erreicht ist. oder anders herum ab einem Zeitpunkt bis zu einem 2. Zeitpunkt dunkler werden.

image
image

Update stable version in repo from 0.4.0 to 0.5.0

Think about update stable version to 0.5.0

Version: stable=0.4.0 (213 days old) => latest=0.5.0 (15 days old)
Installs: stable=267 (75.64%), latest=58 (16.43%), total=353

Click to use developer portal
Click to edit

Note: This is an automatically generated message and not personally authored by bluefox!
Do not close this issue manually as a new issue will be created if condition for update still exists
@mcm1957 for evidence

Blinking also starts on "enable" transition from true->false

From my understanding the blinking should only start when the enable state gets set to true, but not when it gets set to false.

To Reproduce
Change the enable state from true to false.

Expected behavior
Blinking should not start.
Maybe it would also be a good idea to set the enable state back to false when the blinking is finished.

Versions:

  • Adapter version: 0.0.4

Feature Request: Occupancy / Motion trigger by door contact

I have there a SONOFF SNZB-04 sensor at the door of the living room.

It would be good if its openend status could trigger the occupancy / motion status of the light group.
This would allow to turn on the light as soon as the door gets openend, even before the motion sensor in the room detects a movement, which could take some time, depending on the position and type of the sensor.
The current sensor assignment will not work if noAutoOffWhenMotion is set to true, since if the door stays open, then openend status stays true, even the people already left the room, means only a raising (or falling, maybe depending on the sensor type) edge should trigger to turn on the group.

Maybe to split it up to two sensor types, like motion/presense sensors and door contacts/switches/buttons.
Could be related to #63

Transmission Time für Phillips HUE

Phillips HUE arbeitet mit zehntel Sekunden. daher passt die Auswahl mit Sekunden und Millisekunden nicht und die Funktion ist nicht mit Phillips HUE kompatibel.

Wert 10 = 1sek
Wert 600 = 1min
Wert 36000 = 1std
usw.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.