07-03-2024, 02:16 PM
Bon je rajoute pour ceux qui veulent du négatif
Code :
type: custom:plotly-graph
defaults:
entity:
show_value: true
entities:
- 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
fill: tozeroy
line:
width: 1
color: orange
shape: spline
filters:
- resample: 1m
- entity: sensor.voltronic_1_batt_charge_decharge_watt
name: Charge Decharge
fill: tozeroy
line:
width: 0.5
color: dodgerblue
shape: spline
filters:
- resample: 1m
hours_to_show: 2
refresh_interval: auto
layout:
xaxis:
rangeselector:
'y': 1.2
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


