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.

Device controls do not work ("Compatible controls unavailable")

See original GitHub issue

Home Assistant Android version: beta-2234-6c64b31f-full

EDIT: I noticed that the play store was serving an old version of the beta, grabbed the APK for beta-2278-ec6ae434-full – issue persists. Android version: Android 13 Beta 1 (Though, this issue also existed on Android 12L Beta) Phone model: Pixel 6 Pro Home Assistant version: 2022.4.6

Last working Home Assistant release (if known): N/A Description of problem: I cannot use any device controls, it results in “Compatible controls unavailable” being shown when I go to “Add Controls”, despite having set up one of them with a light entity. Traceback (if applicable, to get the logs you may refer to: https://companion.home-assistant.io/docs/troubleshooting/faqs/#android-crash-logs):

04-27 11:41:33.897  4978  6581 E HaConProService: Error getting list of entities
04-27 11:41:33.897  4978  6581 E HaConProService: java.lang.IllegalArgumentException: Mode 4 not supported in flag.
04-27 11:41:33.897  4978  6581 E HaConProService: 	at android.service.controls.templates.TemperatureControlTemplate.<init>(TemperatureControlTemplate.java:188)
04-27 11:41:33.897  4978  6581 E HaConProService: 	at io.homeassistant.companion.android.controls.ClimateControl.provideControlFeatures(ClimateControl.kt:86)
04-27 11:41:33.897  4978  6581 E HaConProService: 	at io.homeassistant.companion.android.controls.HaControl$DefaultImpls.createControl(HaControl.kt:43)
04-27 11:41:33.897  4978  6581 E HaConProService: 	at io.homeassistant.companion.android.controls.ClimateControl.createControl(ClimateControl.kt:18)
04-27 11:41:33.897  4978  6581 E HaConProService: 	at io.homeassistant.companion.android.controls.HaControlsProviderService$createPublisherForAllAvailable$1$1.invokeSuspend(HaControlsProviderService.kt:82)
04-27 11:41:33.897  4978  6581 E HaConProService: 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
04-27 11:41:33.897  4978  6581 E HaConProService: 	at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33)
04-27 11:41:33.897  4978  6581 E HaConProService: 	at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
04-27 11:41:33.897  4978  6581 E HaConProService: 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
04-27 11:41:33.897  4978  6581 E HaConProService: 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
04-27 11:41:33.897  4978  6581 E HaConProService: 	at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:39)
04-27 11:41:33.897  4978  6581 E HaConProService: 	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
04-27 11:41:33.897  4978  6581 E HaConProService: 	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
04-27 11:41:33.897  4978  6581 E HaConProService: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
04-27 11:41:33.897  4978  6581 E HaConProService: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
04-27 11:41:33.897  4978  6581 E HaConProService: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665

Screenshot of problem:

Additional information:

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
TheDevFreakcommented, Apr 27, 2022

heat_cool while it only supports off 🤯

Yeah, these hive devices are certainly something haha…

I feel like the android app should handle these kinds of errors perhaps?

I agree and have submitted a potential fix. Would you be open to installing a test version of the app, re-enabling the climate.computime_slt2_f2e30702_thermostat entity, and checking if it now allows you to add device controls? You can download it from here (use the file app-full-debug.apk), the test version installs alongside the current app and you can remove it after testing without any problems.

Tested this and it works fine. 👍

Interestingly this has lead me to another bug that is when I press and hold on a control it completely crashes systemui, this could be related to Android 13 Beta I spose, but press and hold works fine for controls from the Google Home app, although I suppose that’s for another bug report

0reactions
TheDevFreakcommented, Apr 27, 2022

its a known issue actually #2251 was introduced in a monthly security update

Ah ok, good to know it’s already known.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Control smart devices on your Pixel phone - Google Help
Control smart devices on your Pixel phone. You can quickly control compatible smart home devices like thermostats, lights, locks, and cameras from your...
Read more >
Nokia G50 "Device Controls" Unavailable
Somethings changed, but I cant figure out what. I pull down the setting menu and "Device Controls" is greyed out. This phone is...
Read more >
Android 12 - Device Controls removed from the Power menu ...
238 votes, 141 comments. So Google decided to make "Device controls" basically useless by removing them from the very convenient Power Menu ...
Read more >
Cannot use google home app for device controls.
1. Press and hold power button. 2. Choose app for control device. 3. Choose google Home. It show "Compatible controls unavailable".
Read more >
Question - Power menu "Compatible controls unavailable" issue
I was trying to get Termux power menu device controls to work and encountered this issue seen on screenshot. The same issue occurs...
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