iantrich / restriction-card

🔒 Apply restrictions to Lovelace cards
MIT License
254 stars 22 forks source link

Card not rendered on mobile #101

Closed vazquezjm closed 9 months ago

vazquezjm commented 9 months ago

Checklist:

Release with the issue: 1.2.9

Last working release (if known): N/A

Browser and Operating System: Home Assistant mobile App 2023.9.2-full on Android 13

Description of problem: The card is not rendered in the HA Android App (it is on the browser)

Code

restrictions:
  confirm: null
  pin:
    code: 1234
card:
  type: button
  entity: button.porton
  icon: mdi:gesture-tap-button
  icon_height: 100px

image

ildar170975 commented 9 months ago
  1. You have not provided a FULL code. At least a type: xxxxx line is missing.
  2. The card does work at least in Chrome+Win10, iOS Companion App (iOS 15.x). Check your setup if it works with a desktop browser.
  3. If the card does not work in Android Companion App only - then this should be addressed to this App))). Start with resetting a Frontend cache on your app.
vazquezjm commented 9 months ago

You have not provided a FULL code. At least a type: xxxxx line is missing.

Here's the full code for the card:

type: custom:restriction-card
restrictions:
  confirm: null
  pin:
    code: 1234
card:
  type: button
  entity: button.porton
  icon: mdi:gesture-tap-button
  icon_height: 100px

The card does work at least in Chrome+Win10, iOS Companion App (iOS 15.x). Check your setup if it works with a desktop browser.

This is how it looks like in Chrome v117.0.5938.92 + Win 11: image

If the card does not work in Android Companion App only - then this should be addressed to this App))). Start with resetting a Frontend cache on your app.

I will post back

vazquezjm commented 9 months ago

If the card does not work in Android Companion App only - then this should be addressed to this App))). Start with resetting a Frontend cache on your app.

Had to re-download the Frontend integration from within the Companion App and that solved the issue. Thanks