Fixed issue preventing lighting scene feedback from updating correctly.

This commit is contained in:
Neil Dorin
2018-06-26 11:53:18 -06:00
parent 97db1f35a1
commit e0bfb8f091
5 changed files with 9 additions and 7 deletions

View File

@@ -26,6 +26,8 @@ namespace PepperDash.Essentials.Core.Lighting
: base(key, name)
{
LightingScenes = new List<LightingScene>();
CurrentLightingScene = new LightingScene();
}
public abstract void SelectScene(LightingScene scene);

View File

@@ -143,7 +143,7 @@ namespace PepperDash.Essentials.Devices.Common.Environment.Lutron
{
case (int)eAction.Scene:
{
var scene = Int32.Parse(response[3]);
var scene = response[3];
CurrentLightingScene = LightingScenes.FirstOrDefault(s => s.ID.Equals(scene));
OnLightingSceneChange();

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<ControlSystem>
<Name>Desk MC3</Name>
<Address>ssh 10.0.0.15</Address>
<ProgramSlot>Program01</ProgramSlot>
<Storage>Internal Flash</Storage>
<?xml version="1.0" encoding="utf-8"?>
<ControlSystem>
<Name>Test RMC3</Name>
<Address>auto 192.168.1.40</Address>
<ProgramSlot>Program01</ProgramSlot>
<Storage>Internal Flash</Storage>
</ControlSystem>