Replies: 9 comments 2 replies
-
Hi! I am also already using another Smart Home project called www.edomi.de for KNX based installations. Somebody hacked together a simple full screen browser for it which automatically dims the screen brightness to the lowest allowed level an app can set. class func disableScreen() {
UIScreen.main.brightness = CGFloat(0.0)
UIScreen.main.wantsSoftwareDimming = true
}
class func resetBrightness() {
UIScreen.main.brightness = CGFloat(AppDelegate.defaultBrightNess)
UIScreen.main.wantsSoftwareDimming = false
} Furthermore, this fullscreen browser then shows a black full screen popup so that everything is dark. I have been using it for over 2 years now without any issues. It is not available in the App store though. Had to compile and install it myself. I am using it in guided access mode. In the settings of the guided access mode I have set "lock display auto" to "never". The screen is so dark that you will think that it is off if you walk by. Of course it is NOT completely dark. I hope that the iOS companion app could also implement this. Should be an easy task. |
Beta Was this translation helpful? Give feedback.
-
One remark: now that WKWebView supports WebRTC getUserMedia() over HTTPS, it is very important to keep the signalling websocket open (e.g. SIP over Websocket) and this can only happen if the iOS device does not sleep. As the device does not sleep anymore, it would be important that the displays dims down if the iDevice is not used. |
Beta Was this translation helpful? Give feedback.
-
@zacwest |
Beta Was this translation helpful? Give feedback.
-
To implement this would require adding support for the mobile_app integration to handle arbitrary service calls or switches for the device. |
Beta Was this translation helpful? Give feedback.
-
@zacwest @mg0716 This is the place where it was introduced (sorry, German language only.) |
Beta Was this translation helpful? Give feedback.
-
Somewhat related to #871 |
Beta Was this translation helpful? Give feedback.
-
I don't disagree that it could be implemented app-side with a bunch of settings/controls, but I'd like to avoid writing any kind of automation engine in the app; making things like this available to HA would allow writing automations on HA which can do this. |
Beta Was this translation helpful? Give feedback.
-
If you have a wall mounted tabled, you probably have a charger on it. If you just implement #871 you can automate this by controlling the charger. |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
This is not related to any problem.
Describe the solution you'd like
It would be great if the user could define a period of time for the app to auto-dim the device's screen using Apple's official API for this. Because the options are limited for auto-lock (no dim option) at the iOS-level, it would be great if the app could handle that much.
For instance, let's say I set an auto-dim timer for
1 minute
. This would mean that I can leave the device unlocked, and as long as Auto-Lock is off within iOS, the screen would simply dim to the desired level after 1 minute.This would have the effect of allowing much faster control of iPads that may be used as control panels on walls. No need to unlock the device with this in place.
Additional context
For a bonus, it would be interesting if you could actually expose the device brightness level control back to Home Assistant. This would allow for some interesting automations where on motion, the screen could return to a high brightness level.
Beta Was this translation helpful? Give feedback.
All reactions