schmakus / iobroker.lightcontrol Goto Github PK
View Code? Open in Web Editor NEWLight control of lamps from various manufacturers
License: MIT License
Light control of lamps from various manufacturers
License: MIT License
Describe the bug
the function convertCt not working correctly.
To Reproduce
Steps to reproduce the behavior:
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:
Additional context
Add any other context about the problem here.
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.
Version: stable=0.3.0 (60 days old) => latest=0.4.0 (30 days old)
Installs: stable=129 (55.84%), latest=55 (23.81%), total=231
Click to edit
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)
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?
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"
`
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.
Describe the bug
Error: TypeError: this._LightGroups is not iterable
To Reproduce
Steps to reproduce the behavior:
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:
Additional context
Add any other context about the problem here.
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:
Additional context
Add any other context about the problem here.
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.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
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:
Additional context
Add any other context about the problem here.
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:
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:
Additional context
Add any other context about the problem here.
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:
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.
Describe the bug
Ramping with directly transition time of the lamp if available
To Reproduce
Steps to reproduce the behavior:
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:
Additional context
Add any other context about the problem here.
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:
Expected behavior
Wert aus den Einstellungen wird nicht übernommen
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:
Describe the bug
Error if no Global Lux Sensor defined
To Reproduce
Steps to reproduce the behavior:
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:
Additional context
Add any other context about the problem here.
Describe the bug
Beim erstellen der Lightgroup überschreibt die 2. Lampe die 1.
To Reproduce
Steps to reproduce the behavior:
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:
Additional context
Add any other context about the problem here.
Please add the badge for Weblate translations to your adapter repository:
https://github.com/ioBrokerTranslator/doc#add-badge-to-readmemd
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.
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.
Describe the bug
At CustomConfig the Lightname will not filled out automatically if it's exist
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It's a problem of customJson
Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.
Versions:
Additional context
Add any other context about the problem here.
Neue Gruppe erstellt,
Weiteres Problem.
Habe dann versucht die 2. Lampe umzubenennen in Decke_2, daraufhin waren beide Lampen ohne Name
My workaround for unique table entries (field `name` in table should be unique):
"validator": "globalData.customApps.filter(app => app.name === data.name).length === 1",
Originally posted by @klein0r in ioBroker/ioBroker.admin#1801 (comment)
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.
Version: stable=0.2.16 (37 days old) => latest=0.2.17 (30 days old)
Installs: stable=64 (40.76%), latest=63 (40.13%), total=157
Click to edit
Das wäre ein schönes Feature ohne den ganzen Raum vorher über den Power DP einschalten zu müssen.
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:
Additional context
Add any other context about the problem here.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
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:
Additional context
Add any other context about the problem here.
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.
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:
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:
Additional context
Add any other context about the problem here.
Lable "light" is not added to i18n translation environment used at jsonCostum at select "type".
Please check.
Please see also:
ioBroker/ioBroker.admin#1948
I'll add this isse as the missing translation should be fixed at the adapter repo missing the translation not in two others ...
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
Ich habe einmal einen Bewegungsmelder und
einmal den State eines Lichts mit einer Gruppe verknüpft.
Doch aus irgend einem Grund wird der Objekt-Status des Lichts nicht auf True gesetzt wenn der BWM auslöst.
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?
Describe the bug
Checkbox für Farb-Temperatur wir bei Switch angezeigt
To Reproduce
Steps to reproduce the behavior:
Expected behavior
muss hier ausgeblendet werden
Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.
Versions:
Additional context
Add any other context about the problem here.
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
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
Nutze letzte Version.
Beim Einbinden eines Ikea Deckenfluter liegen aus Traedfri folgende DPs vor:
Beim Einrichten des CT DPs für lightcontrol kann man Werte zwischen 0-100 nutzen:
Im Lightcontrol DP Bereich wird aber nicht 0-100 genutzt sondern der Hex Wert bzw. die Farbtemperatur.
So lässt sich CT leider nicht steuern
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:
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.