HABPanelViewer 0.9.27

Thanks, the wake/sleep interactions could really be the reason for this. And I guess there is no way to solve this as long as FireOS is running on the device. I tried to handle it with the dev options but the stay awake or any other option did not help. If there are any other hints, I would be glad to hear them as I bought some Fire HD tablets (and had Amazon disable the ads on my lock screen) just for this purpose :laughing:
But anyway, great app. I will probably use it without the motion detection

Yep, I bought the “Ad Free” version of the Fire 7 hoping that it would be 100% free to do the same things as any other tablet. (without hacking…its a lot better hardware quality than off-brand tablets in the same price range) However, with their custom “launcher/home screen” app, a couple of restrictions apply.

HABPanelViewer will be available in the Amazon AppStore shortly as well (testing it now)!.. as soon as @vbier is OK to take it out of private beta.

1 Like

I just tried the latest on my FireTV… you must have put in the keycodes! This is awesome! Having trouble displaying images/urls though (template and frame widgets), even though they display on a Nexus7 properly. Well… all but the climacons, which display properly on my laptop. Can’t wait to try the TTS for voice notifications (I’d be able to move the wifi speaker to another room)!

I currently launch the Kodi ZoneMinder addon when there is motion on our outside cameras, and I launch a custom Kodi notification addon for certain larger notification messages. I will be able to replace both of these by launching HabPanelViewer (through ADB) and changing to the appropriate panel! Thank you, @vbier (and @miker)!

[EDIT: I spoke a little too soon… I don’t see any way to get into the menu :confused:]

Nice job, are you planning on punlishing on f-droid as well? Havent checked if there is some openhab repo already, but it might be worth to look at. Since we are open source and all :wink: (and i neither use google or amazon :smile:). I also poked around the cache stuff, although i dont have any experience in that field. Since the webview is only used for the specific habpanel adress, it might be interesting to also use the appcache and load pictures and everything in there for later use. I think now it only caches temporarely and also deletes everything once it cant get a connection. (Since i use vpn to check openhab on the go, once my vpn fails the whole data has to be reloaded, and this can take up to 30sec depending on my mobile connection.) sadly i wont be much help ib the codibg so i also understand if this is not of any interest to you. (Since mist people will propably use the app over wifi anyway). Anyway, great app and thanks for all the hard work you are putting in!

Binding the keys for the FireTV remote is still on the to-do list :slight_smile:

1 Like

This application is now available as a beta release in Google and Amazon app stores (need to use these links to “sign-up”, it won’t show up in general search on either store yet)

This should make it significantly easier to install and keep updated.


Google Play Store
https://play.google.com/apps/testing/de.vier_bier.habpanelviewer

Amazon App Store
Please note. there are some options/features in this app around home/launcher screen and wake that are not supported by Amazon’s FireOS. This is intentional by Amazon as they want to control the home/lock screen with their custom home/launcher application, specifically for their “Ad-Enabled” version that lets them promote the tablets at a lower cost by showing “Special Offers” on the lock/sleep screens. (At some point, these options will show as not supported if on FireOS)

To participate in this test, please choose a marketplace:
Amazon.com.br | Amazon.de | Amazon.com.au | Amazon.co.uk | Amazon.co.jp | Amazon.it | Amazon.fr | Amazon.ca | Amazon.com | Amazon.es


If you have any issues with this links, let me know!

6 Likes

Great news! :+1:
Thanks @vbier & @miker, keep up the good work :slight_smile:

Thank’s for this nice app.

Downloaded it from Play Store and it runs without problems.

The problem i have is, that the openHAB item state (a contact sensor) which i want to use for activating the display (Samsung Galaxy TAB3 lite) shows allways “null” in the “status information” of the HABPanel viewer (Inside HABPanel the status is shown as ON/OFF or OPEN/CLOSED) -> depending on the map-file.

Bildschirm Steuerung
aktiviert
BewegungGang_EG=null

HABPanel Viewr: 0.9.13
openHAB: snapshot 2.3.0

Hi @miker, @vbier,
thanks for the excellent idea and all the effort to make it happen.
It is something, I have been looking for for a long time :wink:

As you’re displaying the HABpanel dashboards in a webview-element in your app, is it possible to show the BasicUI there as well? Is this already possible?

If not, are you considering supporting this in the future?

I do have the following use case in mind:
HABpanel is to be used for the most important/most used items. But once you need access to some rarely needed item, BasicUI come in handy. It would be nice, to have the option switching to BasicUI- (sitemap-) view if neccessary but have the convenient HABpanel dashboard for normal operation.

