šŸŒ» Lovelace UI ā€¢ Minimalist

hopefully this will help, in config I have the following.

light:
  - platform: group
    name: All Lights
    entities:
      - light.ceiling_light_2
      - light.ceiling_light_3
      - light.signify_netherlands_b_v_lwa018_4c6f3b0b_level_on_off
      - light.light_panels_51_8b_9a
      - light.right_lamp

I did remove the light group and re-add it but now it just shows status ā€œonā€ when one of the lights are on.

the chip code is.

                - type: 'custom:button-card'
                  template: chip_icon_state
                  variables:
                    ulm_chip_icon_state_icon: 'šŸ’”ļø'
                    ulm_chip_icon_state_entity: light.all_lights

and because I couldnā€™t figure out how to use the group code Iā€™m just using one that checks the status of all lights but I have light entities that I donā€™t want to show (iCue lights)

  - platform: template
    sensors:
      current_lights_on:
        friendly_name: All Lights Currently On
        value_template: >-
          {{ states.light|selectattr('state','equalto','on')|list|length }}

This is the default behavior :wink:

1 Like

Change light.all_lights under variables to sensor.current_lights_on

2 Likes

Youā€™re using your light group as the chip state but this should be your created sensor that counts the lights: sensor.current_lights_on. (as mentioned by @jompa68 as well)

                - type: 'custom:button-card'
                  template: chip_icon_state
                  triggers_update: sensor.current_lights_on
                  variables:
                    ulm_chip_icon_state_icon: 'šŸ’”ļø'
                    ulm_chip_icon_state_entity: sensor.current_lights_on

I have also added a triggers_update to make sure the card updates whenever HA updates the sensor.

Lastly, to count the lights in the light group Iā€™ve changed the template_sensor a bit:

  - platform: template
    sensors:
      current_lights_on:
        friendly_name: All Lights Currently On
        value_template: >-
          {{ expand('light.all_lights') |selectattr('state','equalto','on')|list|length }}
1 Like

Thank you! Your amazing! Works great :grin:

v1.0.0-beta.10

Good afternoon everyone,

With the agreement of @CM000n, I publish this release which include popup cards for lights and power outlets.
These cards are ā€œresponsiveā€ depending on your screen size.
As usual, it is up to the community to improve and create new popup cards.
In the future, I will add more compatible cards and more popups :wink:

Whatā€™s Changed

:page_facing_up: Documentation

  • Specific readme for popups is available here

Full Changelog: Comparing v1.0.0-beta.9...v1.0.0-beta.10 Ā· UI-Lovelace-Minimalist/UI Ā· GitHub

:heart: Special thanks to @bavo for his help on creating these popups

:heart: And @CM000n for his hard work on this project.

14 Likes

Is it just me or do the new popups not work. I have all my cards inside Horizontal or vertical stacks:

    - type: horizontal-stack
      cards:     
        - type: custom:button-card
          template: edge
        - type: 'custom:button-card'
          template:
            - card_light
            - popup_light
          entity: 'light.192_168_10_253'     
        - type: custom:button-card
          template: edge

Running HA 2021.12.5 on desktop i just get a blank Popup and in the iOS companion app itā€™s just not loading sometimes also the app crashes

Hi @Freshhat

Can you confirm browser_mod is installed ?

Sure itā€˜s installed using it heavily for some of my automations

Any idea how i could debug why no popup is opening?

When using the pop up code nothing happens


- type: "custom:button-card"
  template:
    - card_light
    - popup_light
  entity: light.cuisine

I changed the entity to a few different lights but no pop up

And thank you everyone for the awesome work!

1 Like

@Freshhat @mbadsey

Your configuration seems to be correct.

Can you try to clear your browser cache ?
Can you have a look to Dev console on your web browser (F12) and see if you have error message ?

Last solution, download again Minimalist theme from GitHub and put it in a new folder. Just update the inclusion in your yaml file. On my configuration, sometimes it doesnā€™t work to overwrite files.

@schumijo,

in my case I have this strange output

the light ā€œlight.lumiere_salonā€ is a group of 4 lights.


type: custom:button-card
template:
  - card_light
  - popup_light
entity: light.lumiere_salon
icon: mdi:sofa
name: Salon

Last question, where can I find ā€œslider-cardā€ ?

Thanks

@schumijo
You might need to do a hotfix of our popup card.

The slider-card was moved to a new repository. From here to here.
Iā€™m using the new repository but Iā€™m guessing your part of the popup is using the old slider.

@laurentdb
A temporary solution could be to install both cards for now.

@bms thanks for your reply.

The new repository is using

type: custom:my-slider

and the popup template is using

type: custom:slider-card

And I think so thatā€™s why I canā€™t find it.

The temporary hot fix didnā€™t solved my issue :frowning: I still those 4 big circles instead of oneā€¦
The definition of the light is like this:

light:
  - platform: group
    name: Lumiere salon
    entities:
      - light.salon1
      - light.salon2
      - light.salon3
      - light.salon4

Maybe I am doing wrong.

@bms
Thank you for the PR

@laurentdb New version 1.0.0-beta10-hotfix released

Should solve slider card new repository and light group display.

1 Like

What is required to get the popup card working? I have complete reinstall the UI, clean my caches but still the popup is not opening. I have tried both for light and and a power outlet/switch.

      - type: "custom:button-card"
        template:
          - card_light
          - popup_light
        entity: light.slaapkamer

      - type: "custom:button-card"
        template:
          - card_power_outlet
          - popup_power_outlet
        variables:
          ulm_card_power_outlet_consumption_sensor: sensor.elektrischdeken_energy
          ulm_popup_power_outlet_sensor1: sensor.elektrischdeken_energy
          ulm_popup_power_outlet_sensor2: sensor.elektrischdeken_energy
          ulm_popup_power_outlet_graph_sensor: sensor.elektrischdeken_energy
        entity: switch.elektrischdeken
        name: Test

You need to install the browser_mod

Can I add the same lights to multiple light groups?

Only one way to find out :sweat_smile:

I donā€™t know

It works like a charm! thanks