j-a-n / lovelace-wallpanel

🖼️ Wall panel mode and photo screensaver for your Home Assistant Dashboards
GNU General Public License v3.0
486 stars 44 forks source link

Black Screen at night, user defined wallpanel when someone is home #252

Closed kobraevents closed 4 months ago

kobraevents commented 4 months ago

First: Very cool project! I love it and using it since a year.

What i like is to set a time-scheduler in wich the wallpanel is working. For example: betwenn 8am and 10pm the wallpanel is showing pictures, oterhwise it shows a black screen. Also for my parents i need a way to set wallpanel active when some is home. Tracking the mobile phone is not the problem.

i know there is a boolean which one can set enabled or disabled and the wallpanel starts its routine but its not what iam looking for. on the devices of my parents and grandma i cant run kiosk, so i need to modify the "black_screen_after_time" ?! how can i do it?

creating an automation is simple but how to get wallpanel to show black screen.

j-a-n commented 4 months ago

Hello, you can use profiles for that.

  profiles:
    day:
      black_screen_after_time: 0
    night:
      black_screen_after_time: 1
  profile_entity: input_select.wallpanel_profile
kobraevents commented 4 months ago

so you can use multiple profiles in one instance (on one device)? I use profiles for differents tablets like for grandpa and my parents.

profiles: user.grandpa: .... user.parents: ....

whrere should i add the profiles for day and night?

Edit: OK i got it, i will try what you mentioned

kobraevents commented 4 months ago

Solution works fine!

profiles:
  user.grandpa:
    profiles:
    grandpaday:
    ...
   grandpanight:
    ...
  ...rest of code