Hello there,
I am quite new to this world and have started to display my energy consumption, which I get via the SmartPlugs from Tuya, in a graph. But Unfortunately, I don’t see anything.
My template:
type: custom:apexcharts-card
chart_type: donut
graph_span: 1h
header:
show: false
title: Energieverbrauchszusammensetzung
show_states: false
colorize_states: true
series:
- entity: switch.tuya_switch
data_generator: return entity.attributes.current_consumption;
name: Room
apex_config:
chart:
toolbar:
show: false
and these are my attributes which I got from localTuya
current: 765
current_consumption: 137.9
voltage: 241.7
raw_state: true
friendly_name: tuya_switch
Maybe the access to the attribute is wrong?
Thanks for your help!