Skip to content

Commit

Permalink
Update gradient lights
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriksen-mark committed Jan 10, 2025
1 parent c195967 commit a0f1584
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions BridgeEmulator/flaskUI/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def get_light_types():
bridgeConfig["lights"][lightId].modelid = modelId
bridgeConfig["lights"][lightId].state = lightTypes[modelId]["state"]
bridgeConfig["lights"][lightId].config = lightTypes[modelId]["config"]
if modelId in ["LCX002", "915005987201", "LCX004", "LCX006"]:
bridgeConfig["lights"][lightId].protocol_cfg["points_capable"] = 5
return "success"

@core.route('/tradfri', methods=['POST'])
Expand Down
2 changes: 1 addition & 1 deletion BridgeEmulator/lights/light_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
lightTypes["LCX006"] = {"v1_static": {"type": "Extended color light", "manufacturername": "Signify Netherlands B.V.", "productname": "Hue gradient lightstrip","swversion": "1.94.2","swconfigid": "DC0A18AF","productid": "4422-9482-0441_HG01_PSU03"}}
lightTypes["LCX006"]["v1_static"]["swupdate"] = {"state": "noupdates","lastinstall": "2022-01-13T22:54:51"}
lightTypes["LCX006"]["v1_static"]["capabilities"] = {"certified": True,"control": {"mindimlevel": 100,"maxlumen": 1600,"colorgamuttype": "C","colorgamut": [[0.6915,0.3083],[0.1700,0.7000],[0.1532,0.0475]],"ct": {"min": 153,"max": 500}},"streaming": {"renderer": True,"proxy": True}}
lightTypes["LCX006"]["device"] = {"certified": True,"hardware_platform_type": "100b-118","manufacturer_name": "Signify Netherlands B.V.","model_id": "LCX004","product_archetype": "hue_lightstrip","product_name": "Hue gradient lightstrip","software_version": "1.94.2"}
lightTypes["LCX006"]["device"] = {"certified": True,"hardware_platform_type": "100b-118","manufacturer_name": "Signify Netherlands B.V.","model_id": "LCX006","product_archetype": "hue_lightstrip","product_name": "Hue gradient lightstrip","software_version": "1.94.2"}
lightTypes["LCX006"]["state"] = {"on": False, "bri": 254,"hue": 8417,"sat": 140,"effect": "none","xy": [0.0,0.0],"ct": 366,"alert": "select","colormode": "ct","mode": "homeautomation","reachable": True, "gradient": {"points": []}}
lightTypes["LCX006"]["config"] = {"archetype": "huelightstrip", "function": "mixed", "direction": "omnidirectional","startup": {"mode": "safety","configured": False}}
lightTypes["LCX006"]["dynamics"] = {"speed": 0, "speed_valid": False, "status": "none", "status_values": ["none", "dynamic_palette"]}
Expand Down
2 changes: 1 addition & 1 deletion BridgeEmulator/lights/protocols/native_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def discover(detectedLights, device_ips):
logging.info(device_data['name'])
lightName = generate_light_name(device_data['name'], x)
protocol_cfg = {"ip": ip, "version": device_data["version"], "type": device_data["type"], "light_nr": x, "mac": device_data["mac"]}
if device_data["modelid"] in ["LCX002", "915005987201", "LCX004"]:
if device_data["modelid"] in ["LCX002", "915005987201", "LCX004", "LCX006"]:
protocol_cfg["points_capable"] = 5
detectedLights.append({"protocol": protocol, "name": lightName, "modelid": device_data["modelid"], "protocol_cfg": protocol_cfg})

Expand Down

0 comments on commit a0f1584

Please sign in to comment.