Button in ST app doesn't reflect state, always shows On
LandoGemini opened this issue · comments
Once a RM Bridge LAN/Cloud switch is added to ST and shows up in app it always shows as ON with one exception: if you turn it off it will show as off but will return to on(green) if app si closed or if you move from "My Things" pane.
I understand now. Thank you for the fast response! :) I'll look into the pull request mentioned.
Thanks and nice work!
Cheers!
Jack
Hi Jack,
I have simplified code. Please try using below
Thanks,
Amit
Note that if you want to use device name instead of device id, replace below line
From
def toReplace = device.deviceNetworkId
To
def toReplace = device.displayName
Hi Amit,
Thanks for the code! I'll try it out when I get home.
I've had the hub for about a week and I'm very impressed with the community around it. It's one of its best attributes.
Cheers,
Jack