12-03-2024, 11:53 AM
Petite amélioration du graph production jour :
Code :
type: custom:plotly-graph
entities:
- entity: sensor.production_pv_wh_jour
name: production Jour
offset: 1
type: bar
statistic: state
texttemplate: '%{y:.2f}'
period: hour
number:
suffix: ' kWh'
valueformat: '0.11'
textfont:
color: white
size: 10
opacity: 0.9
marker:
color: '#2980b9'
opacity: 0.6
- entity: sensor.production_pv_wh_heure
name: Production heure
type: bar
offset: 1
statistic: state
texttemplate: '%{y:.2f}'
period: hour
number:
suffix: ' kWh'
valueformat: '0.11'
textfont:
color: white
size: 10
opacity: 1
marker:
color: '#f39c12'
opacity: 0.6
- entity: sensor.production_pv_wh_jour
name: Hier Jour
offset: 2
type: bar
visible: legendonly
statistic: state
time_offset: +1.0d
texttemplate: '%{y:.2f}'
period: hour
number:
suffix: ' kWh'
valueformat: '0.11'
textfont:
color: white
size: 10
opacity: 0.5
marker:
color: '#95a5a6'
opacity: 0.6
- entity: sensor.production_pv_wh_heure
name: Hier Heure
offset: 1
type: bar
time_offset: +1.0d
visible: legendonly
statistic: state
texttemplate: '%{y:.2f}'
period: hour
number:
suffix: ' kWh'
valueformat: '0.11'
textfont:
color: white
size: 10
opacity: 1
marker:
color: grey
opacity: 0.6
hours_to_show: current_day
refresh_interval: auto
layout:
paper_bgcolor: rgba(0,0,0,0)
plot_bgcolor: rgba(0,0,0,0)
bargap: 0.1
uniformtext:
minsize: 12
mode: show
modebar:
orientation: h
remove: pan
margin:
t: 10
l: 1
r: 1
height: 300
legend:
'y': -0.25
x: 0.02
xaxis:
gridcolor: rgba(238,235,235,0.3)
showgrid: false
linewidth: 0
linecolor: null
nticks: 8
yaxis:
visible: false



