Thanks a lot. I never went into the users section looking for it, just profile and people. Thanks
Hi,
great card. I have a question how can i configure this card? I need to disable a boolean (Jeden Tag) if both booleans (Zeit and Helligkeit) are off:
The restriction-card
supports ONE entity for a condition.
This may be done w/o the restriction-card
- use card-mod
.
Another way to do this would be to put Zeit and Helligkeit in a group and the the group status as your restriction card condition.
Thank you. My solution looks like this.
- type: entities
entities:
- entity: input_boolean.aussen_automatisierung
name: Zeit
icon: mdi:clock-time-three-outline
show_header_toggle: false
state_color: true
- entity: input_boolean.aussen_automatisierung_lux
icon: mdi:brightness-auto
name: Helligkeit
show_header_toggle: false
state_color: true
- entity: input_boolean.aussen_jeden_tag
name: Tageweise
show_header_toggle: false
state_color: true
tap_action:
action: none
card_mod:
style:
hui-generic-entity-row:
ha-entity-toggle:
$:
ha-switch:
$: >
{% if is_state('input_boolean.aussen_automatisierung_lux',
'off') and
is_state('input_boolean.aussen_automatisierung', 'off') %}
.mdc-switch .mdc-switch__thumb input {
pointer-events: none;
}
{%endif%}
.: >
{% if is_state('input_boolean.aussen_automatisierung_lux',
'off') and
is_state('input_boolean.aussen_automatisierung', 'off') %}
ha-switch {
--switch-unchecked-button-color: var(--disabled-text-color);
--switch-checked-button-color: var(--disabled-text-color);
}
{%endif%}
.: >
{% if is_state('input_boolean.aussen_automatisierung_lux',
'off') and
is_state('input_boolean.aussen_automatisierung', 'off') %}
:host {
color: var(--disabled-text-color);
--paper-item-icon-color: var(--disabled-text-color);
}
{%endif%}
title: Schaltung nach
show_header_toggle: false
Itās not pretty but it works, how i expected.
Thanks sparkydave, i will try you suggestion.
I think it is better to put {% xxx %} stuff INSIDE a style section:
zzzz {
ā¦
}
I think and use the opposite. As Brainjay is doing (right, in my point of view) If false, why having empty css instead of no css. No is better in this case.
I only use it sometimes inside, if I have if and else.
Hello.
Iāve been using the component for a long time, but I donāt know if itās possible to keep the āpressā or ārunā (for scripts) button instead of the switch.
As now and as you wishā¦:
ā¦
And maybe yet someone knows how to add an icon next to the first one, according to some condition, to the place where the lock icon is (the lock icon will be moved to another location)ā¦ Rather, this question needs to be clarified in the āCard modā.
Thanks.
Any way to use this with custom-card, so that you can change the buttons icon based on an entity state? E.g. I want the button to show a garage door closed or open.
reading this, and the subsequent replies, I can not understand why you wouldnāt simply hide the boolean, instead of disabling it with that cumbersome card_mod code?
you can do that with a conditional card on a intermediary binary, or group as sparky suggests.
Hiding it would be just that bit more concealed than disabling itā¦ dont want to give prying eyes a reason to start looking for ways to enable
template:
- binary_sensor:
- unique_id: both_booleans_off
name: Both booleans off
state: >
{{is_state('input_boolean.aussen_automatisierung_lux','off') and
is_state('input_boolean.aussen_automatisierung', 'off')}}
and then in the card:
type: conditional
conditions:
- entity: binary_sensor.both_booleans_off
state: 'off'
row:
- entity: input_boolean.aussen_jeden_tag
name: Tageweise
show_header_toggle: false
state_color: true
tap_action:
action: none
@iantrich Great work! I use this for my DIY alarm system (no alarm control panel, just buttons)
How do you edit the theme? All Iām trying to do is make the lock icon disappear. Zero pixels wide or something like that. I want the function of the lock but I donāt want to see it
Hi
I want to put a confirm on only when the plug is drawing over 20w.
If under then PC is already off, so no lock.
type: custom:hui-entities-card
entities:
- card:
entity: switch.office_pc
restrictions:
confirm: true
condition:
entity: sensor.office_pc_power
attribute: raw_state
value: 20
operator: >
type: custom:restriction-card
row: true
title: Office
Doesnāt seem to work
TextThe operator tried both ways. It saves and removes the " then deletes it the next save.
Tried different indents.
restrictions:
confirm:
condition:
entity: sensor.office_pc
attribute: current_consumption
value: "20"
operator: "<"
Is there any way to get a numeric keypad for the pin, kind of like the alarm panel cards?
I would also like to know this! Having an option to restrict the input to numeric only and result into a keypad for the PIN would be nice.
Yea, basically this card is useless on a tablet in kiosk modeā¦ at least it is for meā¦
Is it possible to unlock it using pin and it will directly to the site? This code gives me when i insert the pin code, it will unlocked but i need to tap it once again to open the path.
No. The unlock action is separate from whatever the available card actions are.
Hey, so i have a dropdown to seleft in between normal and guest mode, how will i do it so when itās in normal it will be the normal dashboard but when itās set to guest mode, the dashboard will hide some things and show others for a user called ātabletā.
Is that posible?, if so how will it be done?
@tom_l @iantrich Being able to limit the input type would be greatly helpful! I looked at the code to try and figure out how to do it but couldnāt figure it out. Any chance this feature can be implemented in future releases? Or some guidance on what changes to make locally to limit the input keyboard to only show digits instead of full keyboard (like phone number input)