Lovelace address for 'Add to home screen'

I’ve set up a lovelace page but I want to use it as shortcut on my android. The usual directions are navigate to the page, click menu, Add to Home screen. The issue is that it pulls the address using manifest.json and that is hardcoded to /states. As a hack, I edited the start_url in the file below. I know lovelace is still new but it would be nice to have a configuration for the manifest start_url

/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/frontend/__init__.py

the address is http[s]://yourhassaddress:8123/lovelace

Indeed it is, but above I’m asking for a configuration feature to allow the “Add to Home screen” on a mobile device to allow pointing to the lovelace address instead of hard coding it to /states

You could also use: https://github.com/ciotlosm/docs-lovelace#default-view

Thanks! A little weird having the redirect flash the page, but since it sounds like it will be addressed in .73, this is good for now.

I’ve updated to .73, removed the hack, and clicked >> Set lovelace as default page on this device << it works when visiting / from Chrome on Android, but using in “Add to Home screen” still results in navigating to /states

1 Like

Hi. How to add lovelace ui here, a new menu item?

could you not just add the lovelace address within the iframe component?

No… Duplicate the left panel

Any update on this ? Just ran into same issue…

EDIT:
Actually it seems to be working now, create home screen shortcut, then open it and change to use lovelace on this device.

Yep. Just realized this. The important part of me reading and paying attention to the details:
>> Set lovelace as default page on this device <<
THIS DEVICE being the key.

@MartiAbernathey where did you read this? can you point the doc url pls? thansk.

note it says “this device”. Hence you must make it the default on each device to make it stick.