Homekit Infused 5 (HKI) v2023.1.3

Try this

# Home Assistant Update
- type: conditional
  conditions:
    - entity: sensor.version_updater
      state: "Update available"
  card:
    !include
    - '../hki-base/templates/header/subtitle-notification-template.yaml'
    - icon: mdi:home-assistant
      name: There is an update for HASS!!

@jimz011, do you know a solution for this?

The default theme has no options. It is what it is. If you want to change the font size and such you must use the custom themes. Also you can’t really make different text sizes per device without adding a lot of code. (It is possible though).

Ok, I assumed it would be easy for someone with the right knowledge. I will try a custom theme. Thanks.

Not sure if you would be able to help me with this, as I think I stole some of the original design/yaml from you, but I just upgraded from 2021.11 to 2021.12 and after that upgrade I am getting the below black bar in my header. Previously, it would be entirely blue on that second row where it is currently black. I have it narrowed down to my markdown card config (shown below), but I can’t figure out why its causing this issue when I try and upgrade. Do you see an issue with my card or have a better suggestion on how to fix?

      - content: ' '
        style: |
          ha-card {
            font-family: var(--font-family);
            font-size: var(--header-font-size);
            font-weight: var(--header-font-weight);
            color: var(--header-text-color);                
            box-shadow: none;
            height: 20px;
            margin-top: 1px;
            margin-left: 2px;
            letter-spacing: -1px;
            overflow: visible;
          }
        type: markdown
        color_type: blank-card
        styles:
          card:
            - '--ha-card-background': transparant
            - box-shadow: none
            - width: 10px

There are 2 cards in your code, but only one has a leading hyphen. Maybe fix that first.

Your right, it should be this:

      - content: ' '
        style: |
          ha-card {
            font-family: var(--font-family);
            font-size: var(--header-font-size);
            font-weight: var(--header-font-weight);
            color: var(--header-text-color);                
            box-shadow: none;
            height: 20px;
            margin-top: 1px;
            margin-left: 2px;
            letter-spacing: -1px;
            overflow: visible;
          }
        type: markdown

but it still returns that dark gray bar. Should color be the deciding factor for the color of the card? I have tried changing it and i has no effect

I wouldnt know, but you could try forcing a background color in your markdown card.

      - content: ' '
        style: |
          ha-card {
            background: dodgerblue !important;
          }

Thank you for your help! I’ll give that a try. I know this was an aside, so I appreciate it

Thanks Jim

Isnt this the same? It at least throws the same error :frowning:

I can’t figure out how to get a slider for a dimmable light. I have a few Hue lights that only dim (no colour. No colour-temperature, just dim)

I tried type switch with slider, but that only gives me an on-off switch

Any suggestions/hints? :slight_smile:

@lennardw Try adding the following attributes to your button:

addons:
  button:
    - title: my buttons
      entities:
        - entity: light.my_light
          type: switch
          popup_style: slider
1 Like

It works! :slight_smile:

In my mind I already tried that. I must have made a typo earlier…

Thanks!!

1 Like

Hi @jimz011 ,

I just activated the scene buttons in my views.yaml which shows the buttons in my scenes menu within HomeKit Infused (2022.4.1). However, when I click on a scene nothing happens, accept for an error message at the bottom saying “Failed to call service “Scene/turn.off”. Service not found”. When I go to the developer tools and manually test the configured scene it does work like it should. From what I’ve read in the Home Assistant documentation (Scenes - Home Assistant) there is only a service called “scene.turn_on”. It says “scene.turn_off” doesn’t exist.

What am I doing wrong?

I’m on:
Home Assistant Core 2022.5.5
Home Assistant Supervisor 2022.05.3
Home Assistant OS 8.1

That is correct, scenes only accept the turn_on service.

In this case the button addon in HKI defaults to a toggle. You should add a custom tap_action and hold_action.

E.g.

addons:
  button:
    - title: Scenes
      entities:
        - entity: scene.livingroom
          tap_action:
            action: call-service
            service: scene.turn_on 
            service_data:
              entity_id: scene.livingroom
          hold_action:
            action: none
1 Like

Hi Jimz,
Thanks for the advice! It worked.

Hello Jimz!

First of all, I would like to thank you for putting in so much effort and coming up with such an elegant and beautiful dashboard.
I am little bit of noob when it comes to HA and HKI. I am trying to install it on my HA. I have restarted the server and can see Komekit Infused in the sidebar. However, when I click on that, I am getting an error and the UI is not loading. Am attaching the screenshot here. I have followed the installation steps exactly as mentioned in the documentation. Have also commented out the Dwain Dashboard lines. But still this error. Please Jimz, help me out with this… I will truly appreciate it. Thanks a lot !!

Am also attaching the logs…

Hi

After updating the Packages folder I get this error

The system cannot restart because the configuration is not valid: Error loading /config/configuration.yaml: [Errno 2] No such file or directory: '/config/packages/hki-user/device_counters.yaml'

How do I make it look in the HKI-user directory and not the Packages directory?

My code look like this - I haven’t change what jimz011 have made. The device_counters.yaml file is in the HKI-user directory

lovelace_gen: !include_dir_merge_named ../../hki-user/config/

group:
  !include ../../hki-user/device_counters.yaml

frontend:
  themes: !include_dir_merge_named ../../hki-base/themes/default/
  extra_module_url:
    - /local/community/lovelace-card-mod/card-mod.js

lovelace:
  mode: storage
  dashboards:
    homekit-infused:
      mode: yaml
      title: Homekit Infused
      icon: mdi:home-assistant
      show_in_sidebar: true
      filename: "hki-base/homekit-infused.yaml"

alarm_control_panel:
  - platform: manual
    name: Home Alarm
    code: !secret alarm_code
    delay_time: 0
    trigger_time: 30
    disarmed:
      trigger_time: 0
    armed_home:
      delay_time: 0
    disarm_after_trigger: false

browser_mod:
  prefix: "browser_"

Regards
Alexandersen

Please show me your file structure.

The folders inside the packages folder should look like this

/config/packages/homekit-infused

Hi
I have:
/config/packages/homekit-infused
/config/packages/homekit-infused-theme
/config/packages/homekit-infused-extra

/config/hki-user
/config/hki-base