question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a sensor for whether Work Profile is enabled

See original GitHub issue

Is 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:closed
  • Created 2 years ago
  • Comments:19 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
zmartiescommented, Dec 19, 2021

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.

1reaction
dshokouhicommented, Oct 11, 2021

Not having much luck with the above intents nor is there anything useful in ADB logcat 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lock your work profile - Android Enterprise Help
If your device has a fingerprint sensor, you can use your fingerprint to unlock your work profile. First though, you need to set...
Read more >
Sensors | Home Assistant Companion Docs
Several different sensors around the state of WiFi. Work Profile, None, Whether or not the work profile is currently active on the device....
Read more >
Sensors Off | Android Open Source Project
When in airplane mode, devices can still access some sensors to enable specific functionality, such as screen rotation and taking pictures.
Read more >
Work profile on corporate-owned devices (WPCO) - IBM
Supported WPCO policies ; Security > Device Security. Allow fingerprint on personal profile, If set to false, disables the fingerprint sensor on the...
Read more >
How to Configure Android Profiles - VMware Docs
Workspace ONE UEM only controls the Work Profile. Managed apps install inside the Work Profile and display an orange briefcase badge to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found