UI icon indicating copy to clipboard operation
UI copied to clipboard

Popup not working in Mobile App

Open M3m0rys opened this issue 2 years ago • 22 comments

the Light Popup is not working in Mobile App Working fine in Browser

Mobile App Version 2022.03.0-full Device s22ultra with Android 12

M3m0rys avatar May 15 '22 17:05 M3m0rys

I also have this problem on my android tablet from lenovo m10 plus on my iphone does it still work?

jrspowers avatar May 15 '22 22:05 jrspowers

Works like a charm on my Samsung Galaxy A32 with HA app with Hold-action.

Have you add this variable in your lovelace card? ulm_card_light_enable_popup: true

Eltarius avatar May 17 '22 17:05 Eltarius

Works like a charm on my Samsung Galaxy A32 with HA app with Hold-action.

Have you add this variable in your lovelace card? ulm_card_light_enable_popup: true

Yes Code ist formatted correctly and variable is set true

M3m0rys avatar May 17 '22 18:05 M3m0rys

same for the media player popup Nokia 7.2 (Android 11)

wokkeltje13 avatar May 21 '22 07:05 wokkeltje13

Since last core update it seems like popups are working again

M3m0rys avatar May 21 '22 21:05 M3m0rys

For me popups are still not working. What version do you mean with latest core version?

wokkeltje13 avatar May 22 '22 06:05 wokkeltje13

Supervisor 2022.5.2 Core 2022.05.5 OS 8.1

I also unchecked the "include custom cards and resources" frome the minimalist ui conig

M3m0rys avatar May 22 '22 06:05 M3m0rys

Home Assistant Core 2022.5.5 Home Assistant Supervisor 2022.05.2 Home Assistant OS 8.1

Also unchecked the "include custom cards and resources" frome the minimalist ui config.

It is not working on Android and also not on MS Edge on my PC.

To be correct, You just need to keep pressing on the light button to get the popup?

wokkeltje13 avatar May 22 '22 07:05 wokkeltje13

Wierd enough my pop-ups just stopped working again

M3m0rys avatar May 22 '22 07:05 M3m0rys

It wasn't me :-) I experience the issue with

- type: "custom:button-card" template: card_light entity: light.bureaulamp variables: ulm_card_light_enable_color: true ulm_card_light_force_background_color: true ulm_card_light_enable_slider: true ulm_card_light_enable_collapse: true ulm_card_light_enable_popup: true

and also for

- type: "custom:button-card" template: card_media_player entity: media_player.bureau name: Sonos variables: ulm_card_media_player_enable_art: true ulm_card_media_player_enable_controls: true ulm_card_media_player_enable_volume_slider: false ulm_card_media_player_enable_popup: true

wokkeltje13 avatar May 22 '22 07:05 wokkeltje13

Our code looks the same I don't think the issue is the code

M3m0rys avatar May 22 '22 07:05 M3m0rys

I had the same issue with pop ups not working. It seems to only work when running through a secure https connection. Once I had a this setup for my local network it started working. If it is working on your phone I'm guessing this is through Nabu Case cloud which is a secure https.

PadEstel avatar May 23 '22 09:05 PadEstel

HTTPS has no effect for me.

wokkeltje13 avatar May 23 '22 11:05 wokkeltje13

@wokkeltje13 How have you setup browser_mod?

basbruss avatar May 23 '22 11:05 basbruss

Installed browser_mod using hacs and just added

browser_mod: prefix: "browser_"

to my configuration.yaml still no success

wokkeltje13 avatar May 23 '22 12:05 wokkeltje13

Your indentation is wrong, just add browser_mod: or if you want to use the prefix add a tab to your intentation. Can you check Chrome Developer Tools to see what error it trows about browser_mod?

If you want to use the prefix part it's like this:

browser_mod:
  prefix: "browser_"

AndyVRD avatar May 23 '22 13:05 AndyVRD

strange things, nothing modified (intentation was correct, but github removed the spaces)

currently everything is working, even on http. don(t understand.

wokkeltje13 avatar May 23 '22 13:05 wokkeltje13

Indentation gets lost when not pasted in a code block started with: "```yaml"

It could have been a caching issue that prevented your browser from loading the browser_mod content.

basbruss avatar May 23 '22 13:05 basbruss

i am also having the issue of pop up cards not working. They seem to work if i go into HACS, reinstall any frontend thing, and reload. It will then work until i close out of the companion app and relaunch it. it will then no longer work. Haven't had any luck finding any sort of error to help with the troubleshooting but if someone can point me in the direction i can take a look.

Not sure why reinstalling something in HACS temporarily fixes it, but it does. at least for me. simply reloading the UI however, does not make it work.

Example of non working popup (the lamps), but none of them work anywhere. They do work in a web browser, just not the companion app (android).

  - type: grid
    columns: 2
    square: false
    cards:
      - type: "custom:button-card"
        template: card_light
        entity: light.office
        variables:
          ulm_card_light_name: Ceiling
      - type: "custom:button-card"
        template: card_light
        entity: light.office_lamps
        variables:
          ulm_card_light_enable_popup: true
          ulm_card_light_name: Lamps

damusmf avatar Jun 13 '22 22:06 damusmf

I got the same problem. ulm_card_light_enable_popup works on Chrome on my Android 12 device, but not on Home Assistant companion App on the same device. I deleted the Cache of the App but it is still not working.

it-guy92 avatar Jul 24 '22 13:07 it-guy92

I got the same problem. ulm_card_light_enable_popup works on Chrome on my Android 12 device, but not on Home Assistant companion App on the same device. I deleted the Cache of the App but it is still not working.

Do you use the New popup feature of the "theme"

M3m0rys avatar Jul 24 '22 13:07 M3m0rys

I use this Code in the attached Picture. I'm sorry to post the Code as Picture, but i'm on my Mobile Phone and could not copy the Code from the Editor on Home Assistant. Screenshot_20220724-160600_Chrome

But i Just found a solution, it wasnt enough to clear the Cache of home Assistant companion Android app, i even needed to delete Data of the App. Now its working and the light popup opens.

it-guy92 avatar Jul 24 '22 14:07 it-guy92

It indeed looks like some very persistent caching on the companion app side. Clearing the data & cache in android settings did the trick. Thanks @it-guy92!

wterpstra avatar Aug 24 '22 22:08 wterpstra