Look at the example here (a state-based template sensor).
Can somebody please tell me what i am doing wrong with the gas meter?
It does not takeover the number of decimals?
I had to make my own nuts meter helper but also make my own sensor
- sensor:
- name: Monthly_Gas_Meter_in_m3
unit_of_measurement: L
device_class: current
state_class: measurement
state: >
{{ states('sensor.monthly_gas_meter') | float(default=0.0) | multiply(1000) | round(0)}}
How do i file a bug report?
Or am i doing it wrong?
i created a helper for a nuts meter and this is it’s current value:
when i use it in the energy dashboard it is presented as KW (and incorrect with a dot):
And when i make it of m3 measurement:
And no matter what i do, i can not make it with a comma “3,767”
i tried to trick it with some custom sensors like:
- sensor:
- name: Weekly_Gas_Meter_in_m3_3
device_class: current
state_class: measurement
state: >
{% set raw_value = states('sensor.weekly_gas_meter') %}
{{ (raw_value | replace(',', '') | float(default=0.0)) / 1000 }}
Which results in:
0.003767
so then i can use the m3 unit again in the meter but then it will present it with a “.” (dot) as wel.
Can anybody please help me out het?
It drives me nuts to see 1 “.” where there should be a “,”.
Thanks in advance!
Did you find a solution? I faced have exactly the same issue.
No, I went back to native chrome and all works fine
Hello there, I started having trouble with displaying gas consumption. Any suggestion might help. In included screenshots you may see the sensor is correct, but in the dashboard it displays wrong:
Here is the setup in the card:
individual:
- entity: sensor.gas_meter_daily
display_zero: true
name: Plyn
icon: mdi:fire
unit_of_measurement: m³
calculate_flow_rate: true
inverted_animation: true
color_value: false
color:
- 157
- 11
- 11
color_icon: false
decimals: 0
display_zero_state: true
unit_white_space: true
use_metadata: false
secondary_info: {}
Same issue here with gas consumption.
Probably it’s a card bug.
No solution at the moment.
Same issue:
But if you put as secondary entity, it works ok.
I would like to know too.
did you use de Apexcharts-card?
and how did you set up the daily, weekly etc. sensors?
would you mind sharing the code?
Great card - is there any plans to add additional individual entities over the existing limit of 4?
hi
anyone saw this issue
the line not in place
any idea how to solve it?
I haven’t.
Try to clear your browser’s cache (or app cache), check what custom cards you have installed and disable browser plugins — as a start.
Check it all,
Unfortunately not solve the issue
Have you tried different computers and browsers? And one of the HA apps?
I’m currently testing this integration, and it’s working great! However, I have two questions:
- Battery and Grid are displaying two values each: Input and output. Since there can only be one at the same time, is it possible to only show the one that’s currently active?
- Is it possible to have the same arrow-orientation for Battery and Grid? The arrows in the grid are showing left and right, battery up and down.
Seeing there are three digits behind the . I think you are maybe confusing a thousand separator for a decimal separator. In the sensor value, which has english notation, a . should be used for decimals. That should show as a , in countries that use a , as decimal separator.
Others seem to miss a unit_of_measurement, which results in the value being a text instead of a number. This can also lead to values being displayed in an unexpected way.
I like them they way they are, i.e. horizontal for the grid and vertical for the battery as the arrows align with the connections to the power circles
That makes it clearer to me which arrow represents going out to grid and which is coming in from grid. Likewise for the battery.
Hi,
thanks for reply.
I’ve attached three screenshots.
One of them show the correct value of gas sensor, but if i put that sensor in power flow card decimals are gone.
It really seems that the sensor only changes the decimals if inserted into the card.
Regards,
Alessandro