12-03-2024, 12:46 PM
Amélioration graphique avec filtre journée d'hier
charge et décharge en positif
Charge positif et décharge négatif
charge et décharge en positif
Code :
type: custom:plotly-graph
defaults:
entity:
show_value: true
entities:
- entity: sensor.voltronic_1_conso_maison_watt
time_offset: +1.0d
name: Conso hier
visible: legendonly
fill: tozeroy
extend_to_present: false
line:
width: 0.5
color: '#bdc3c7'
shape: spline
filters:
- resample: 2m
- entity: sensor.voltronic_1_conso_maison_watt
name: Conso
fill: tozeroy
extend_to_present: false
line:
width: 0.5
color: '#e74c3c'
shape: spline
filters:
- resample: 2m
- entity: sensor.voltronic_1_pv_watt
name: Prod hier
visible: legendonly
time_offset: +1.0d
fill: tozeroy
line:
width: 1
color: '#2ecc71'
shape: spline
filters:
- resample: 1m
- entity: sensor.voltronic_1_pv_watt
name: Prod
fill: tozeroy
line:
width: 1
color: orange
shape: spline
filters:
- resample: 1m
- entity: sensor.voltronic_1_batt_charge_watt
name: Charge
fill: tozeroy
line:
width: 0.5
color: dodgerblue
shape: spline
filters:
- resample: 1m
- entity: sensor.voltronic_1_batt_decharge_watt
name: Decharge
fill: tozeroy
line:
width: 0.5
color: '#9b59b6'
shape: spline
filters:
- resample: 1m
hours_to_show: 2
refresh_interval: auto
layout:
margin:
autoexpand: true
b: 80
xaxis:
showgrid: false
rangeselector:
'y': -0.4
x: 0.2
bordercolor: '#eeeeee50'
borderwidth: 1
bgcolor: '#eeeeee00'
activecolor: '#0000ff30'
buttons:
- count: 1
step: minute
- count: 1
step: hour
- count: 2
step: hour
- count: 6
step: hour
- count: 12
step: hour
- count: 1
step: day
- count: 7
step: dayCharge positif et décharge négatif
Code :
type: custom:plotly-graph
defaults:
entity:
show_value: true
entities:
- entity: sensor.voltronic_1_conso_maison_watt
time_offset: +1.0d
name: Conso hier
visible: legendonly
fill: tozeroy
extend_to_present: false
line:
width: 0.5
color: '#bdc3c7'
shape: spline
filters:
- resample: 2m
- entity: sensor.voltronic_1_conso_maison_watt
name: Conso
fill: tozeroy
extend_to_present: false
line:
width: 0.5
color: '#e74c3c'
shape: spline
filters:
- resample: 2m
- entity: sensor.voltronic_1_pv_watt
name: Prod hier
visible: legendonly
time_offset: +1.0d
fill: tozeroy
line:
width: 1
color: '#2ecc71'
shape: spline
filters:
- resample: 1m
- entity: sensor.voltronic_1_pv_watt
name: Prod
fill: tozeroy
line:
width: 1
color: orange
shape: spline
filters:
- resample: 1m
- entity: sensor.voltronic_1_batt_charge_decharge_watt
name: Charge
fill: tozeroy
line:
width: 0.5
color: dodgerblue
shape: spline
filters:
- resample: 1m
hours_to_show: 2
refresh_interval: auto
layout:
margin:
autoexpand: true
b: 80
xaxis:
showgrid: false
rangeselector:
'y': -0.4
x: 0.2
bordercolor: '#eeeeee50'
borderwidth: 1
bgcolor: '#eeeeee00'
activecolor: '#0000ff30'
buttons:
- count: 1
step: minute
- count: 1
step: hour
- count: 2
step: hour
- count: 6
step: hour
- count: 12
step: hour
- count: 1
step: day
- count: 7
step: day


