Lovelace Soft UI - Simple and Clean Lovelace Configuration

Is it possible to alter the built in remote to work with AppleTV? I wanna be able to turn off the AppleTv when pressing/holding the power button, but dont have the programming skills required to rewrite that section

What services do you call?

would love to call a service like this one from the HA homepage:

apple_tv_sleep:
  alias: "Make the Apple TV sleep"
  sequence:
    - service: remote.send_command
      target:
        entity_id: remote.lounge_appletv
      data:
        delay_secs: 1
        command:
          - home_hold
          - select
    - service: media_player.turn_off
      target:
        entity_id: media_player.lounge_appletv

the original code for that specific button looks like this:

        tap_action:
          action: call-service
          service: remote.send_command
          service_data:
            command: power
            entity_id: remote.dagligstue

Make that into that:

        tap_action:
          action: call-service
          service: script.apple_tv_sleep

Ahh. And then make the first code to a script?
Thx a lot

Hi. Im trying to incorporate the remote section i dwains dashboard, and when i use the remote code i get the following error:

  File "/config/dwains-dashboard/addons/more_page/apple_tv_remote/page.yaml", line 10, in top-level template code
    {% if is_state('sun.sun', 'above_horizon') %}
jinja2.exceptions.UndefinedError: 'is_state' is undefined

Can any tell what is wrong with that is_state?

This repo is intended for Lovelace, not Dwain’s dashboard.

I know. And im not asking for help to dwains. I’m asking for help with the code for the Remote controller which im trying to incorporate in my ha dwains install…

Dwains uses a weird version of templating, that doesn’t work with Home Assistant-specific templates from what I understand.

Okay. Guess i have to discard the idea :(. Thank you for your help.
Maybe i should try this theme :slight_smile:

Dwains is a whole different theme than this.

I know, But im still trying to find a theme that works best for the house and that is “wife approved” :slight_smile:

Hello!

I’m trying out this theme but having some issues with the “depressed-buttons-look”, when my lights are turned on the button is not “depressed” like shown in the example card button picture.

My button looks like this when the lights are turned on:
image

Im using the Google Light Theme and added the following code to the theme.yaml configuration:

Google Light Theme:

  card-mod-theme: Google Light Theme # Change to your theme name

  card-mod-card: |

    ha-card {

      margin: 20px;

      border-radius: 15px;

      background-color: var(--primary-background-color);

      box-shadow: -5px -5px 15px #ffffff, 5px 5px 15px #ebebeb;

    }

Sorry if this is a noob question (I’m new to HA) and thanks for any reply! :slight_smile:

Hi. This is my bad. I completely overlooked it in the last update. I just updated the code on GitHub for both the theme and the cards. It should work now. Thanks!

Hello,

I’m having trouble with the layout. Somehow on my big screens such as PC and iPad 12.9 it’s displaying the content in 3 columns instead of just one centered column like on the screenshots. Any idea why this could be happening? I already tried uninstalling and installing the theme.

Thanks in advance.

Hi. It seems like it’s a sizing issue. However, I’m not sure I fully understand. Did you put the cards in a Vertical Stack card? If so, can you share some screenshots?

Thanks for the swift reply, it’s now working! Thanks again :slight_smile:

1 Like

Yes, they’re inside a vertical stack, here’s the screenshot.

Please post your lovelace code.