I am just digging into mini graph card and my current issue is the question of how the grouped _by: hour / date work beyond date or in particular in that “interval” cause I have not found any example about that.
group_by: interval
Where can I define that interval for weekly or monthly or so ?
I will need it for power consumption and I hve already the hourly, daily, weekly, monthly sensors set up that count the values up and will be rested at midnight in case day or week or month ends. Any ideas or examples ?
SOLVED by me a week later and described below or here
Hi,
I love your graph for the Purifier.
Are there any chances to share your configs for the mini graph?
Maybe somewhere on github … or at least share here the mini graph …
Thanks
I am trying to set color thresholds but not seeing any result. I ahve three pen traces on the trend and want only one of them to be blue if positive and red if negative.
type: custom:mini-graph-card
entities:
- entity: sensor.meter_power_a
- entity: sensor.meter_power_b
- entity: sensor.meter_power_c
color_thresholds:
- color: blue
value: 100
- color: red
value: -100
name: Solar Power
hours_to_show: 24
points_per_hour: 4
Hello,
I am trying to change the color of the temperature value based on some predefined values but I am not very good with css and consequently it does not work.
I can only see a 20% figure and no temperature °C
From my experience you will be able to change the white 20 but not the colour of the unit % which is a tinted white. You can choose orange and the 20 will be orange and the % will be in a different kind of orange.
But I guess you want to let the 20 figure display or represent the sensors value / color.
@typxxi You are right, my mistake. The sensor is like a water sensor of a plant and I have also a temp sensor.
Anyway what I would like to do is to change the colour of 20 with the values above. So if the sensor value is >=21 the colour will be organge or if the sensor value is <=20 the sensor value will be red.
I do not care about the kind of colour of “%” or “C°”.
I guess you got the wrong object. So you might try this one out first with orange instead of my white and see if that works. If it does work then change color depending on your measurement results. I am not an expert but had played around with this particular topic recently and all the things possible and tricks Ildar_Gabdullin had shown here before.
Should be: {% if state_attr('sensor.ble_moisture_xxxxx', 'median') | int >= 21 %}
Regarding the styling itself - did not check it by myself, use this tutorial.
yes, we had this topic last week and it was about that pale issus cause figure and unit will always look different colorwise. You can not get them matched, you will get white and kind of grey, red and a different red. That’s why I mentioned it cause I had played around with that last week when you had shown me the examples. Just a bit weird that you can not get the exact same colour for the unit that you had chosen for the figure.