neilimixamo / Home-Assistant-Quick-Look-Mobile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Header have no count and color when device is active

kesm opened this issue · comments

commented

Hello,

I guess I did the configuration wrong but I can't see what is missing.
One of my light is configured this way:

cards:
          - type: custom:button-card # ENTITY 01
            template: light #or 'light_expandable'
            variables:
              entity: light.entree #required light.entity_id
              name: Entrée #optional
              expand_to: #required path if light_expandable template is used

and homeassistant/custom_templates/quick_look_mobile_macros (v2.0.0).jinja is configured this way

# LIGHTBULBS :
{% set light_entity_ids = [
  'light.entree',
] %}  

I tried to restart homeassistant and reload custom theme but it doesn't seem to work

image

Any idea of what is going on?

Hi, your quick_look_mobile_macros (v2.0.0).jinja looks good.

Template sensors changed in v2.0.0, did you add /config/entities/quick_look_mobile_sensors.yaml, restart HA and refresh dashboard (not the theme) ?

If yes, can you try this template model an see if it returns "on" and "1" ?

      {% from 'quick_look_mobile_macros.jinja' import some_lights_are_on %}
      {{ some_lights_are_on().split(',')[0] }}

      {% from 'quick_look_mobile_macros.jinja' import some_lights_are_on %}
      {{ some_lights_are_on().split(',')[1] }}

image

commented

it should be in entities/sensors or entities and should I rename them?
image

Here is the result of the modele execution
image

I think I shouldn't have renamed quick_look_mobile_macros.jinja to quick_look_mobile_macros (v2.0.1).jinja". Could you please rename it back to quick_look_mobile_macros.jinja, restart, refresh dashboard and let me know the outcome?

commented

image

and same behavior

The quick_look_mobile_sensors (v2.0.0).yaml does not need to be renamed in my opinion by you can also rename it to quick_look_mobile_sensors.yaml to be sure

commented

image
same
image

But I don't know which file has 813 lines

commented

I tried with the file not modified and it returns

`off

  0`

I will check again my modification, it must come from me, sorry

commented

Confirmed, it's ok now thank you

Post your solution please so someone with similar issues can find the solution here.

commented

the solution was to copy the content of the initial file from github in my quick_look_mobile_macros.jinja file and modify the entities to match the ones on my homeassistant

Ok, so the header doesn't work for me either. Color is not changing, same for the badgets. Filled in my light entitie into the quick_look_mobile_macros.jinja without luck.

image

commented

what happened if you do the model part described here?
#15 (comment)

Nevermind. Got it, was using a wrong path.