Add a sensor for whether Work Profile is enabled
See original GitHub issueIs your feature request related to a problem? Please describe. I have created a so called “work mode” (see code) in my Home Assistant instance that turns on the lights at my desk, sends a push notification through my phone, etc. I currently have no way of syncing this work mode (and, in turn, the lights at my desk) with the work profile on my android phone, which can be toggled on and off.
Describe the solution you’d like
I would like a sensor that reflects the state of the work profile on my phone in Home Assistant (could be a binary_sensor
since it is either on
or off
), so that I can sync the state of my phone’s work profile with my Home Assistant’s work mode.
Describe alternatives you’ve considered, if any I do not see any alternatives. Suggestions are welcome!
Additional context I suppose the sensor could work much like the Do Not Disturb sensor, assuming there is a similar variable.
Issue Analytics
- State:
- Created 2 years ago
- Comments:19 (12 by maintainers)
Top GitHub Comments
The intents mentioned above are the correct ones, but they won’t be received automatically - you have to explicitly register to receive them.
I’ve coded a working version of the sensor in https://github.com/home-assistant/android/pull/2026.
Not having much luck with the above intents nor is there anything useful in ADB logcat 😦