@bravenel Just exported and imported a rule from one hub to another and it ended up with broken actions. It correctly imported the devices but I think this feature predated Hub variables? So it did not ask which HV to use which is what then broke the rule. Is it possible to add this to the feature?
Exported a copy to clipboard from RM then created a button rule from BC
correctly get the option to import but
get this after selecting the option
IF you just click paste it will actually paste it though.
side note what was the reason for no LV in Button rule?
You have to have the same Hub Variables on the target hub. Not really wanting to extend the functionality in the way your are requesting.
O ok so if there was a variable with the same name it would have worked?
Yes, variables only have names. Also, in each of those broken actions, you can select a variable to fix it.
Yes, I know I can fix it now was bringing it up for others really.
What about the clipboard UI issue.
LV for an individual button rule?
Or, LV available for all of the buttons of a button device selected in Button Controller? This would be tantamount to the old Global Variables from Rule-4.0, and seriously do not want to go back to that approach.
This.
Sometime you just want to keep state within just the rule just like you can do in RM. I had to create load of separate RM rules rather than one BR with the rules under it.
I'm able to reproduce this. The clipboard is there, just not displayed. Will track it down.
Why can't you use a hub variable for this? They are free. Why separate rules instead of a hub variable?
Then I would need hundreds of them potentially and they would only ever live and exist within the rule. With a LV I have just cloned the rule and tweaked each one. Each rule would need a different HV.
OK, I'll look into it.
Turns out that allowing Local Variables is quite easy to do, and that will be in the next release.
The imported clipboard thing is quite another kettle of fish. I don't think displaying it has ever worked properly. This one is going to take some additional effort to figure out.
Have a fix for the imported clipboard display as well. When the fix is released, it will only work for freshly created clipboards, not ones that already exist.
local variable are in, just tried copy button from one to the other but it didn't copy the local variable though.
for the paste. you need to try and refresh the page for the paste button to appear as well.
The failure to copy the local variables will be fixed in the next release.
I don't understand your comment about paste. Please provide more context.
So I published a copy and went to button rule, it correctly gave me a options to import from clipboard and this time from your fix it now showed the copied actions. However the paste button (unlike before the fix) now doesn't show.
What I then did was toggle the show state of conditions tab (can't remember of the top of my head the true name) that "refreshed" the page and the paste button appeared.
Got it. All you have to do is refresh the page and it shows up. Will get in a fix for that.
I guessed that but I wasn't sure what a full page refresh would do to the rule so I tried the toggle first to refresh "within" the app just incase.
Page refresh is alway innocuous. Apps are constantly re-rendering pages with every input.