Thanks for the reply. I understand the process and believe I followed it correctly.
What I don’t know is whether it should work and the location of the two files. I’d like that information before I try again.
Thanks for the reply. I understand the process and believe I followed it correctly.
What I don’t know is whether it should work and the location of the two files. I’d like that information before I try again.
I know where to put them! I don’t know which two files to use.
Thanks. I’ll try again.
@Saracen
See the links in the post above where @arctus posted his files.
Drop those 3 2.4 ones into your addon folder. That’s all you need to do. Don’t recall if I restarted. Won’t harm if you do.
There is another set of 2.4 files listed above, I can’t remember where, which break HABPanel all together.
C
It works now. Thanks @sihui for the correct links.
I think those are the files I must have used the first time.
With over eighty posts in this thread, and many more in other threads, it’s easy to make such a mistake.
Thank you very much @arctus !
This functionality should be part of the OH distribution for HabPanel for sure.
I have 3 android tablets on the walls with an item file that is 1,927 lines long and I only need 427 of them for my HabPanels. I have a total of 35 HabPanels because I have horizontal and vertical hanging tablets (different layouts).
This has been a HUGE help for performance from the tablet side, bandwidth and from the OH server side.
I hope you can work with @David_Graeff to get this part of the OH regular binding builds.
Best, Jay
Thanks, I do not mind helping to get this into the official build
The best solution would be, if openhab would recognize the items itself, which are used inside the habpanel, so that we don´t need to put all the items in an addition group.
Would this be possible?
You know, that actually would be much better. Not sure how tough that would be and not to take away anything from arctus because the community is loving this
I’m not sure I ever thanked @arctus for this. It has definitely transformed the use of Habpanel for me.
Thank you!
Question does installing this erase created panels or custom widgets? If so how do you backup your panels prior to installing. Really want to try this out but don’t want to lose my panels.
No. You’ll be OK.
Handy to make sure a backup anyway.
@ysc - have you decided to merge the code yet?
Seems a game changer to me
As much as I appreciate the need for a solution and the fact that this one is working for some, my position is still this:
It simply cannot be merged as-is - in an add-on classified as a “HABPanel filter” binding, providing filtering capabilities to members of a hardcoded group and expose it as an alternative API - because it has virtually no chance of getting past a review by the add-ons maintainers:
rest/events
endpoint (currently we’re only able to filter events by topic), then HABPanel and others can be modified to use it.I have however merged two PRs recently which are supposed to improve the perceived performance, without changing the backend. You can download the .jar from the CI server (or use the latest distro snapshot) and report back if they help a little and more crucially if you see regressions, especially right after switching dashboards.
Thanks you for the fantastically verbose and on point response - you are a legend.
I agree with you on the point of filtering against the API - especially on the hardcoded grouping. I do however feel that HabPanel could do with a native ability to fire requests straight against the API without a need for event tracking and status updates (I actually got onto this discussion, because I am trying to code an AV remote (Custom widget: Direction buttons) that uses Openhab as the backend for posting instructions to devices. (AngularJs http 'Get' in a function, hosted in HabPanel)
My exact scenario is that I want to be able to scroll through a menu quickly (down, down, down, down, down, down, down,) as button clicks on my remote and have every single click processed by Openhab, - If I send a series of down instructions to the API using Powershell, or Curl, they are all happily processed, but if I try button clicks in HabPanel, I miss about half of the clicks - I have several hundred items in my config, which I know doe snot help.
sadly, my AngularJS is terrible - else I’d build a script function on my ‘remote’ in HabPanel, that simply sends whichever click I am sending, straight to the old school API, rather than rendering it through the HabPanel refresh / event engine.
I don’t know the architecture beneath HabPanel, I am not quite sure why an instruction takes long to process - but if we are unable to amend the API for information gathering, it would still be nice to enable some extension to HabPanel that allows stateless execution of certain instructions? (e.g. a button click that is used for scrolling down a menu does not need any event tracking, as long as the selection on your TV screen changed?)
Irrespective, thanks for the hard work, I’ll try your enhancements for now, to see how much improvement they make.
If you’re doing things like ng-click="sendCmd('item', 'cmd')"
in your widget it shouldn’t be relevant how many items you have, all it does is send the command request. You should open the developer tools of your browser, and check on the Network tab (and the Console) what’s happening, and how much time a request takes.
maybe replacing ng-click
with ng-mousedown
can help too.
Thanks again Yannick,
I have had a quick play and noticed something. I initially assumed that it was HabPanel that slows me down, but instead it looks like what is happening is that the browser on my iPhone is actually skipping the clicks.
If I hit a button 10 times in a row on my phone, it registers in my Openhab logs only 5 times - if I do the same on my mouse (from a remote PC) I seem to get all 10 clicks.
It seems that the browser on my phone somehow suppresses the multiple clicks? I assume that it is trying to prevent the screen zooming but treating the second click as an attempted double click(which it then ignores) I have to look into this - just not sure where to start.
This link demonstrates the issue - you’ll see only every second click register when using an iPhone (https://codepen.io/juliogcampos/pen/BzdjwY).
OK - so reading through the link:
I see it as saying that no code change is required for use to get fast click functionality in IOS - using the current HabPanel - yet I am clearly missing something, since I am unable to get fast clicking working?