#Using the "details" widget on the iOS lockscreen.

1 messages · Page 1 of 1 (latest)

sterile zinc
#

It was a toss up if I posted this here or #1284966664357810196 .

I'm trying to setup a iOS lock screen widget using the "details" widget; essentially of the three entities listed, I want to return the entity that is in an "on" state. Bonus points if I can print Off Mid or On respectively.

I'm looking at the templating doc https://www.home-assistant.io/docs/configuration/templating/ as a starting point.

Jinja is here: https://dpaste.org/bPWcv

When I put that into the widget I'm getting a [] printed (yes one of the three entities is On

I've never gotten these widgets working prior and this is only my second or third time templating so any help is appreciated-- thanks!

pliant willow
#

Please use HA developer tools template tab to test your code before adding to Lock Screen

#

For example my code to display Apple Watch battery level is:

Watch {{ states['sensor.bruno_s_iphone_watch_battery_level'].state }}%