thecowan / wallpanel-android Goto Github PK
View Code? Open in Web Editor NEWWallPanel is an Android application for Web Based Dashboards and Home Automation Platforms
Home Page: https://wallpanel.app
License: Apache License 2.0
WallPanel is an Android application for Web Based Dashboards and Home Automation Platforms
Home Page: https://wallpanel.app
License: Apache License 2.0
Describe the bug
A) The clock screen saver does not activate if you launch the dashboard from the settings and do not touch the screen at least once.
B) The clock screen saver does not activate if the screen is woken via motion detection and is not touched at least once.
To Reproduce
Steps to reproduce the behavior:
A)
B)
I assume these two issues are related.
Expected behavior
The screen saver should activate in both situations after the set timeout.
Smartphone (please complete the following information):
Would be handy for embedded iframes in HA.
At least not working for me for google calendar.
Hi,
I really love your app! I have a small issue though:
When setting up MQTT the screen state (true/false) is only being sent once.
After that no more submissions are made to the MQTT - all other sensor values (motion, battery) work fine.
Pls let me know in case you need any log files/details, etc.
Is your feature request related to a problem? Please describe.
I would really like to have a REST option to power off the display. It is not a problem, but it would nice to have it, that i.e. I can power off the screen with my bulbs - Example HASS automation:
- alias: floor_light_turn_off_floorled_by_motion
trigger:
- platform: state
entity_id: binary_sensor.motion_sensor_158d00016db094
from: 'on'
to: 'off'
- platform: state
entity_id: binary_sensor.motion_sensor_158d0001a24994
from: 'on'
to: 'off'
condition:
condition: and
conditions:
- condition: state
entity_id: binary_sensor.motion_sensor_158d00016db094
state: 'off'
- condition: state
entity_id: binary_sensor.motion_sensor_158d0001a24994
state: 'off'
action:
- service: light.turn_off
entity_id: light.gateway_light_286c0788b78a
- service: switch.turn_off
entity_id: switch.floor_wallpanel_wakeup
Describe the solution you'd like
I want to have a REST implementation to power off the display like curl -H 'Content-Type: application/json' -X POST -d {wake:false} http://192.168.1.251:2971/api/command
Describe alternatives you've considered
Waiting until the device turns off automatically
Thanks in Advance, Thomas
Hello @thanksmister,
could you explain how to send PRs to that repo? It is not possible for me, because I forked the original repo and can only send PRs to that repo. It don't let me fork your repo and forward me to the original which I already forked.
Any ideas how to solve it?
Thanks, Thomas
Hi
I'm using old tablet with Android 4.2.2 and was successfully running WallPanel for a few days displaying my Node-RED dashboard. Today when I tried to run it again, it showed white blank page and then closed itself (returned to launcher) leaving permanent notification "WallPanel Running...". Clicking on that brings back white page and it returns to launcher again.
I've cleaned data for the app and it then runs normally with the welcome screen asking to configure everything. Once I set url for my Node-RED dashboard it goes back to blank screen and then to launcher.
Any clues? Any debug log to track the issue? I don't recall doing any major changes to my dashboard (or even any changes to be honest). It was working fine just a day earlier.
Well, I've just tried to leave default URL and click Dashboard button on the top right and it behaves exactly the same. Blank page and then quits, so it's not my dashboard fault. Running without access to the network (just for testing purpose) does the same. I've also tried to reinstall the app, didn't help.
BTW, it stores 13,2MB of data after initial run, what is that? Sounds crazy for a few settings.
I can't seem to get Face or QR detection working on the Amazon Fire 7 tablet. Motion detection is working fine. I have it configured to use the forward camera, landscape orientation.
I've tried rotating the tablet in case orientation made any difference but no luck.
Use languageCode in message.
Hi,
my screen doesn't wakeup when motion is detected by the front camera.
it works fine with the old version 0.6. i tried different versions 0.8.2.4 until 0.8.2.8
I see that the device goes completely in sleep because i can also not actived it with the api command.
regards,
Wiebe
After https://github.com/thanksmister/wallpanel-android/issues/20 has been fixed, now when there is an issue with the MQTT connection, an dialogue box pops up saying "There was an error initializing the MQTT client, please check your settings".
I can click "OK" and the message disappears, but almost every interaction with the browser (tap, scroll, pulling up the main Android menu, camera motion detection) brings the error message back up on the screen.
On a related note: I have no idea why the app loses the MQTT connection every couple of days, and why it's unable to reconnect. The MQTT broker is up and running, and other devices continue to publish without any problems.
Tablet: Fire HD 8
Version: 0.8.4 Build 2
Hello, not sure what changed but wake no longer works via the REST API. It was previously (in the last week or two) then stopped a few days ago. Applied the latest update and it still remains broken. If I use postman to send the POST i get a result true when sending wake but the screen remains off. I can also GET the states and screenOn shows false as well. Other commands (like speak for example) seem to work fine.
I've tested several times, launching mosquitto in verbose mode... other sensors are properly published, but QR Codes are not sent thought MQTT.
I really like the face/motion recognition used for screen activation, and while playing with my wall-mounted tablet [Home Assistant dashboard via Wallpanel], I also thought about another kind of usage: door peephole - phone mounted on door, with back camera pointed thru the existing peephole.
I understand, that using both cameras in the same time can be CPU and battery consuming, so we can make some limitations:
examples:
SCENARIO no.1:
somebody approaches [inside home] the door, front camera recognizes face/motion and then turns on screen, shows stream from the back camera on the screen, sends MQTT message & turns on stream from the back camera, so other devices can join in [streams manually limited via options, so even weaker phones/networks could enable that]
SCENARIO no.2:
sending MQTT message to the "peephole-phone" turns on streaming for some time [options selectable, or maybe as a MQTT payload?] so one can check the stream even if there's nobody at the door [inside or outside]. this will enable some video possibilities for DIY MQTT doorbells - I'm planning to add MQTT button as my doorbell button, it will send MQTT message to Home Assistant on every press. then I'd be able to send another MQTT message to the "peephole-phone" to turn on streaming/grab a picture and use it somehow [view on chromecast-enabled tv maybe? it's up to Home Assistant's configuration :)]
SCENARIO no.3:
I'm using Telegram messaging app as additional Home Assistant command/notification means. so with the MQTT turning on/off mentioned in second scenario, I'll be able to grab a picture from back camera and send it via telegram to everyone that asked for it - on demand [or after mentioned MQTT doorbell press].
phew, congratulations if you're still reading ;)
what do you think about that? I know that it doesn't look like the main function of the app, but I can see it like expansion of the features :) is it possible?
Hello, i think this is nice app,
i pressed panel home button and the app ui turn to minimize . it is no problem
but .. how to turn app to front again ๏ผ
if a guest come to my home, he or she could not to use this panel when the app is at Background
i means add a MQTT or REST command to active APP from Background to front ,that is great
thanks
Hello,
First of all, thank you for amazing app,
I would have one small feature request. It would be nice if I could enable or disable waking up of screen by motion sensor by MQTT or REST command. Background behind this is I would like to setup automation, and have the screen active whole time as somebody is home, but to have motion wakeup only at night. I could send wakeup command periodically to keep screen on but it could be more elegant if this could be set by commands.
thanks
I get the error "There was an error initializing the MQTT client, please check your settings" on multiple devices on re-opening the program.
I don't get it on startup auto launch, but only after I back out, and then re-launch my page in WallPanel.
MQTT works though.
It'd be nice to be able to load some sort of screensaver (blank screen, another URL, time) which would get disabled on motion or sound. This would be an alternative to wake on motion which doesn't work well on my device as it gets locked as soon as screen turns off.
Describe the bug
With 0.8.5.4, with prevent device from sleeping selected, after a few minutes the device goes to sleep.
To Reproduce
Steps to reproduce the behavior:
It would be great to be able to enable/disable the webcam via command.
Unless this is already possible, I don't see it. Thanks.
Describe the bug
Panel goes to background after few hours. The icon in notification area shows that it's running, it's just not a foreground app. On foreground is whatever was there before WallPanel, so usually launcher.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Panel still as a foreground app.
Smartphone (please complete the following information):
Additional context
I've tested few different applications on the same device and WallPanel was the only one that goes to background. Others app were foreground until I manually switched them, so there is something strange with this particular app.
I've tested different pages (even google.com) to make sure it's not a particular page causing this strange behavior.
I've also tested WallPanel on my phone (Samsung S5 with Android 5.0) and it was fine (left as foreground overnight), so in my case it's only this app on one device which makes it harder to debug and fix.
I understand you are not supporting such old Android (per my last issue when you created legacy fork) but maybe you could help with this one more time? This issue is quite frustrating as I have to bring back WallPanel few times a day to see displayed data.
Is your feature request related to a problem? Please describe.
No current issues
Describe the solution you'd like
It would be great if you could register different fingerprints with Android, and when a fingerprint is read from Wallpanel it sends an MQTT message with a unique fingerprint ID to the MQTT broker.
This could be used to trigger rules like disable alarm, or even could allow for kids to "clock in" or do their chores etc from the panel.
Describe alternatives you've considered
A PIN pad is an alternative, but PINs are easy to forget or be shared etc. Biometrics is way more high tech!
Additional context
I think the MQTT Alarm Control Panel already has a similar feature so hoping code may be able to be shared?
Thanks!
It would be great is there was a dedicated subscribe topic to allow the device to utilize tts via the MQTT format that Home Assistant uses for notifications
https://www.home-assistant.io/components/notify.mqtt/
I need to change some of the settings for the app but I cant get to the settings page. swiping down refreshes the page or brings up the android notifications. Im running wallpanel on an Asus Zenpad C7 with android 5.x
How can I get back to the settings page?
When I try to load my ssl secured home assistant instance it gives me an ssl error pop-up.
If I click cancel nothing happens - > ok
If I click on ignore loading doesn't continue - > not okay
It doesn't make any difference if I load my duckdns instance online (where the certificate is valid) or if I try to access it locally (where there is no certificate available)
This needs investigating since I don't have a way to duplicate this. Home Assistant needs it to work with Google Speech input for example.
Currently there is an issue with loading self-signed certificates, basically it doesn't work. Need to investigate what is required for loading and handling self-signed certificates. This will allow users to see load there home platform dashboard outside their network.
Describe the bug
A clear and concise description of what the bug is.
MQTT attempting to reconnect before previous session has timed out (hypothesis) and mqtt server rejects connection due to reused clientID.
To Reproduce
Steps to reproduce the behavior:
Workaround
Change clientID when settings page opened. Or wait a while before reopening dashboard.
Expected behavior
MQTT connection either maintained while settings screen open or cleanly disconnected then reconnected.
Smartphone (please complete the following information):
Describe the bug:
Cannot view web pages in Wallpanel on specific Android device
Error showing is that the Webview component is not installed.
Webview is installed but disabled by default on this device. It cannot be enabled without root.
I have configured Wallpanel to send regular updates via MQTT. Occasionally (about every couple of days or so), the app apparently loses its connection to the MQTT broker, and shows a persistent error message on the screen: "Couldn't subscribe to the MQTT topics, check the MQTT broker settings or your connection."
This message stays on top of the screen. Even when I leave the app, it remains on the screen.
When I "Force Stop" the app, and restart Wallpanel, the error message reappears after a few seconds.
Only when I restart the whole tablet, the message disappears, and Wallpanel successfully reconnects to my broker.
At the time of the error message, the tablet itself is still connected to my Wifi, and my MQTT broker is up and running. I've configured the MQTT broker using its IP address.
Tablet: Fire HD 8
Version: 0.8.4 Build 1 (but I have this problem for a few months already)
Using simple authentication (http_password) with HomeAssistant and a valid LetsEncrypt certificate on HA's standard port (8123), WallPanel does not connect, does not indicate any error, and only displays a blank screen. Using Chrome on the same device will connect to the page successfully from the same network presence. Main page or subpages have same behavior. Use of automatic browser engine and the loading message disappears quickly without complaint and with blank screen. Use of Crosswalk project engine prompts with Request Denied to Security and net::ERR_INSECURE_RESPONSE
No observable logs to provide.
Hi
I'm trying to set Wallpanel up on my tablet for a Lovelace Dashboard on Home Assistant.
in it I have a custom element from https://github.com/kalkih/mini-media-player
this element isn't working via Wallpanel. it works in the browser on the device, regardles of account used.
"Custom element doesn't exists: mini-media-player"
Describe the bug
Open wall panel, settings include:
Prevent device sleep and camera streaming enabled. Wait and eventually the tablet will be a blank screen. I think this is camera streaming related as I just started using this feature. Both wall panel versions seemed to not crash with camera streaming disabled. This is a guess though.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Device should never revert to a blank screen
Hello, I have some strange bug on my old phone sony xperia Z1 compact. The stream from camera is always upside down. I tried to turn on or off rotation of screen but with no luck. would be possible to maybe add some manual rotation to stream from image in settings ? thank you
Hello,
I am testing this out with TileBoard and have events that will play .wav files. The .wav files play with other browsers but will not play in WallPanel. Are .wav or other audio files supported?
Running 0.8.5 Build 4
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
I don't see anything apart from WelcomeActivity in Tasker. This requires a further click on Launch Dashboard to open the dashboard. Can we have an activity to LaunchDashboard?
Is it possible to add the ability to open other apps installed on the device via an MQTT command?
In addition to this, could an app be opened with a shortcut that would open the default app on the device that is associated with that shortcut?
Finally, is it then possible to close the app via MQTT or bring Wallpanel to the foreground?
I get an access denied error when trying a file:/// url. I think the app needs storage permission to be able to open locally stored pages.
A nice function would be to require a passcode to change the settings.
Describe the bug
I'm using wallpanel with HADashboard and everything works fine, but i've installed this custom widget that gets data from the InfluxDB and shows some graphs:
https://github.com/tjntomas/HADashboard-widgets/tree/master/custom_widgets/basegraph
On my computer and on the tablet with mozilla firefox everything works, but when I load the dashboard with the graphs on Wallpanel, they don't show up and the navigation buttons icons don't show also (they don't work either). I've installed the latest version of WebView but no luck either.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Widget shows as it shows in the browsers, like this:
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
Thanks for your great job,
I have a Kindle Fire 2nd gen 8.9 inch, flashed CM13 which is an android 6.0 build.
I toggled keep screen on, it works ... for hours. And then it will go back to settings, then sleep.
Well, I did not config Hassio or lovelace as dashboard. I customized Hadashboard on port 5050, and config to wallpanel.
The webviewer is android 6.0 default one.
I cannot find a way to access the settings of WallPanel after I've saved them when initially configured them. Either I suggest an update to the documentation saying how to access them OR add an option somewhere to access them and change them.
Running WallPanel on a Lenovo Pad using Android of a version updated yesterday Nov 9, 2018
Tried on two devices and screen just dims to min brightness but will not switch off. Enabling the option keep screen awake works as expected..
Add the possibility to take a screenshot.
Perfect when you want to confirm what the result is after a change on the webpage.
I tried the application on a mobile and a tablet with Android 7 and it works perfectly, but instead on a tablet with Android 4.2.2 it does not show the history_graph cards.
Good Morning,
I have now installed the latest version of WallPanel and I have a problem with the video stream. The image appears all green ...
I've already tried reducing the FPS to 1 and no effect. In the previous version (the original) worked correctly.
The tablet in question is a samsung GT-P7500 with android 7.1
Any help or tips?
Thank you
Hi, first of all thx for picking up this great app. I'm using a tablet with android 7.1.2 I've installed wallpanel from the playstore. I only get the blue bar on top when opening ? Hass (regular page and lovelace) page open fine in chrome brower. honoustly don't know where to start. Any help ?
Thx!!
Describe the solution you'd like
Feature request: Device volume controllable through MQTT/REST, will work well with {"audio": "http://<url>"}
Something like {"volume": 50}
Is your feature request related to a problem? Please describe.
I don't have a MQTT server currently but Home Assistant provides the rest sensors which could be used to obtain the sensor data.
However when calling the REST api on http://192.168.1.101:2971/api/state only the currentUrl, screenOn and brightness values are returned, however when sensors are enabled additional data such as Battery level, Temperature is provided to MQTT.
Describe the solution you'd like
If sensors are enabled the REST API would also return the sensor data.
Option I see would be to add the additional sensors to the following in WallPanelService.kt
private val state: JSONObject
get() {
Timber.d("getState")
val state = JSONObject()
try {
state.put(MqttUtils.STATE_CURRENT_URL, appLaunchUrl)
state.put(MqttUtils.STATE_SCREEN_ON, isScreenOn)
state.put(MqttUtils.STATE_BRIGHTNESS, screenBrightness)
} catch (e: JSONException) {
e.printStackTrace()
}
return state
}
Would also be nice to have motion and face detection in here (maybe clearing the flag on next call or after a timeout period) as while this wouldn't be as fast it would save on needing to implement an outbound rest/service call.
PS. Basic example for Home Assistant using the currently available values in the REST API
sensor:
- platform: rest
name: Front Door tablet screen
resource: http://192.168.1.101:2971/api/state
value_template: '{{ value_json.screenOn }}'
json_attributes:
- brightness
- currentUrl
camera:
- platform: mjpeg
name: Front Door tablet
mjpeg_url: http://192.168.1.101:2971/camera/stream
Describe the bug
When ever the app gains focus it overrides the system setting for brightness, and increases the brightness to 100%. This appears to occur regardless of whether the camera based dimming behaviour is enabled.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Either the system brightness should be honoured, or some option to disable the override behaviour should be made available.
Smartphone (please complete the following information):
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.