Daily and Storm Rain Totals #371
Replies: 5 comments 12 replies
-
|
New sensor, new charts! |
Beta Was this translation helpful? Give feedback.
-
|
Hello all, I am trying to get this graph to work. I am having and issue with the blue bar graph. I know this works fine because I can pull the value from the HA web integration and it works fine. Here is my issue. Im pulling data for a Davis Vantage Vue from WeeWX via MQTT. I get the value into HA fine and in the yaml I make sure the value is a float. The sensor value I create is basically a value of .01 inch each time the cup tips. In order for me to get the total I created
|
Beta Was this translation helpful? Give feedback.
-
|
I love the graph layout. Here is a working version using the HA Davis WeatherLink integration. Once I figure out this last MQTT sensor I will be in good shape. I will set up using all my local data. |
Beta Was this translation helpful? Give feedback.
-
|
@kaijk another question. If the sensor is showing a history graph in HA doesn’t that mean it’s in recorder? |
Beta Was this translation helpful? Give feedback.
-
The config:
type: custom:plotly-graph
time_offset: 2h
titel: Rainfall
hours_to_show: 3d
refresh_interval: 10
entities:
- entity: sensor.tfa_drop_720250_rain
show_value: true
name: cummulative
fill: tozeroy
fillcolor: rgba(0,0,255,0.075)
statistics: state
time_offset: "-2h"
period: hour
yaxis: "y"
line:
color: gray
dash: dot
width: 1
filters:
- derivate: d
- map_y_numbers: Math.abs(y)
- integrate:
unit: d
reset_every: 1d
- entity: sensor.tfa_drop_720250_rain
yaxis: y2
show_value: true
name: Rainfall
type: bar
statistics: state
period: hour
width: $fn() => 1000*60*60*0.8
marker:
color: rgba(0, 128, 255, 0.4)
texttemplate: "%{y:.1f}"
filters:
- derivate: h
- map_y_numbers: Math.abs(y)
- entity: ""
name: Now
yaxis: y9
showlegend: false
line:
width: 1
dash: dot
color: deepskyblue
x: $ex [Date.now(), Date.now()]
"y":
- -1
- 1
layout:
margin:
t: 10
l: 40
b: 40
height: 320
yaxis9:
visible: false
fixedrange: true
range:
- 0
- 1
xaxis:
rangeselector:
"y": 1.2
buttons:
- count: 12
step: hour
- count: 1
step: day
- count: 3
step: day
- count: 5
step: day
- count: 10
step: dayFYI the sensor setup :
|
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
We've had quite some rain the last few days so my Rain Chart shows some interesting data.
My Ecowitt rain gauge provides Daily, Hourly, and Event duration values. The columns are the daily intra-day totals that reset each day, Cumulative is the time progression and aonther view of the daily sensor, while the interval are the individual hourly readings. The storm total sensor resets itself to zero after some hours of no rain.
Beta Was this translation helpful? Give feedback.
All reactions