#### CONSUMO AYER ##### type: custom:apexcharts-card chart_type: pie header: show: true title: Consumo Ayer show_states: true colorize_states: true floating: true all_series_config: unit: kWh show: legend_value: true in_header: false apex_config: chart: height: 250px series: - entity: sensor.edata_99nk attribute: yesterday_kWh show: in_chart: true in_header: true name: Total - entity: sensor.edata_99nk attribute: yesterday_p1_kWh name: Punta - entity: sensor.edata_99nk attribute: yesterday_p2_kWh name: Llano - entity: sensor.edata_99nk attribute: yesterday_p3_kWh name: Valle #### CONSUMO ULTIMOS 10 DIAS #### type: custom:apexcharts-card graph_span: 30d stacked: true span: offset: '-1d' experimental: brush: true color_threshold: true header: show: true title: C. Últimos 10 días show_states: false colorize_states: false brush: selection_span: 10d all_series_config: type: column unit: kWh show: legend_value: false series: - entity: sensor.edata_99nk color: 0000FF name: Total type: column data_generator: | return hass.connection.sendMessagePromise({ type: 'edata/consumptions/daily', scups: '99nk'}).then( (resp) => { return resp.map((data, index) => { return [new Date(data['datetime']).getTime(), data['value_kWh']]; }); } ); show: header_color_threshold: true in_chart: false in_brush: true - entity: sensor.edata_99nk color: C91818 name: Punta data_generator: | return hass.connection.sendMessagePromise({ type: 'edata/consumptions/daily', scups: '99nk'}).then( (resp) => { return resp.map((data, index) => { return [new Date(data['datetime']).getTime(), data['value_p1_kWh']]; }); } ); - entity: sensor.edata_99nk color: FF8000 name: Llano data_generator: | return hass.connection.sendMessagePromise({ type: 'edata/consumptions/daily', scups: '99nk'}).then( (resp) => { return resp.map((data, index) => { return [new Date(data['datetime']).getTime(), data['value_p2_kWh']]; }); } ); - entity: sensor.edata_99nk color: 1FA117 name: Valle data_generator: | return hass.connection.sendMessagePromise({ type: 'edata/consumptions/daily', scups: '99nk'}).then( (resp) => { return resp.map((data, index) => { return [new Date(data['datetime']).getTime(), data['value_p3_kWh']]; }); } ); #### CONSUMO MES ACTUAL #### type: custom:apexcharts-card experimental: color_threshold: true chart_type: pie header: show: true title: C.Mes Actual show_states: true colorize_states: true floating: true all_series_config: show: legend_value: true in_header: false unit: kWh apex_config: chart: height: 250px series: - entity: sensor.edata_99nk attribute: month_kWh show: in_chart: true in_header: true color: 0000FF name: Total - entity: sensor.edata_99nk attribute: month_p1_kWh color: C91818 name: Punta - entity: sensor.edata_99nk attribute: month_p2_kWh color: FF8000 name: Llano - entity: sensor.edata_99nk attribute: month_p3_kWh color: 1FA117 name: Valle #### CONSUMO ULTIMO MES COMPLETO #### type: custom:apexcharts-card experimental: color_threshold: true chart_type: pie header: show: true title: C.Último Mes show_states: true colorize_states: true floating: true all_series_config: show: legend_value: true in_header: false unit: kWh apex_config: chart: height: 250px series: - entity: sensor.edata_99nk attribute: last_month_kWh show: header_color_threshold: true in_chart: true in_header: true color: 0000FF name: Total - entity: sensor.edata_99nk attribute: last_month_p1_kWh color: C91818 name: Punta - entity: sensor.edata_99nk attribute: last_month_p2_kWh color: FF8000 name: Llano - entity: sensor.edata_99nk attribute: last_month_p3_kWh color: 1FA117 name: Valle #### CONSUMO MENSUAL DEL ULTIMO AÑO #### type: custom:apexcharts-card experimental: color_threshold: true graph_span: 395d stacked: true yaxis: - id: eje opposite: false max: '|+20|' min: ~0 apex_config: forceNiceScale: true header: show: true title: Consumo Mensual Último año show_states: false colorize_states: false all_series_config: type: column unit: kWh yaxis_id: eje extend_to: end show: legend_value: false series: - entity: sensor.edata_99nk color: 0000FF type: line name: Total data_generator: | return hass.connection.sendMessagePromise({ type: 'edata/consumptions/monthly', scups: '99nk'}).then( (resp) => { return resp.map((data, index) => { return [new Date(data['datetime']).getTime(), data['value_kWh']]; }); } ); show: in_chart: true - entity: sensor.edata_99nk color: 1FA117 name: Punta data_generator: | return hass.connection.sendMessagePromise({ type: 'edata/consumptions/monthly', scups: '99nk'}).then( (resp) => { return resp.map((data, index) => { return [new Date(data['datetime']).getTime(), data['value_p1_kWh']]; }); } ); - entity: sensor.edata_99nk color: FF8000 name: Llano data_generator: | return hass.connection.sendMessagePromise({ type: 'edata/consumptions/monthly', scups: '99nk'}).then( (resp) => { return resp.map((data, index) => { return [new Date(data['datetime']).getTime(), data['value_p2_kWh']]; }); } ); - entity: sensor.edata_99nk color: C91818 name: Valle data_generator: | return hass.connection.sendMessagePromise({ type: 'edata/consumptions/monthly', scups: '99nk'}).then( (resp) => { return resp.map((data, index) => { return [new Date(data['datetime']).getTime(), data['value_p3_kWh']]; }); } ); #### POTENCIA MAXIMA ULTIMO AÑO #### type: custom:apexcharts-card graph_span: 1y span: offset: '-30d' header: show: true title: Potencia Máxima Último Año show_states: false colorize_states: false chart_type: scatter series: - entity: sensor.edata_99nk name: Potencia máxima type: column extend_to: end unit: kW show: extremas: true datalabels: false data_generator: | return hass.connection.sendMessagePromise({ type: 'edata/maximeter', scups: '99nk'}).then( (resp) => { return resp.map((data, index) => { return [new Date(data['datetime']).getTime(), data['value_kW']]; }); } );