berikut ini adalah, yaml dashboard home assistant milik saya. jika ada yang berminat silahkan di copy
dan dipakai
=========================================================================1. pojok kiri atas power distribution card. download dulu di HACS (home assistant comunity store)
type: custom:power-distribution-card
title: Banjarnegara PLTS
entities:
- decimals: 2
display_abs: true
name: Beban DC
unit_of_display: W
consumer: true
icon: mdi:lightbulb
entity: sensor.daya_konsumsi
preset: consumer
attribute: ''
- decimals: 2
display_abs: true
name: P V
unit_of_display: W
icon: mdi:solar-power
producer: true
entity: sensor.daya_panel_surya
preset: solar
attribute: ''
- decimals: 2
display_abs: true
name: P L N
unit_of_display: W
icon: mdi:transmission-tower
entity: sensor.daya_pln_blynk_iot
preset: grid
attribute: ''
- decimals: 2
display_abs: true
name: I N V
unit_of_display: W
consumer: true
icon: mdi:home
entity: sensor.daya_inv_blynk
preset: consumer
attribute: ''
center:
type: none
content:
- preset: autarky
name: 'Baterai '
entity: sensor.battery_bluecarbon
invert_value: false
bar_bg_color: ''
bar_color: Blue
animation: flash
=========================================================================
copy yaml diatas dan ganti sensor sesuai sensor yang anda miliki
========================================================================= dibawahnya ada bar card
=======================================================================
type: custom:bar-card
entities:
- entity: sensor.daya_panel_surya
name: Power Produksi
icon: mdi:solar-power-variant
- entity: sensor.daya_konsumsi
name: Power Konsumsi
icon: mdi:home-lightbulb
- entity: sensor.daya_pln_blynk_iot
icon: mdi:transmission-tower-import
- entity: sensor.daya_inv_blynk
icon: mdi:transmission-tower-export
unit_of_measurement: Watt
max: '2000'
title: Power
columns: '1'
icon: hass:weather-lightning
entity_row: true
animation:
speed: '1'
severity:
- {}
=========================================================================
apexchart type :area
type: custom:apexcharts-card
apex_config:
legend:
show: false
header:
show: true
title: Grafik Power AC
show_states: false
colorize_states: true
all_series_config:
stroke_width: 1
opacity: 0.2
type: area
curve: smooth
group_by:
func: max
duration: 20min
series:
- entity: sensor.sonoff_1000ae81a4_power
name: Power PLN
- entity: sensor.sonoff_1000a93dc5_power
name: Power Inverter
=========================================================================
selanjutnya custom apexchart. ini bisa berbentuk dalam beberapa tampilan "line", "scatter", "pie", "donut", "radialBar"
chart_type: donut
=========================================================================
type: custom:apexcharts-card
apex_config:
legend:
show: false
header:
show: true
title: Grafik Power DC
show_states: false
colorize_states: true
all_series_config:
stroke_width: 0.5
opacity: 0.5
type: area
curve: smooth
group_by:
func: max
duration: 20min
series:
- entity: sensor.daya_konsumsi
name: Power Konsumsi
- entity: sensor.daya_panel_surya
name: Power Produksi
=========================================================================
=========================================================================
type: custom:apexcharts-card
header:
show: true
title: Energy Hari ini (AC)
show_states: true
colorize_states: true
apex_config:
plotOptions:
pie:
donut:
total:
show: true
showAlways: true
chart_type: pie
series:
- entity: sensor.daily_energy_pln
name: PLN Hari Ini
- entity: sensor.daily_energy_plts
name: PLTS Hari Ini
=========================================================================
oke itu semua sabagai contoh sebelumnya harus di install HACS home assistant comunity store. cara installnya seperti ini
- menuju Add-on store
- Install satu dari SSH add-ons (rekan-rekan perlu menghidupkan Advanced mode di user profile )
- chek documentasi SSH add-on
- jalankan the SSH add-on
- hubungkan to the SSH add-on
- untuk menginstall HACS jalankan script ini
- ============================================================wget -O - https://get.hacs.xyz | bash -
- ============================================================ setelah HACS terinstall masuk ke pengaturan home assistant dan menuju ke integrasi tambahkan HACS
cheklist semuanya
copy code yang ada di layar
masukan kode dari HACS tadi
klik authorize
oke. selesai
2 Komentar
Share cooding untk buat daily consumtion bg, sensornya sonoff pow.
BalasHapusutility_meter:
BalasHapusmonthly_energy_pln:
source: sensor.sonoff_1000ae81a4_energy
name: Monthly Energy PLN
cycle: monthly
yearly_energy_pln:
source: sensor.monthly_energy_pln
name: Yearly Energy PLN
cycle: yearly
daily_energy_pln:
source: sensor.sonoff_1000ae81a4_energy
name: Daily Energy PLN
cycle: daily
monthly_energy_plts:
source: sensor.sonoff_1000a93dc5_energy
name: Monthly Energy PLTS
cycle: monthly
yearly_energy_plts:
source: sensor.monthly_energy_plts
name: Yearly Energy PLTS
cycle: yearly
daily_energy_plts:
source: sensor.sonoff_1000a93dc5_energy
name: Daily Energy PLTS
cycle: daily
monthly_energy_pv:
source: sensor.produksi_panel_surya
name: Monthly Energy PV
cycle: monthly
yearly_energy_pv:
source: sensor.monthly_energy_pv
name: yearly Energy PV
cycle: yearly
monthly_energy_konsumsi:
source: sensor.fv_energie
name: Monthly Energy Konsumsi
cycle: monthly
yearhly_energy_konsumsi:
source: sensor.monthly_energy_konsumsi
name: Yearly Energy Konsumsi
cycle: yearly
daily_energy_pv:
source: sensor.produksi_panel_surya
name: Daily Energy PV
cycle: daily
daily_energy_konsumsi:
source: sensor.fv_energie
name: Daily Energy Konsumsi
cycle: daily
sensor:
- platform: integration
source: sensor.daya_panel_surya
name: energy_panel-surya
unit_prefix: k
round: 2
- platform: integration
source: sensor.daya_konsumsi
name: energy_konsumsi
unit_prefix: k
round: 2