Skip to content

Commit

Permalink
Fixed dimmer on/off issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
joepv committed Nov 5, 2020
1 parent 3d6a72f commit 7fd4e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fibaro Control/Form1.cs
Expand Up @@ -189,7 +189,7 @@ private async void ToggleDevice(object sender, EventArgs e)
await fibaroDeviceInfo;

// Send opposite command to flip light on/off.
if (fibaroDeviceInfo.Result["properties"]["value"] == "false") // light is off
if (fibaroDeviceInfo.Result["properties"]["value"] == "false" || fibaroDeviceInfo.Result["properties"]["value"] == "0") // light is off
{
dynamic fibaroDeviceTurnOn = GetFibaroDataAsync("callAction?deviceID=" + fibaroDeviceId.ToString() + "&name=turnOn");
await fibaroDeviceTurnOn;
Expand Down

0 comments on commit 7fd4e01

Please sign in to comment.