Elgato Lighting Control v2.1

Description

This drop-in action can be used to control the settings of Elgato Lighting products.
It is tested with Keylight Air, Keylight Pro and Ring Light but it may work with others too.

Installation

  1. Copy the code block below into the Import Action Dialogue
U0JBRR+LCAAAAAAABADdWVlz4kgSft+I/Q8Kb2zsbkTLUTpKSBPRDwab06aHS4DW/VCXQI0OWgcYz85/35SEwYDt6aa7dzrWYRlUR1bml19mVZZ/++tfJOliJeLEi8KLXyTtXdHgBcsoTu3j5sALvSAL9u0X6FK91GXiL+fkUr3YjhIpgb7f8hd4DUkg8qE3/oykkdQRG9+bzVOpNifhTMTlJBhHsnQexfnIhojYJth17LW7UC+VXTMXCYu9ZbrtKsUlUjoXUiqCpYhJmsVCIiGXaJyvGIokkSJXOlIkea5B1M/CK7aVGWa+n3f9XtrFyYFdpBiWQMu/yxbpqavo9niBj0UMrmEiuyrWZZ2bWDZVDcnYYJSjik4MhT6tX0z7nIlMbNd+3i5CQn2Ry0zjTBz0PDA/46IeR0HTS9Io3sAgl/jJwagv9EIxdhZH2TIffJsP8cLZQS/x12STAE4vLRMD3FGwQ/Ckn0Uhy+JYhOlLvSn4CZQpMP14sOYp1kd4Hxh5bJ20ekac3egjAg3JYkufmbcSobQisZdjnhQUWmbJvOwOJMAvH7bYrnIiOBauABOZOFG46K79cn8/9gCndXJ/f+exOEoiN73s3gzv7+sxmLCO4sX9/Uq/RJca0hTr/j5IWBT7Hr3kvn+83HkSB5sEouS7yxuL769jV6TfItPQ38DyUOTHY0/STSpqES9IxSfdJQ3YbKT5j7xhpx/WqHPcdutzf/op6dZC+5GMcdiqdzHT+j4d4A/OpFe57i0VpvqZs6nCO0dUxY9UddDtYgmfejZs+Bkbvji/PXyE9hnqsKbt0Yb/qdXoJtNJ97F10+0NbvwM2jKnhzoC9GrVrmatZlWZBg/L6abqUdVKWje27oy7Cm+Mok7vaQzI9OCzVj63G+uOqvVFq+7MWeDPYb7PQN51L9qNKdar4REL/aYz6VdZwKJW2Ifx3Oc3/ro37i9YYD+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wSS9ctahmuVvkZc4Z5Rs4oSjwpCqX/QI3kwgFAel++ofyL676+k73GP8Y0rFAdy4apAXpIqcimalDZVV2VcIMTjH/Erce3w1c5gG//8o3XH4aGmVBdTa4IFeIRAxSkQmAHwobOKoyZwvq6eNxff7xl8zn3IG9S5ue9zFG+xHFvXuaUX57Gl/cxB7cQMD0IQJnDxrWgScQWIh2IeHV0b7HvrPmeCNPDztQLnsbnLaDA7/8FrKlFvMkjAAA=
  1. Open the Execute Code (Keylight Changer v2.1) sub-action inside the Elgato Keylight Changer. Go to the References tab and press the Find Refs button, it should find everything it needs automatically. If not right click in the white box and ensure the following dll files are listed
mscorlib.dll
System.dll
System.Web.dll
System.Net.dll
  1. Go to the Compiling Log tab and press Compile. If everything is working correctly it will say Compiled successfully!

Configuration

The main code for the Keylight Changer sits in its own action and should not need to be touched once you have confirmed it has compiled one time.

The import includes a secondary action Elgato Keylight Set Max Brightness
This is the one you can set the specific settings you want to send to your light. You will want to duplicate this action for each set of configurations you want to quickly return to, for example you might want one for a second light or to return a light to a low level after

The C# code needs to the IP addresses of the lights to control. You can define which Keylight to control and the settings to push using the arguments in the Action

elgato-lighting-v2 (1)

Configure the following to match your use case:

Line Data Notes
targetIpAddress The IP address list to send control data to You can get the IP addresses of your Elgato lights from the Elgato Control Center App
targetBrightness Specify the brightness you want to set Range is 3-100 and is the percentage of maximum the device supports
targetTemperaure Specify the colour temperature you want Range is 143-344
lightOn Turn the light on or off 1 = On, 0 = Off

Color Temperature range represents the values found by adjusting the setting in Elgato Control Center
143 is 7000 Kelvin,
249 is 4000 Kelvin,
344 is 2900 Kelvin

I recommend naming the actions that contain the different lighting settings something meaningful. This way you can reference them easily from other actions and it will be easy to maintain if you ever want to change the settings