Either crop it in paint, or change the settings of that addon to not be square
Hi! Can I add more enteties to the settings in popup (switch)? HKI 4.0.0
I tried to use âtemplate:â and made popup-card nothing happend. Doesn`t show popup-card.
- !include
- '../../../hki-base/templates/button/button.yaml'
- entity: switch.sonoff_basic_relay
name: blabla
icon: mdi:fan
lock: true
label: "[[[ return `${states['sensor.bath_temperature_humidity'].state} %`; ]]]"
template: '../popup-cards/test.yaml'
entities:
- input_number.vent_on
- input_number.vent_off
Popup-card:
# lovelace_gen
# card
type: custom:light-popup-card
entity: {{ entity }}
brightnessWidth: 110px
brightnessHeight: {{ slider_height|default('410px') }}
switchWidth: 110px
switchHeight: {{ slider_height|default('410px') }}
displayType: {{ display_type|default('auto') }}
fullscreen: false
settings: true
settingsPosition: bottom
settingsCard:
type: entities
cardOptions:
entities: {{ entities }}
thank you Jim, tried removing the square: true, but didnât help, do you have any pixel size I should go after, seems it gets weird no matter what I try.
One more thing.
For my light view, I have a weird bug I canât be able to fix. The âsecond floorâ button is always highlighted in white (this happens in all colour variants of the skin). If I press the other paths to other light views the second floor always stays highlighted even though no lights are on.
Some pictures:
code here if that can help
Itâs because youâve a line with this_view: true on the 2nd floor.
- name: Andre etasje
icon: mdi:lightbulb
path: lys
this_view: true
And itâs on every floor selection item.
@jimz011
I was wondering if there will be an update to HKI for the new HomeAssistant.
I know I know, Iâd rather not want to ask such questions but I was just wondering
bah canât believe I didnât see that, my bad. thank you a lot
edit; I got the picture working also
I will update the project once my schedule permits me to work on it. Lately I am drowning in work so time for this project is low. Though as far as I know it should work with the latest Home Assistant (not entirely sure, but it runs fine in my personal situation).
@msmykalov unfortunately changing the popup like that isnt possible, nor is it easy. You should visit my repo, and then click on LEGACY ADDONS, it will take you to the legacy addons page which basically is just predefined code ready to use. These are much easier to change, though I do not officially support them anymore. Most of them will still work though. The addon you are looking for is called âCustom Buttonâ.
Thanks. And now I have one more question. Is any way to add this button to auto-fill devices? Cause Ive added this button thru "custom_cars" and now it
s in another block.
Working fine here on a fresh install. So no complaints
Quick question, in the energy view, I have a device that monitors cost, power etc.
Is there a way to disable average and extrema info on the mini graph card, I tried editing and setting extrema=false, and average=false, but I doesnât go away.
Like this, I donât have to know the average cost or the average kWh when it reset each day.
example code
- title: Totalt i dag
line_color: orange
line_width: 3
show:
icon: false
name: false
state: false
extrema: false
average: false
entities:
- entity: sensor.accumulated_consumption_bjorganveien_39
one last thing, I think I have found a bug.
in general_config.yaml I have
header:
show_sensors: true
sensors: # You can remove the sensors you don't want to show, you can have as many as you want. Note: Leaving group_entity empty will disable it's popup but still show the number.
- icon: mdi:motion-sensor
entity: sensor.current_binary_sensors_on
group_entity: group.all_binary_sensor_entities
- icon: mdi:power-plug
entity: sensor.current_devices_on
group_entity: group.all_device_switch_entities
- icon: mdi:lightbulb
entity: sensor.current_lights_on
group_entity: group.all_light_entities
- icon: mdi:window-shutter
entity: sensor.current_covers_open
group_entity: group.all_cover_entities
- icon: mdi:garage
entity: sensor.current_garage_doors_open
group_entity: group.all_garage_door_entities
- icon: mdi:fire-alert
entity: sensor.current_detectors_on
group_entity: group.all_detector_entities
my device_counters.yaml
# All Covers
all_cover_entities:
entities:
- cover.screens_stue
- cover.screens_soverom
- cover.rullegardin_emma
# All Garage Doors
all_garage_door_entities:
entities:
- cover.gammel_garasje
- cover.garasje
My view_config.yaml
######## SCREENS #############################################################################################################
Screens:
columns:
buttons: 2
icon: mdi:window-shutter
show_in_favorites: true
subtitle: "[[[ if (states['sensor.current_covers_open'].state == 0) return `Alle screens lukket; if (states['sensor.current_covers_open'].state == 1) return `1 screen er Ă„pen`; else return `${states['sensor.current_covers_open'].state} screens er Ă„pen`; ]]]"
button_badge: sensor.current_covers_open
button_label: "[[[ if (states['sensor.current_covers_open'].state == 0) return `Alle screens lukket`; else return `${states['sensor.current_covers_open'].state} Screens Ă„pen`; ]]]"
devices:
- title: Screens
entities:
- cover.screens_stue
- cover.screens_soverom
- cover.rullegardin_emma
Now for some reason cover and garage cover entities show up as a badge, but when I press the icon top right, it just shows blank like this
The config seems fine though, try clearing out cache. Also check the developer tools if those group entities exist and what their state is.
Though I have to be honest, I do not know by heart how it works since I programmed that piece a very very long time ago. I will look into it though.
@odiv I love some of your lovelace cards like the Temperature and looks like Humidity cards. Do you have a github with your configurations? Love to see how you did those. Thanks
No worries
Lastly and Iâm sorry but I want to make the picture greyscale when a person is away. Is there an easy way to fix this
I saw you mention it here under point 4
Take a look at the already implemented card mod.
You should have installed this via HACS as it is a requirement for HKI.
I managed to recreate @odiv cards with something like this:
- type: 'custom:mini-graph-card'
style: |
ha-card {
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
background-image: linear-gradient(to right bottom, #ffc800, #ffaf00, #ff9500, #ff7800, #ff5900);
}
Thank you for the response!
Indeed, that was I used but now I donât have anymore that confit!
For more gradients you can use https://cssgradient.io/
Anyone masters on custom addons I want to use this customs cards, for roborock, which doesnât require root.
type: custom:xiaomi-vacuum-map-card
entity: vacuum.roborock_s5
map_camera: camera.xiaomi_cloud_map_extractor
camera_calibration: true
Which makes this
Best thing is that you can specify random zones by drawing on the map, and also have preset. I made a vacuum folder in hki-user/views/vacuum/vacuum.yaml
# Vacuum
vacuum:
title: StĂžvsuger
subtitle: "[[[ return `Status: ${states['vacuum.roborock_s5'].state}`; ]]]"
icon: mdi:robot-vacuum
show_in_favorites: true
button_badge: vacuum.roborock_s5
custom_cards:
I have this in my view config but when I reload it just shows a white/grey background, with no card. So I dunno what Iâm missing. Any tips?
got it working, was missing something obvious
If anyone is interessted
# General Information
- type: custom:mod-card
style: |
ha-card {
margin-left: 7px;
margin-right: 7px;
}
card:
type: vertical-stack
cards:
- !include
- '../../../hki-base/templates/other/title-text.yaml'
- name: ' Roborock'
- type: custom:xiaomi-vacuum-map-card
style: |
ha-card {
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
font-family: var(--font-family);
font-size: 12px;
opacity: 0.8;
}
entity: vacuum.roborock_s5
map_camera: camera.xiaomi_cloud_map_extractor
camera_calibration: true
Hi, sorry if this is asked before but I couldnât find it. Love the interface and is working on setting it up. However, when long pressing lights, I just get another on and off switch and have to go to the settings in that pop up to dim. Would it be possible to long press and get a dimmer instead? In my view a lot more practicalâŠ
TJ
If you use my addons, then you can force the slider to be either a dimmer or a switch. Check the docs of the devices addon.
Fantastic, thanks will give it a go! Great job with this