This would give us the best out of both worlds:
HABpanel for well-designed dashboards
BasicUI sitemap view to access all other items (e.g. simply based on a group structure) without the need to configure dashboards for it nor even the need for sophisticated sitemaps.

Yes, I know about the openHAB Android app. But I’m not super happy with the rendering of it on my devices. AND: BasicUI would nicely benefit from your clever stuff like the backlight control.

Curious hearing your thoughts…

You can display the BasicUI (or classic/Paper, etc) as a screen in HABPanel. Just use the “Frame” control to display the url like http://openhab1:8080/basicui/app.

Ex. (personally I would select “Frameless” and “Hide title label” under advanced as well)

I followed your instructions as described, but it seems that it does not work when I try to embed a google calendar. I only get a blank frame. But if I open HABPanel in Chrome browser it works.

Any ideas how to solve this issue so that iFrame content will also be display with the app?

Thx in advance

1 Like

Do you use basic auth in the iframe link? This does not work as already explained here:

I was thinking about adding some kind of audio notification to the app. This would allow to record an audio notification and show some indicator (as overlay over the webview) of available notifications which could then be used to play back/delete the notification.

As I have my tablet close to the door, this would allow to leave a notification to family when leaving the house.

After short investigation, it looks like audio could be recorded to a folder that can be set in the preferences (something like Android Samba Client could be used to have a common directory across several devices). When folder watching works for samba shares, all devices could watch this folder keep the notification indicator in sync, otherwise a dedicated openHAB item could be used to trigger ui update on all devices.

Does anybody know a way to do that currently without extending the app? Would this be a useful feature? What kind of requirements would have to be implemented in order to get the best functionality? Any Ideas?

I think this issue can be solved if I set the google calendar as “public calendar” in this case the iframe shows also the embedded calendar.

Just wondering if there is any other possibility without setting the calendar as public?

Thx

re. audio notification…

IMHO, here is the approach I would try first;
• 1 to make compatible in general, not just while using/in HABPanelViewer
• 2 prevent scope creep (which I’m guessing is why you are asking :blush: )
• 3 wouldn’t have to add samba/other components to sync status, etc.

Create a simple html5 app to create/play voice message files within OH html path, ex. http://openhabian:8080/static/voicenote and a message store folder like ~/voicenote/msg (o+rw) to store the recording(s).
Ex. https://developers.google.com/web/fundamentals/media/recording-audio/

The html5 app would be responsible to set/clear an OH ITEM switch like “msg_waiting”

In HABPanel, on the main screen at a button that is flashing red (animated .gif) when “msg_waiting” is ON. When button is pressed, switches to the “VoiceNote” screen/panel that has the html5 app within a frame/custom widget to play/create voice msgs, etc.

Ex. My using my front door panel
Untitled
with msg waiting button bound to “msg_waiting” item, flashing/alternating colors when ON.

Other options (just ideas):

  1. VoiceNote app could be a “binding”/module add-on
  2. Lastly, create a plug-in model for habpanelviewer where “voice-note” would be optional and others may have “plug-in” ideas to extend habpanelviewer. (I can think of other potential plugin ideas, ex. for my Doorbird to enable talkback, etc)

Just my $0.02

I’ve used a workaround to be able to display non-public calendar in an iframe widget in this app.

For this I’ve misued the server url function to load first google website. You’ll get an error message that habpanel html was not found (or something similar), but after clicking on the google logo at the top I was able to use google sign-in. Once the login was completed I’ve changed back to the server url and voila - iframe now also displays the embedded non-public calendar.

It may be useful for some people who are dealing with similar issues.

Regards

@vbier how can I force refresh items like Connected Item, Battery Level Item or the whole app? They don’t refresh in my case after I restart OpenHAB. It wolud be great to have possibility of restarting app or refresh page via openhab item.

By adding the code and creating a pull request. There is currently no way to do this.

Edit: I am currently thinking about changing device control to have a single String Item that allows to send the different commands to HABPanelViewer. This would allow to have a RESTART command that allows to restart HABPanelViewer (which would trigger sending of all device sensor values to openHAB) easily.

It could also be used to add other functionality for controlling the device, e.g.

  • turn bluetooth ON / OFF
  • trigger propagation of sensor values (which would fit you use case better, but is more difficult to implement)
  • control HABPanelViewer features, like enabling or diabling motion detection

I’m not software developer unfortunately :frowning_face: I can help with testing as I have 5 tablets and use your great app on them.

This seems to be good idea!

Can you implement this too?

Screen goes off (only black, not completely off) and after touching it, it is on again.