mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
update philipshue
This commit is contained in:
parent
59ce0a640e
commit
7f8ad86bdd
@ -352,6 +352,7 @@
|
|||||||
"edt_dev_spec_lightid_itemtitle" : "ID",
|
"edt_dev_spec_lightid_itemtitle" : "ID",
|
||||||
"edt_dev_spec_transistionTime_title" : "Übergangszeit",
|
"edt_dev_spec_transistionTime_title" : "Übergangszeit",
|
||||||
"edt_dev_spec_switchOffOnBlack_title" : "Aus bei schwarz",
|
"edt_dev_spec_switchOffOnBlack_title" : "Aus bei schwarz",
|
||||||
|
"edt_dev_spec_brightnessFactor_title" : "Helligkeitsfaktor",
|
||||||
"edt_dev_spec_uid_title" : "UID",
|
"edt_dev_spec_uid_title" : "UID",
|
||||||
"edt_dev_spec_intervall_title" : "Intervall",
|
"edt_dev_spec_intervall_title" : "Intervall",
|
||||||
"edt_dev_spec_latchtime_title" : "Sperrzeit",
|
"edt_dev_spec_latchtime_title" : "Sperrzeit",
|
||||||
|
@ -353,6 +353,7 @@
|
|||||||
"edt_dev_spec_lightid_itemtitle" : "ID",
|
"edt_dev_spec_lightid_itemtitle" : "ID",
|
||||||
"edt_dev_spec_transistionTime_title" : "Transistion time",
|
"edt_dev_spec_transistionTime_title" : "Transistion time",
|
||||||
"edt_dev_spec_switchOffOnBlack_title" : "Switch off on black",
|
"edt_dev_spec_switchOffOnBlack_title" : "Switch off on black",
|
||||||
|
"edt_dev_spec_brightnessFactor_title" : "Brightness factor",
|
||||||
"edt_dev_spec_uid_title" : "UID",
|
"edt_dev_spec_uid_title" : "UID",
|
||||||
"edt_dev_spec_intervall_title" : "Intervall",
|
"edt_dev_spec_intervall_title" : "Intervall",
|
||||||
"edt_dev_spec_latchtime_title" : "Latch time",
|
"edt_dev_spec_latchtime_title" : "Latch time",
|
||||||
|
@ -328,7 +328,7 @@ bool LedDevicePhilipsHue::init(const QJsonObject &deviceConfig)
|
|||||||
bridge =
|
bridge =
|
||||||
{ _log, manager, deviceConfig["output"].toString(), deviceConfig["username"].toString("newdeveloper")};
|
{ _log, manager, deviceConfig["output"].toString(), deviceConfig["username"].toString("newdeveloper")};
|
||||||
switchOffOnBlack = deviceConfig["switchOffOnBlack"].toBool(true);
|
switchOffOnBlack = deviceConfig["switchOffOnBlack"].toBool(true);
|
||||||
brightnessFactor = (float) deviceConfig["transitiontime"].toDouble(1.0);
|
brightnessFactor = (float) deviceConfig["brightnessFactor"].toDouble(1.0);
|
||||||
transitionTime = deviceConfig["transitiontime"].toInt(1);
|
transitionTime = deviceConfig["transitiontime"].toInt(1);
|
||||||
lightIds.clear();
|
lightIds.clear();
|
||||||
QJsonArray lArray = deviceConfig["lightIds"].toArray();
|
QJsonArray lArray = deviceConfig["lightIds"].toArray();
|
||||||
|
@ -13,6 +13,27 @@
|
|||||||
"default": "newdeveloper",
|
"default": "newdeveloper",
|
||||||
"propertyOrder" : 2
|
"propertyOrder" : 2
|
||||||
},
|
},
|
||||||
|
"transitiontime": {
|
||||||
|
"type": "integer",
|
||||||
|
"title":"edt_dev_spec_transistionTime_title",
|
||||||
|
"default" : 1,
|
||||||
|
"append" : "x100ms",
|
||||||
|
"propertyOrder" : 3
|
||||||
|
},
|
||||||
|
"switchOffOnBlack": {
|
||||||
|
"type": "boolean",
|
||||||
|
"title":"edt_dev_spec_switchOffOnBlack_title",
|
||||||
|
"default" : true,
|
||||||
|
"propertyOrder" : 4
|
||||||
|
},
|
||||||
|
"brightnessFactor": {
|
||||||
|
"type": "number",
|
||||||
|
"title":"edt_dev_spec_brightnessFactor_title",
|
||||||
|
"default" : 1.0,
|
||||||
|
"minimum" : 0.0,
|
||||||
|
"maximum" : 1.0,
|
||||||
|
"propertyOrder" : 5
|
||||||
|
},
|
||||||
"lightIds": {
|
"lightIds": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"title":"edt_dev_spec_lightid_title",
|
"title":"edt_dev_spec_lightid_title",
|
||||||
@ -20,25 +41,6 @@
|
|||||||
"type" : "integer",
|
"type" : "integer",
|
||||||
"title" : "edt_dev_spec_lightid_itemtitle"
|
"title" : "edt_dev_spec_lightid_itemtitle"
|
||||||
},
|
},
|
||||||
"propertyOrder" : 3
|
|
||||||
},
|
|
||||||
"transitiontime": {
|
|
||||||
"type": "integer",
|
|
||||||
"title":"edt_dev_spec_transistionTime_title",
|
|
||||||
"default" : 1,
|
|
||||||
"append" : "x100ms",
|
|
||||||
"propertyOrder" : 4
|
|
||||||
},
|
|
||||||
"switchOffOnBlack": {
|
|
||||||
"type": "boolean",
|
|
||||||
"title":"edt_dev_spec_switchOffOnBlack_title",
|
|
||||||
"default" : true,
|
|
||||||
"propertyOrder" : 5
|
|
||||||
},
|
|
||||||
"brightnessFactor": {
|
|
||||||
"type": "number",
|
|
||||||
"title":"edt_dev_spec_brightnessFactor_title",
|
|
||||||
"default" : 1.0,
|
|
||||||
"propertyOrder" : 6
|
"propertyOrder" : 6
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user