Enable Phone State sensor on Android Tablet #609
-
Describe the featureThe Home Assistant app on Android phones includes a Phone State sensor, which detects whether the phone is ringing or in a call. On tablets, it's still possible to give the app the Phone permission, but the Phone State sensor isn't available. Having the sensor enabled would allow Home Assistant to detect whether the tablet is currently being used to make a video call via WhatsApp, Messenger, Zoom, etc. Use casesSet music/TV to pause when making or receiving a video call. ExamplesNo response Anything else?No response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
the phone state sensor requires the device to have a cellular radio in order to appear: The audio state sensor will be the one you want as it will update to https://companion.home-assistant.io/docs/core/sensors#audio-sensors |
Beta Was this translation helpful? Give feedback.
the phone state sensor requires the device to have a cellular radio in order to appear:
https://github.com/home-assistant/android/blob/main/common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/PhoneStateSensorManager.kt#L125
The audio state sensor will be the one you want as it will update to
in_communicationwhen you have a call on the tablethttps://companion.home-assistant.io/docs/core/sensors#audio-sensors