Anyone know if there is a way to change tap action from more-info to toggle for all/a large number of cards? I have tried to search and read the docs (Configuration · marcokreeft87/room-card Wiki · GitHub) but I have not sorted it out.
Including the following for all cards is a bit annoying
Sure - we all can help but first we need to know something about your code put here and write what`s wrong and we will see:)
below my example with can be usefull for you:
Thanks, your example is just fine, I just want to make the “mdi:string-lights” icon bigger, is it possible with card-mod ‘style:’ ou with the ‘styles:’ from the card??
Great card and I have completely migrated to this solution, way more simpler than other cards out there.
That said, I have an issue where the icon keeps taking the color of the LED it represents instead of the color (Orange) that I defined in the below lines of codes. Could anyone help? Many thanks.
Good day to you all, I’m trying to use the room card for some lights, and I’m having a problem where the icon color does not change when I toggle the switch. I have 3 lights in a room (basement office) 2 of them are aquara wall zigbee switches and one is a sonoff switch for a strip of LED lights. Also I use a template for all of them, is there a way to override the icon that is not what is on the template?image|490x142
which set a window sensor ‘on’ (of ‘off’ if wanted). But on that window I have 2 sensors (to detect half-open and fully open). So I want to be able to set both window-sensors at one double tab.
I tried some options that did not work:
I don’t think you can send two sets of service data in one service call. If this card doesn’t let you call the service twice, you would probably need to write a script that calls the service twice and then call that script from the card.
Thanks for the reaction.
That would work, but than I have to make a script or automation for all (6) windows. In priciple no problem, but I want it as lean as possible, so if it could be done right from the room-card that would be nicer.
For now, I am going to work out the script option.
That‘s what I use to always have a yellow-orange …
It‘s in a template, as you can reuse it for every lamp in a room (but you need to set it again in another room!, margin 3px places them a little closer)
Hello
How did you manage your conditional colors on info_entities. I have been trying for hours and cant get it to work. I would really appreciate an example on how you did it.
Ignore the following … now I recognized that you want to display the state of another entity below the icon, maybe you can try to use proper margings using style for those.
Why are there two entities sections?
The second one is causing the issue … it shows two times only the state of sensor.gn03_ts011f_active_power.
Remove the second entities entry and add
show_state: true
to the entities in the first section, then it should work.
That’s how I create the value dependent colors for humidity and temps. You need to keed the correct order of the >= statements from biggest to smallest value!
- entity: sensor.az_hygro_humidity
format: precision0
styles:
template: >
if (entity.state < 40) return 'color: orange'; if (entity.state >=
70) return 'color: red'; if (entity.state >= 55) return 'color:
orange'; if (entity.state >= 40) return 'color: green';
- entity: sensor.az_hygro_temperature
format: precision1
styles:
template: >
if (entity.state < 20) return 'color: blue'; if (entity.state >= 24)
return 'color: red'; if (entity.state >= 22) return 'color: orange';
if (entity.state >= 20) return 'color: green';
Does anyone have localized entity states? Still struggling here … entity names are german, but all states are english (on/off insteade ein/aus etc.).
All other cards I use (vertical_stack_in_cards, entity card) don’t have this issues, so it is definitely an issue with this card.