How to use this IOS lock screen widget. Display states from HA

Hey there. First post here. Have been using HA for a couple of months and loving its robust flexibility.

Was wondering if anyone has had any luck using this IOS lock screen widget. Thought it might be helpful in displaying state of garage door on lock screen. Apologies if this is covered somewhere else. Have been holding off for a while to ask to thouroughly search but no luck.

Is this calling a template?


Anyone able to point me in the right direction or to some docs to help with this?

Hey there! Yes you can put a Jinja style template in there and it’ll work. If it works in developer tools template area it’ll work here.

I tried it but abandoned it because the data can be stale. As in it won’t update in real-time.

Matt

Thank you!

1 Like

Yeah got it to work. I see what you mean. I wonder when the data updates.

1 Like

Can anybody help me get to the last screenshot where I can enter the template text?

I‘m not that familiar with the nitty gritty of iOS and when I add the widget and click on it it just opens the companion app.

Many thanks in advance

Hey. With the Lock Screen active long press somewhere in the middle of the screen this should bring up a customize button at bottom of screen. Click that, select the Lock Screen option on left. Tap the widget area, then tap the widget you want to edit. This should bring up the screen you’re wanting.

It updates every 00, 15, 30 and 45 minutes on every hour, i.e. 4 times per hour.

I wonder if we can trigger it to update at other times, though.

EDIT: scratch that, the 00, 15, 30 and 45 apparently only applies to Apple Watch Complications :frowning:

I tried following your instructions but am still unable to configure the widget.

then tap the widget you want to edit. This should bring up the screen you’re wanting

This just brings the widget selector up again, it does not lead to the Home Assistant facility to configure the widget.

I had to restart my Iphone and saw that in another post too. Worked for me.

Has anyone found out how often iOS updates the lockscreen widget?

For help with actually designing the template you will need to “write” some code. In Home Assistant, go to Developer Tools, then Template. Modify the sample code, and if the preview there works, copy that into the upper and lower text template of the ios widget

Here an example

Is a bit useless for me because the value is not up to date. Anyone an idea how to update the value more frequently?