hello i have a couple of questions that i hope @piitaya can respond to
is it possible to use template in the color option of the select card? it would be usefull to glance at the selected item quickly
in the media card i wuold love to link a script to holding the volume button so i would be able to rise the volume by step (+5 or -5 for example) is it possible?
thanks in advance for the response
I created a temperature card with a custom mushroom card. There is something going wrong⌠The temperature of âWoonkamerâ (orange) is almost equal to temperature âHalâ (green), but in the graphic âWoonkamerâ is almost the same as âSlaapkamerâ, which is almost 4 degrees lower.
Unfortunately this will not help. Yesterday I changed the temperature Woonkamer to 60 degrees in the developer tools setting, to test the sensor. Maybe that can be the problem? It looks like after setting it to 60 for the test the line is completely flat?
I tried lower_bound and upper_bound but the line is still incorrect. Is there a way to delete the test setting (60 degrees) in the graph/for the records?.
I love this simple, compact, design! Iâm trying to use your code but could use a little help on how you setup your input booleans and what your scenes do.
input_boolean.vacuum_auto_start - helper to control automation/notifications I set for vacuum. On the card, it controls the icon color to display the current automation state on/off
input_boolean.vacuum_[room_name] - these are helpers to store preferences if the room should be cleaned or not with the âplay-listâ button. On the card, it controls the background color of the room button.
It is further utilized in a script that retrieves room settings for cleaning
Script
alias: Vacuum Selected Rooms
sequence:
- service: vacuum.send_command
data:
command: app_segment_clean
params:
- segments: >-
{%- set ns = namespace(ids=[]) %} {%- if
is_state('input_boolean.vacuum_bathroom', 'on') %}
{% set ns.ids = ns.ids + [24] %}
{%- endif %} {%- if is_state('input_boolean.vacuum_bedroom', 'on')
%}
{% set ns.ids = ns.ids + [19] %}
{%- endif %} {%- if is_state('input_boolean.vacuum_hallway', 'on')
%}
{% set ns.ids = ns.ids + [16] %}
{%- endif %} {%- if is_state('input_boolean.vacuum_kitchen', 'on')
%}
{% set ns.ids = ns.ids + [22] %}
{%- endif %} {%- if is_state('input_boolean.vacuum_living_room',
'on') %}
{% set ns.ids = ns.ids + [23] %}
{%- endif %} {%- if is_state('input_boolean.vacuum_technical', 'on')
%}
{% set ns.ids = ns.ids + [18] %}
{%- endif %} {%- if is_state('input_boolean.vacuum_toilet', 'on') %}
{% set ns.ids = ns.ids + [17] %}
{%- endif %} {%- if is_state('input_boolean.vacuum_veronika_room',
'on') %}
{% set ns.ids = ns.ids + [20] %}
{%- endif %} {{ ns.ids }}
repeat: "{{ states('input_number.vacuum_repeat_count') | int }}"
target:
entity_id: vacuum.roborock_s7_2
mode: single
icon: mdi:robot-vacuum
In terms of scene.fan_20 , those are actually irrelevant. The entity card requires some entity to be set although I only need the entity (icon) to call a service. I didnât find a better solution. Only note that if you use e.g., input_boolean for that, the icon on the card will gray out when input_boolean state is off.
There are still a few things on my vacuum card I want to tackle
hold_action on room buttons - this is supposed to initiate cleaning the selected room. The script I am calling includes a repeat parameter that should specify vacuum repeat count for which I am using input_number.vacuum_repeat_count. I however did not manage to retrieve its value with the template on the card. In other words, this doesnât work on the card for action: call-service data param
repeat: "{{ states('input_number.vacuum_repeat_count') | int }}"
I thought about adding a badge to the âplay-listâ button to indicate how many rooms are selected
I want to remove the âpauseâ button and only display it instead of the âplayâ or âplay-listâ button depending on what is currently running
The code works great if I had to move between pages. But I should show a card via local_conditional_card when I tap on the icon and I would also like the shape to be colored to be sure of the touch.