Copy/ clone button controller

Hi,

I have been working on integrating Inovelli wall switches to control Hue lighting similar to how the Hue wall switches work.

I have the functionality working using a button controller app. The configuration is getting long enough that I would like to be able to duplicate it for each switch and then edit for the new light groups.

My searches have shown that there was at one point export / import app and possibly a way to read the app as code instead of using the Hubitat interface to painfully add each part of it, but I am not seeing those options on my Hubitat screens.

Is this functionality there and if so where do I find it?

Welcome!

You can access the Export/Import/Clone options by clicking the "circle-i" icon in the upper right...

If you are talking about copying the setup for a button into another button, you can do this directly in the Button Controller 5.1 app, using the Copy Button function:

If you want, you can also publish the actions (or subset) to an Action Clipboard, and import those into another Button Rule:

First they were copied to the Action Clipboard, then Publish Clipboard option appears. In another Rule or Button Rule, those can be imported.

Button Controller 5.1 has some number of child apps, one for each button defined, each a Button Rule 5.1. These are essentially mini Rules, where the trigger is preset to be the button action, but otherwise each Button Rule has most feature of Rule 5.1.

2 Likes

Are you using zwave or zigbee Inovelli switches? If you're using zigbee and you have the Hue bulbs connected directly to the hub (as opposed to using a Hue hub), you can just bind the bulb to the switch; you don't need any rules or button controllers. Or you can put multiple Hue bulbs in a zigbee group and bind the switch to the group.

Hi, well that lead me to the right spot …

I don’t have those locations on my view at all though. I did however find the (i) button here as in the below screenshot. Thanks that was the functionality I was looking for.
Unfortunately it’s not letting me add a screenshot yet. Hopefully it will let me edit the post later to put the screen shot up.

Thanks I already made use of that. I was specifically looking for how to clone the whole button controller as I have a lot of individual button actions and rules that will apply for the next switch. It looks like your export clipboard option might help I will look at that.

I was going to post up some more as I looked at that. I did buy the blue switched intentionally to allow for this as I learn.

The reason(s) I haven’t gone there yet:

  1. I use the Hue app a moderate amount along with Hue scenes. I like that option for creating new scenes. (And yes I’m using the Hue hub for that currently)
  2. I want the scene button to be able to cycle the scenes through and I haven’t figured out from online reading if that is possible using bindings.

It does look like it will support directly binding the functions for on / off / dim though.

My current setup is:
Single tap up 75% brightness on
Double tap up 100% brightness on
Tap down off
Hold up Increase brightness
Hold down decrease brightness
Scene button cycle through a selection of scenes (although this is currently somewhat painful as I had to code it as a conditional rule that increases a local variable and does a big if then set with direct calls to each scene object with the Hue bridge integration)

If the Hue bulbs will remain paired to the Hue bridge, direct binding won't be possible -- zigbee binding requires both elements to be paired to the same controller controller.

Right that was my understanding so far which is why I am using the button controller for the moment. If I can figure out how to get all the functionality that I want with direct binding (double tap vs one tap at different levels and the sticky one being the scene management) then I will likely move to the direct binding.

The screenshot thing is a spam/bot mitigation for new forum accounts -- you can join the Owners group here in the community, and then you'll have screen posting and private-message capabilities.

Hub owners - Hubitat

1 Like

Thanks joined. Figured it was something like that!

Trying the screenshot again: (I found the (i) on my apps screen. Individually selecting it does not have the (i) as per the previous post)


You might also be interested in this custom app I wrote a while back to do the same thing (really like the V1 Hue Dimmers, but the V2 aren't that different aside from the fact that they made the buttons weirder...):

1 Like

Try the icon that looks like a Gear? I'm on a beta version of the platform, so I guess that icon tweak may be part of the beta... Hopefully the Gear icon has it.

Cool yes that gets me there thanks. I thought I had already tried that one but apparently I did not.

Interesting, I had been doing a lot of searching and didn’t find an integration that did this already. Not that I mind playing around (I have a software engineering background)

I will give this a go and check out what you are doing. (I only skimmed the thread as it was too long for me to go over all the way right now)

It looks like you pull the scenes to choose from. I assume you have not found the way to actually cycle the scenes by some sort of next scene action?

That sounds like the entire reason I wrote it. Look at the screenshot in the first post, specifically the configuration for "button 1 pushed."

Again, it's just the order you choose in the app. There is no inherent "next scene" -- it's whatever you say in your automation, whether that's on Hubitat or Hue.

Right it looks like your app is doing a similar approach to what I came up with but in a more convenient and polished way. I haven’t tried it yet but I’m guessing it is reading the available scenes and making them available to populate the scene selection on each button press options.

What I was hoping to find was a way to get the scene button to operate as the hue button does on their dimmer. (IE it just cycles through whatever scenes are currently setup for that light group). The difference being if I make a change to the scenes available in the Hue app it is automatically just picked up and usable.

What you have done looks like it at least makes updating the hubitat app with a new scene quite a bit easier than the method I was using.

Also need to try yours out to see if it will give me the double tap functionality I am looking for on the Inovelli switch (which actually maps to a button two pressed event). I suspect it will. (Single tap turns light to 75% bright double tap turns to 100%)

Edit:

Actually I stand corrected. I looked again in the Hue app and my confusion came from the fact that it does a default action when you add the new dimmer that auto populates based on your scenes but it does not appear to update.

Thanks again for the help and I look forward to giving yours a go. It’s going to take me a bit as I need to look through the integration with Cocohue etc to see what it takes to switch over.

That was literally my goal. :slight_smile: But just like in the Hue mobile app, you have to choose which scenes and for what "press." Hue Rooms or Zones do not have an inherently ordered list of scenes associated with them, though the app may pre-populate some common choices for you when setting up a new device (Read, Concentrate, Relax, etc. -- I don't remember since it's been a while -- but this is, again, an automation configured for the device, not anything inherent to the Room or Zone).

One caveat is that I'm not sure I've updated it to work with the new built-in Hue integration scenes yet, just my previous custom integration. But that would be an easy addition...

I installed CocoHue and then your app. Thank you again for putting the time into this. Definitely what I was looking for although I may play around to make some slight changes. Below is the config I ended up using and this should work for all gen 3 Inovelli switches. For the next one I install I will see if I can create a preset in the main app. I will also play around a little bit with the newer integration and see what works or that I can fix.

Overall it is working quite well, but no it does not pick up the scenes generated from the newer Hub Integration. It did pick up the light groups from that integration though for the action side of things.

As a bonus, by setting your “second push” option on button 1 instead of using button 2 for the Inovelli switch (which is how they map the internally debounced double click) I was able to set the button delay time in the switch itself to 0 which makes the response time of the switch a lot better.

The only issue I’m seeing now is the dim behavior is a bit erratic. For whatever reason dim down seems to be working as expected but dim up seems to have intermittent lag as I hold the button. Double push on button 1 also seems to have issues if I do the second press too close to the first.

As mentioned the button mappings are a little odd with the Inovelli switch. Button 1 held is actually the down toggle pushed on the rocker switch. Button 6 pushed is actually the up toggle held. Button 6 held is the down side of the toggle held and they have some counter intuitive button released mappings as well.