@jimz011 After I did that I now get an “Unknown Error Reload UI” screen on my HKI page. Hmm
@jimz011 never mind, that fixed it. I had added simple_weather:
to my home page and it didn’t like that and that was what was throwing it off.
Hi
Used HKI for a while with a few entities for light and climate
@jimz011 - Just tried to update to HKI 2021.12.3
But don’t know what went wrong now nothing works :-/
Now it says:
Custom Element doesn’t exist: layout-card
Custom Element doesn’t exist: search-card
Dear,
The scenes is exactly what i would like to realize in the latest version. I started completely new with a new VM. I am now so far to get scenes working but i got stuck. I can see you use in view_config the button with input_boolean. So far so good. I can also see in a post before you uses an automation with group entities. But still i do not get it working. Is it possible to share the following code to get (scene dagverlichting on) and (scene dagverlichting off) working?
- automations.yaml (part scene dagverlichting on/scene dagverlichting off)
- groups.yaml (part scene dagverlichting on/scene dagverlichting off)
- scene.yaml (part scene dagverlichting on/scene dagverlichting off)
- view_config you use [button_badge: sensor.current_scenes_on], where is this coming from?
Hopefully you would like to share these parts, so i try again with your examples.
Thanks in advance.
Solved - reinstalled all the cards - so now working again
But I can’t get the climate button showing
# Climate
climate:
subtitle: "[[[ return `The current average temperature is ${states['sensor.average_house_temperature'].state}` ]]]"
columns:
thermostats: 4
graphs: 4
icon: mdi:thermometer
show_in_favorites: true
button_badge: sensor.average_house_temperature
button_label: "[[[ if (states['sensor.current_climate_entities_on'].state == 0) return `Thermostats Off`; else return `${states['sensor.current_climate_entities_on'].state} Thermostats On`; ]]]"
climate:
controls:
title: Controls
thermostats:
- title: Thermostats
entities:
- climate.kokken
- climate.sofies_vaerelse
- climate.bad_1_sal
- climate.entre
- climate.garage
- climate.karnap
- climate.sovevaerelse
- climate.stue
Maybe someone can point me in the right direction
Happy Newyear
@NewOakley Wowsers, that post is super super old. I will suggest creating template switches in which you define each state separately.
This will save a lot of time and useless sensors/automations. Also note that this is currently not something that is included in HKI and you will have to make such things yourself.
It would look something like this, you can then afterwards use the devices addon to call these buttons:
# configuration.yaml (or a split file) under switch
- platform: template
switches:
scene_keuken:
value_template: >-
{% if (is_state('switch.afzuigkap', 'on')) and
(is_state('light.keuken', 'on')) and
(is_state('light.keuken_led_lampen', 'on' )) and
(is_state('switch.waterkoker_2', 'on')) and
(is_state('switch.airfryer', 'on')) and
(is_state('switch.nespresso_apparaat', 'on')) and
(is_state('switch.cappumaker', 'on')) %}
on
{% else %}
off
{% endif %}
turn_on:
service: scene.turn_on
data:
entity_id: scene.koken
turn_off:
service: scene.turn_on
data:
entity_id: scene.klaar_met_koken
transition: 15
# configuration.yaml (or split file) under scene
- name: koken
entities:
light.keuken_led_lampen:
state: on
brightness: 255
light.keuken:
state: on
brightness: 255
switch.waterkoker_2: on
switch.afzuigkap: on
switch.airfryer: on
switch.cappumaker: on
switch.oven: on
switch.nespresso_apparaat: on
- name: klaar met koken
entities:
light.keuken_led_lampen: off
light.keuken: off
switch.waterkoker_2: off
switch.afzuigkap: off
switch.airfryer: off
switch.cappumaker: off
switch.oven: off
switch.nespresso_apparaat: off
@Alexandersen Please check if you have the sensor.average_house_temperature
this is not something that comes with HKI and you must have your own sensor to be able to use that (if I am correct this is not included in the documentation either so it is probably taken from my personal repo).
You can add the sensor by downloading the Average Sensor in HACS. Then set the sensor up and use it as the button_badge.
If you don’t have this sensor either remove the button_badge line or put a sensor that you actually have.
Great, many thanks. It works perfectly.
Good Morning Jim
Firstly thank for the work you have done with HKI. This is a awesome dashboard for any mobile device.
A stupid question, when using the media_player addin and setting the enity type to mini-media-player i notice that it does not apply the theme / styling to the mini-media-player. (No rounded corners)
If you use the default media_player is works 100%
I there a simple way to fix this (have clear cache etc)
Can anybody help with how to format the custom: addon, All examples in the documentation show examples with markdowns, but id like to nest a graph and thermostat in one stack. The code I have tried is as follows, I have tried many combinations of other code but cannot work it out.
kitchen:
title: Kitchen
icon: mdi:fridge
button_badge: sensor.kitchen_temperature
button_label: "[[[ if (states['sensor.kitchen_lights_on'].state == 0) return `All lights are turned off`; if (states['sensor.kitchen_lights_on'].state == 1) return `1 light is turned on`; else return `${states['sensor.kitchen_lights_on'].state} lights are turned on`; ]]]"
type: room # USE THIS LINE INSTEAD OF THE ONE MENTIONED ABOVE, THIS WILL MAKE IT SHOW ONLY IN THE ROOMS ADDON AND NOWHERE ELSE
devices:
- title: Lights
entities:
- light.kitchen_counter
- light.kitchen_table
- light.kitchen_spotlights
- title: Scenes
entities:
- input_boolean.kitchen_occupancy
- input_boolean.dinner_time
- title: Motion Sensors
entities:
- binary_sensor.kitchen_motion_sensor_occupancy
custom:
- title: Climate Entities
cards:
- type: thermostats
entity: climate.kitchen
- type: graphs
line_color: cyan
entity: sensor.kitchen_temperature
Hey guys,
I’m getting the following error while trying to setup HKI "Package hki_configuration setup failed. Component lovelace has duplicate key ‘mode’ ". Any suggestions? Thanks for your help in advance.
Remove the lovelace line from your configuration.yaml
Still very much struggling with this.
I have tried copying in the contents of button-mini-graph.yaml and HKI will not load.
code below
- title: Climate
cards:
- type: custom:button-card
template:
- style-default
name: "Temperature"
icon: "mdi:thermometer"
color: auto
size: 25%
aspect_ratio: 1/1
entity: sensor.kitchen_temperature
show_name: true
show_icon: true
show_state: false
show_last_changed: true
tap_action:
action: more-info
haptic: heavy
custom_fields:
graph:
card:
type: 'custom:mini-graph-card'
style: |
ha-card {
box-shadow: none;
--ha-card-background: transparant !important;
margin-left: -5px;
margin-right: -5px;
}
entities:
- entity: sensor.kitchen_temperature
hours_to_show: 12
points_per_hour: 1
line_width: 9
hour24: true
animate: true
decimals: 1
font_size: 53
show:
graph: line
icon: false
fill: false
extrema: false
average: false
name: false
labels: false
font_size_header: 9
line_color: "red"
styles:
custom_fields:
graph:
- filter: opacity(75%)
- overflow: unset
card:
- overflow: visible
grid:
- grid-template-areas: '"graph" "n" "area" "l"'
- grid-template-columns: 1fr
- grid-template-rows: 80% 3% 10% 3%
On another note, I have set up some room, I’d like to change the button badge to display a light bulb icon if that room has lights on, I’ve set up a sensor for lights on in that room - or - display a motion icon if there is motion in that room.
Thanks mate, I really like your work. Another question is it possible to view the location history by pressing the person addon (as it is in the usual lovelace dashboard)? Thank you so much for all your effort.
I think you need to remove welcome_message line
Yes, adding the person addon only adds shortcuts to another view. You can setup those views however you want. You can add the history addon to that page or use a map addon.
Homekit Infused 2022.01.0
Changes:
- Fixed the header alarm button, it will now properly show the toggles or keypad again depending on your settings
- The alarm in the header will now be shown on all views and not just on the homepage
- You can now also choose to hide the alarm button entirely from the header
- Fixed a bug where setting a location for cards within the custom: addon would not work (thanks to @JimCronqvist)
- Added a HKI development dashboard to create cards super fast (for use with custom: or custom_cards:), this dashboard features both a normal and a panel mode view
- The persons addon will now show a grayscale image if the person is not at home
- Several small bugfixes
BREAKING CHANGES:
- You MUST add the
development.yaml
file from this release to your/hki-user/
folder (just get the file from the release), skipping this will crash lovelace! Alternatively you can create an empty file named development.yaml inside the user folder. - If you want the lock icon (alarm) to show in the header you MUST add a line to your
/hki-user/config/general_config.yaml
file, see here
How to Update?
*NOTE: CREATE A BACKUP BEFORE UPDATING!!!
Make sure you update all the custom cards and addons to their latest versions!
Download the release, then copy and overwrite the following two folders:
/hki-base/
/packages/
/hki-user/development.yaml
Restart your Home Assistant!
Homekit Infused 2022.01.1
Changes:
- In 2022.01.0, grayscale was introduced as a way to show persons that are not at home. Well this did not seem to work. This release fixes that.
- No other changes!
How to Update?
*NOTE: CREATE A BACKUP BEFORE UPDATING!!!
Make sure you update all the custom cards and addons to their latest versions!
Download the release, then copy and overwrite the following two folders:
/hki-base/
/packages/
Restart your Home Assistant!