ziocan Posted November 1, 2016 Share Posted November 1, 2016 Hi there, sorry for the n00b question that follows. I am trying to control two dimmable WIFI bulbs with a single button of my 3 button wireless keypad. If I bind one of the bulbs to the keypad, I automatically get on/off and dimming via press-and-hold. But of course you can only bind a single light to a button so I thought to use advanced lighting scenes to do the same, so that I could control the two bulbs with the same button. So I created a scene, added the two bulbs as the load, set it to ramp to 100%, then I created the toggle counterpart that ramps down to zero. If I activate/deactivate the main scene the bulbs turn on and off as expected. I set each bulb to be tracked (when on in the main scene, when off in the toggle scene). My problem comes when I try to bind the keypad button to the scene. I tried to bind the button to the "toggle" virtual button of the main scene ,and when I click the button the lights turn on correctly, but I cannot turn them off with another click. Also I cannot press and hold to dim them. What am I doing wrong? By the way, the idea here is to use only a single button to control the scene.... Thanks in advance for your help, Rick Link to comment Share on other sites More sharing options...
South Africa C4 user Posted November 1, 2016 Share Posted November 1, 2016 I think what is missing is you setting up a toggle scene in Advanced Lighting Link to comment Share on other sites More sharing options...
ziocan Posted November 1, 2016 Author Share Posted November 1, 2016 I do have a toggle scene. With the button, I can toggle to ON but not OFF (when button is linked to toggle link for main scene) or I can toggle to OFF (when button is linked to toggle link for toggle scene) but not ON. In both cases toggle only works one way.... and no press-and-hold dimming Link to comment Share on other sites More sharing options...
thegreatheed Posted November 1, 2016 Share Posted November 1, 2016 Or scene tracking may not be set up correctly. If the system doesn't track your scenes, it can't toggle them 2 ways. Link to comment Share on other sites More sharing options...
ziocan Posted November 2, 2016 Author Share Posted November 2, 2016 Main scene: track any load, each bulb has tracking when on (this scene ramps up to 100%) Toggle scene: track any load, each bulb has tracking when off (this scene fades down to 0%) Still it doesn't toggle, it only does one way for both scenes. Activate/deactivate in composer works fine, but from keypad button only one way. Could it be, that the actual tracking fails due to a bulbs driver's bug? If I bind the single bulbs to the keypad button the toggle works flawlessly... Thanks Rick Link to comment Share on other sites More sharing options...
ziocan Posted November 4, 2016 Author Share Posted November 4, 2016 Anyone? This really puzzles me. Link to comment Share on other sites More sharing options...
Cyknight Posted November 4, 2016 Share Posted November 4, 2016 Wifi Bulbs? What Wifi Bulbs - I'd indeed say the issue is that current state simply isn't tracked. Easy enough to check - activate the scene in composer, see if the state changes on BOTH scenes. Link to comment Share on other sites More sharing options...
ziocan Posted November 4, 2016 Author Share Posted November 4, 2016 I am testing with LIFX bulbs. In fact, when I activate the scene in Composer, the lights turn on, but "CurrentStatus" remains INACTIVE. Link to comment Share on other sites More sharing options...
Cyknight Posted November 4, 2016 Share Posted November 4, 2016 Then I'd have to say the state isn't tracked properly. Whether that is an error in the driver, or a limitation of the device I cannot say. Link to comment Share on other sites More sharing options...
ziocan Posted November 4, 2016 Author Share Posted November 4, 2016 All I have done, binding wise, is to bind one of the buttons of my keypad to the TOGGLE virtual button of the LIFX driver. Would that be enough to allow the bulb to work with advanced lighting scenes? the single bulb works fine with this binding, including ramp up and down, but for scenes it will only activate the main scene and never toggle to the other scene. Just wanted to ensure that I'm not missing something about binding here. Thanks Rick Link to comment Share on other sites More sharing options...
ziocan Posted November 4, 2016 Author Share Posted November 4, 2016 I decided to go the old way and configured one bulb to follow the other using variables, so that the keypad button operates one bulb and the other will play along. Works for me. Link to comment Share on other sites More sharing options...
Cyknight Posted November 4, 2016 Share Posted November 4, 2016 2 hours ago, ziocan said: Would that be enough to allow the bulb to work with advanced lighting scenes? Well, other than obviously not being the case - no. The 'toggle' depends on the last known action for a light, scene tracking requires 2-way feedback. 35 minutes ago, ziocan said: I decided to go the old way and configured one bulb to follow the other using variables, so that the keypad button operates one bulb and the other will play along. Works for me. Yup, back to the old days - but if it works for what you need, nothing wrong with that at all. Link to comment Share on other sites More sharing options...
ziocan Posted November 6, 2016 Author Share Posted November 6, 2016 I am still trying to understand why the single bulb's status is tracked just fine (in navigator UI, for example) but when I put it inside a scene, its ON or OFF status is not tracked at all. The scene is INVOKED but never ACTIVATED although the bulb turns out just fine. Is there a specific event that I need to send to the LightV2 proxy in order to update the scene status, or is LIGHT_LEVEL enough? Thanks again Rick Link to comment Share on other sites More sharing options...
Cyknight Posted November 7, 2016 Share Posted November 7, 2016 Same answer as above. Individual light state is tracked based on last action - have you tried to see if using an outside of C4 control changes the light's state at all? Beyond that, advanced scene tracking requires different feedback/driver properties. Remember that Advanced scenes and tracking for them is FAR newer than basic light connections and has it's own implementation Link to comment Share on other sites More sharing options...
ziocan Posted November 7, 2016 Author Share Posted November 7, 2016 I will try that (now I'm at office) but I believe that if I turn the bulbs on via their own cloud interface, the driver sends notification to C4 and it all works. Is there any sample driver for a light that uses V2 proxy and advanced scenes and is properly traked? I would like to have a look at the code to understand how it works. Rick Link to comment Share on other sites More sharing options...
Cyknight Posted November 7, 2016 Share Posted November 7, 2016 6 hours ago, ziocan said: Is there any sample driver for a light that uses V2 proxy and advanced scenes and is properly traked? Not that I'm aware of. I did remember one little trick - try setting it to ignore scene ramp/fade in the scene, see if that works (assuming it's enabled now) Link to comment Share on other sites More sharing options...
ziocan Posted November 7, 2016 Author Share Posted November 7, 2016 Unfortunately that doesn't make a difference. But thanks for the suggestion. Rick Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.