yes already changed the attribute in the condition… its working now…
State isnt an attribute. It was kinda a bug in the old version
ok… changing for rest of the entities now…
I appreciate the work that has gone into this card, but It would be really helpful if there were detailed change logs that listed breaking changes during updates. This card gets updated about once a day, and every time it’s a gamble as to whether it will be working the way it used to after an update. I’m starting to ponder the idea of just not updating it anymore since it does what I need in it’s current form.
I’m also confused. I’m using 1.3.6, and it appears to me that input_booleans
do have a state that triggers the color change at least. I’m using them in the main entity, the entity list, and info entities, and they are all working. Here’s a chuck of code that is working:
- entity: input_boolean.house_occupied
show_icon: true
state_color: true
tap_action:
action: call-service
service: input_boolean.toggle
target:
entity_id: input_boolean.house_occupied
So it appears that sometimes input_booleans are treated as having an on
and off
state and sometimes they aren’t.
I get the point you are making about the changes. I am currently busy with unit testing the room card so there will be less bugs in the future when I make a change. Also the conversion to typescript has caused to create a few bugs. So I get your point, but I dont think the future changes will be very breaking.
But I will try to make the changelogs more extensive.
We are all learning right ?
But good research about the input_boolean. I will try to make it work with input_booleans (all versions).
I am trying to get a hold and tap action on the main entity but I cannot get it to work. This is my config:
type: custom:room-card
title: Kjøkken
entity: light.kjokken
tap_action:
action: toggle
hold_action:
action: url
url_path: kitchen
icon: mdi:knife
entities:
- entity: light.kjokken
name: Spotter
icon: mdi:light-recessed
tap_action:
action: toggle
- entity: light.cooker_hood_light
name: Viftelys
icon: mdi:ceiling-fan-light
tap_action:
action: toggle
info_entities:
- entity: sensor.kjokken
With this I only get the toggle, it does not follow the URL on hold. Anyone got this working? An alternative would be to assign the URL tap to the title. So that clicking the room name would navigate. Any ideas? Have I done something wrong?
Note, if I swap them around like this:
hold_action:
action: toggle
tap_action:
action: url
url_path: kitchen
icon: mdi:knife
entities:
Then both gestures triggers the URL action. So tapping or holding both navigates.
you should try navigate (it works for me):
type: custom:room-card
title: Kjøkken
entity: light.kjokken
tap_action:
action: toggle
hold_action:
action: navigate
navigation_path: kitchen
icon: mdi:knife
Thanks for replying! I still with this config only get the toggle to work. Navigate or URL does not work. For some reason hold_action still becomes toggle - even if I change to navigate.
Yeah hold is a tricky one. Certainly on mobile. On pc its working, but on mobile it’s not reliable imo
It’s working for me on mobile as expected. I don’t know if it counts but I have a Samsung Galaxy Note9 without root.
Maybe it is tricky on rooted devices?
Hmm could be. It depends on the browser you use. Maybe rooted devices use different browsers? Idk, maybe someone will report here and then we can find out.
Well double tap and hold works on all other cards on the same page, just not the room cards. Same behaviour on both mobile and on computer so I do not think that it is related to the client. For me it seems that the gestures does not work reliably on the Room Card.
You might have configured the card wrong then? Can you share your yaml? Since it’s working for at least some users
For sure
type: custom:room-card
title: Kjøkken
entity: light.kjokken
tap_action:
action: toggle
double_tap_action:
action: url
navigation_path: kitchen
icon: mdi:knife
entities:
- entity: light.kjokken
name: Spotter
icon: mdi:light-recessed
tap_action:
action: toggle
hold_action:
action: url
navigation_path: kitchen
- entity: light.cooker_hood_light
name: Viftelys
icon: mdi:ceiling-fan-light
tap_action:
action: toggle
info_entities:
- entity: sensor.kjokken
As you can see that I also tried on one of the entities… but no cigar. Tried both “url” and “navigate”.
The
attribute: last-changed
doesn’t work as expected. It shows Never
instead of the expected 2 hours ago
as you can see below for secondary_info
in the entities:
section (this is the same entity).
You are right! Seems that its no longer an attribute but a property. Lets see if I can fix that
You need to use url_path when action: url and navigation_path when action: navigate
Try v1.3.8
@marcokreeft87 it works like a charm, you’re great!
I really like this card.
Is there a way how we can sponsor you?