🌻 Lovelace UI • Minimalist

Sorry, I have one more question. I have a strange behavior with the popups placed on the right side:

2022-06-29_12-01-35_170

Do some one has an idea of what’s happening?
Thank!

2 Likes

@basbrus: may I ask for your help regarding the translation engine? Just upgraded to 1.0.2, I was able to iron out all of the issues I got, except 1 thing. I have 2 air conditions where the hvac_action is not provided by the integration. I created 2 helpers to calculate the action from the current and target temperatures, and also adjusted the thermostat card to take those values from the helper entities. Unfortunately the translation is taking the label from the main entity:

    ulm_translation_hvac: >
      [[[
        if (typeof(entity) !== 'undefined' && entity !== undefined){
          let state = entity.state;
          let d_class = entity.attributes.device_class;
          let def = ["unknown", "unavailable"];
          let lang = hass["language"];
          let action = entity.attributes.hvac_action;

So I have this now:

image

In the thermostat card I performed the following change:

entity.attributes.hvac_action → states[variables.ulm_card_thermostat_helper_entity].attributes.hvac_action

Can you help with the modification of /config/custom_components/ui_lovelace_minimalist/lovelace/translations/default.yaml ? Thank you.

What I would do is create 2 custom files in the custom card directory. This will prevent overrides with updating. One for the translation engine → custom_default and one for the card itself → custom_card_thermostat

In both copy over the original code and change the name of the full template. In custom_default change

ulm_translation_hvac: >
      [[[
        if (typeof(entity) !== 'undefined' && entity !== undefined){
          let state = entity.state;
          let d_class = entity.attributes.device_class;
          let def = ["unknown", "unavailable"];
          let lang = hass["language"];
          let action = entity.attributes.hvac_action;

To:

ulm_translation_hvac: >
      [[[
        if (typeof(entity) !== 'undefined' && entity !== undefined){
          let state = entity.state;
          let d_class = entity.attributes.device_class;
          let def = ["unknown", "unavailable"];
          let lang = hass["language"];
          let action = states[variables.ulm_card_thermostat_helper_entity].attributes.hvac_action;

Than change in custom_card_thermostat the template ulm_translation_engine to name of the template in custom_default.yaml

Thank you, I will do that. Half of this is already done, as I started the build of my dashboard with the creation of the custom thermostat card. I was just confused what to do with the new translation engine. I will give feedback if I managed to fix this, thanks again, Bas.

EDIT: tried to edit directly the default translation file (keeping in mind it will be overwritten during the next update), swapped the entity to the helper, but no change after refresh of the dashboard. Any idea what could go wrong? Thank you.

I noticed last night that the popups on my regular minimalist dashboard (not the adaptive dashboard) stoped working after upgrading to 1.0.2. Thought I broken when working on my adaptive dashboard yesterday but if I roll back to 1.0.1 they work just fine. Was there a breaking change with 1.0.2 and popups?

From what I can tell you just need to add uln_card_name_enable_popup: true for this to work which I have. I also setup the adaptive ui for icon tap action as popup. Taping the icon on the card just brings up more into. However if I double tap the icon it will open the popup

I have exactly the same.
My light card definition looks like this:

      - type: "custom:button-card"
        template: card_light
        entity: light.0x588e81fffeacf5c4
        variables:
          ulm_card_light_enable_slider: true
          ulm_card_light_enable_color: true
          ulm_card_light_force_background_color: true
          ulm_card_light_enable_collapse: true
          ulm_card_light_enable_popup: true

And custom_actions.yaml looks like this:

---
ulm_custom_actions:
  variables:
    ulm_card_tap_action: "toggle"
    ulm_card_hold_action: "popup"
    ulm_card_double_tap_action: "more-info"
    ulm_icon_tap_action: "toggle"
    ulm_icon_hold_action: "popup"
    ulm_icon_double_tap_action: "more-info"
    ulm_name_tap_action: "toggle"
    ulm_name_hold_action: "popup"
    ulm_name_double_tap_action: "more-info"

I must be missing something. Hold does not show a popup at all and double tap shows the old popup. I’ve never been able to show the custom popup on a light card.

Help is appreciated.

can someone help me understand the following.

default theme: pink

1.yaml:
title: 1st view
path: 1st
theme: blue

2.yaml:
title: 2nd view
path: 2nd
theme: red

will the global setting of the theme be over write with the theme setting of the views?

because if that’s how it should work, it’s not working for me. I will always get the default theme.

thanks

Removed as i figured it out.

Popups also have stopped working for me too :frowning:

Hello everyone,

after the new update I have problems with the custom-card “Waste collection”. It’s not showing anymore in frontend. I really don’t know what the problem is, because the code seems to be fine, also after the breaking changes.
Can someone help me?

In my testing I found that icon_tap_action just doesn’t work. No matter what you change it to it always just opens more info. All the other custom actions work just fine.

I opened an issues for it on the GitHub page https://github.com/UI-Lovelace-Minimalist/UI/issues/826

1 Like

Solved Thanks.

I have a chips that shows the number of all lights/switches that are ‘on’.
I would like to have an popup when clicking on it which shows all these devices, how do i do this?

Hello I just used sisimomo printer card but is not working for me.

        - type: "custom:button-card"
          template: "custom_card_sisimomo_printer"
          entity: binary_sensor.hp_printer_connectivity
          variables:
            printer_name: HP 6432
            cartridges:
              - label: "B"
                entity: sensor.hp_printer_inkcartridge_black
                color: "black"
              - label: "C"
                entity: sensor.hp_printer_inkcartridge_cyanmagentayellow
                color: "rgba(var(--color-yellow), 1)"
              - label: "A"
                entity: "70"
                color: "green"

and what returns is;

I dont understand why as I am using with those same sensors the printer card and works well…

Thank you for any tip you can give me as I am a bit noob XD

any help would be really appreciated please

some (more) questions about the Custom-card “Lock”.
I have implemented it, and I can lock / unlock the door by clicking on it.
But what do I do to make the small icon that shows the door open appear? Like seen here:
image

This brings me to something that goes beyond this card, and that is how to use state and attributes of an entity.
In my case, I can see this for my door lock:

For this specific card it is the state attribute “door_state” I’m after.
So what I don’t understand is what do i put on this line in the card configuration:

ulm_custom_card_eraycetinay_lock_door_open: binary_sensor.door_open

If I just put the entity name in there (lock.utedor_las), it doesn’t seem to work.

And what about the battery icon, shown here:
image
Does that only appear when battery is low?

Thanks

Hi,

You do create binary sensor based on your state attribute:

ulm_custom_card_eraycetinay_lock_door_open: binary_sensor.door_open

For this, add this code to binary_sensor code in your configuration.yaml:

binary_sensor:
  - platform: template
    sensors:
      door_open: # Rename this to choice your binary_sensor name
        friendly_name: "name of your choice" #edit this
        value_template: "{{ states('sensor.your_door_sensor') }}" #edit sensor.your_door_sensor with your sensor door
        attribute_templates:
          door_state: "{{ state_attr('sensor.your_door_sensor', 'door_state') }}" #edit sensor.your_door_sensor with your sensor door

hi. im in the process of creating a view for my nvr and wondered if there is any way of changing the color of the card backgrounds to a lightter grey without effecting the rest of the views??

i would also kind of like the icons for the hard disks to be green/red dependant on the health of the drive. is that possible by using a different card?

Thanks.

Had the same problem, and seems it starts throwing exceptions.
I raised a bug for it, maybe you can share your details in the ticket as well

For a while now I try to understand how I can best customize/style my minimalist ui dashboard better.
Created myself a dashboard with a couple tabs and so on.
Using chips, custom card etc.
But havent created by own custom card yet.

For example I would like to have a single chip without text just to present the speed of the ventilation fan on the roof.
Based on a sensor that changes from 0= auto, 1=low, 2=medium, 3=high.

Any advice? or pointers where to look into the documentation as its a bit spread over the place.

The same thing happens here too, they will probably fix it in the next update.