Jump to content
C4 Forums | Control4

Light v2 don't work scenes


Dake23

Recommended Posts

Posted

Hi. I write driver on light v2. I has problem with scenes work. PUSH_SCENE, ACTIVATE_SCENE, REMOVE_SCENE and etc work correctly. But if i create scene in TOGGLE mode, i has a problem after reload application Contol4 on phone. 
What i do:
1. Create scene in TOGGLE mode: 
          scene 1 - On light 1
          scene 1 (TOGGLE) - Off light 1
2. Started application Control4 on iphone/ipad and activate scene 1; (At this point, deactivation works correctly)
3. Reboot application Contol4, and after loading i see an activated scene 1, but when you press the scene deactivation button, the driver thinks that scene 1 is turned off and sends a command to turn it on, but must send a command to turn on scene 1 (TOGGLE). 

In OnDriverLateInit() i send C4:SendToProxy(idBinding,"ONLINE_CHANGED",{STATE=true})
But after reload application Contol4 don't got any command in ReceivedFromProxy().

Please tell me what I am doing wrong ?
Thanks


Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.