A different take on designing a Lovelace UI

My Popup Card for the camera looks like this:

action: fire-dom-event
browser_mod:
  command: popup
  title: Kamera
  style:
    hui-grid-card:
      $hui-entities-card$: |
        #states {
          padding-bottom: 0 !important;
        }
      $hui-history-graph-card$ : |
        .content {
          padding: 1.8em 2em 1.8em 2em !important;
        }
      $hui-glance-card$ : |
        .entities.no-header {
          padding-top: 0 !important;
        }
      $: |
        button-card {
          justify-self: center;
          margin: 0.8em 0 2.5em 0;
          width: 100%;
        }
        #root {
          grid-gap: 0 !important;
        }
        hui-map-card {
          height: 99.5% !important;
        }
  card:
    type: grid
    columns: 1
    square: false
    cards: 
      - type: picture-entity
        entity: camera.blink_miccam1
        show_name: false
        show_state: false


      - type: entities
        show_header_toggle: false
        entities:
          - entity: script.camera_stream
            name: Kamera auslösen
            icon: mdi:cast   

Did this help?

I cant change the color of my lights anymore. Have anybody an idea why?


can you please share your yaml for this ui

thank you very much, it was a beginner mistake

Hey @Mattias_Persson,

I’ve tried to update my person automation as you did in your last update.
But you have only 2 people in your house. I have four. Did I do this right here?

- id: '8423590985012'
  alias: Person Home
  initial_state: true
  trigger:
    - platform: state
      entity_id:
        - person.paul
        - person.nathalie
        - person.juliette
        - person.julien
      from:
        - home
        - away
      to:
        - home
        - away
  action:
    - choose:
      - conditions: >
          {{ trigger.entity_id == 'person.paul' }}
        sequence:
        - service: mqtt.publish
          data:
            topic: homeassistant/persistence/paul
            payload_template: >
              {{ now() }}
            retain: true
        - service: mqtt.publish
          data:
            topic: homeassistant/persistence/juliette
            payload_template: >
              {{ now() }}
            retain: true
        - service: mqtt.publish
          data:
            topic: homeassistant/persistence/julien
            payload_template: >
              {{ now() }}
            retain: true
      default:
        - service: mqtt.publish
          data:
            topic: homeassistant/persistence/nathalie
            payload_template: >
              {{ now() }}
            retain: true

I don’t understand the default: thing going on.

The way I did it, I don’t have the time in the button anymore. I did change everything else accordingly.
Thanks

i am quite new to home assistant, can somebody explain it in simple words??:sweat_smile::sweat_smile::sweat_smile:
i have home assistant set up(the basic thing) just want a dashboard

Hello @Se7enair ! How did you manage to add cameras on your setup?

Hi
I am trying to make a sensor for my udm_unifios I have the sensor template in place also changed the secret file to match my UDM and testet that the user and password I am using is working, but still I am not able to get the sensor working keep saying unknown, did you do anything on UDM to make this work??

@Mattias_Persson
Hello,

I’m looking to get a count of open doors like what was done for the lights in the Sidebar.
How can I do it?

I’ve added “append” so you can add your door list there

Nope, try curl command in terminal first and make note of any errors

No, away is wrong and you need trigger.entity_id for each person

https://www.home-assistant.io/docs/scripts/#choose-a-group-of-actions

It just means “else” and it’s optional

1 Like

Everything up-to-date?

Are you going to share your secrets.yaml? It’s done manually

type: picture-entity is its own card and is not a valid for type: entities. You can however use the “internal” name type: custom:hui-picture-entity-card [source] (or hui-element)

I’d skip entities altogether and if you need other cards group them in a vertical-stack

I did change all instances of your “not_home” to “away” so it should work, right?

https://www.home-assistant.io/integrations/device_tracker/#device-states

1 Like

You have trigger identity for 2 people. I just made it 4. Does that not work?

That part is correct but the action you’ve posted is “if person.paul changes state update timestamp of paul, juliette and julien”

1 Like

I saw that some guys here were using the thermostat-popup-card by DBuit.
There are some issues with it and because the repo is not well maintained I added two pull request to the original repository.

Additionally I adjusted some styles. If you want your thermostat popup to look like the screenshot below, feel free to use the URL of my fork when installing via HACS:
https://github.com/moritzlang/thermostat-popup-card

5 Likes