-
Notifications
You must be signed in to change notification settings - Fork 131
Closed
Labels
Description
Hi,
I am trying to add multiple dimswitches in one sketch like this:
SinricProDimSwitch &myDimSwitch = SinricPro[DIMSWITCH_ID];
SinricProDimSwitch &myDimSwitch2 = SinricPro[DIMSWITCH_ID2];
// set callback function to device
myDimSwitch.onPowerState(onPowerState);
myDimSwitch.onPowerLevel(onPowerLevel);
myDimSwitch.onAdjustPowerLevel(onAdjustPowerLevel);
myDimSwitch2.onPowerState(onPowerState);
myDimSwitch2.onPowerLevel(onPowerLevel);
myDimSwitch2.onAdjustPowerLevel(onAdjustPowerLevel);
I can switch them on and off with no problem but when using the dimfunction of dimswitch2 the deviceId of switch 1 is returned.
Thanks, Ed.