i am trying to get a statistic card to work, but i cant find my input
i use a esp 32, a AD to capture windspeed every second
then i calculate the possible windpower to W
then integrate it to Wh
convert it to KWh
and did try a lot to get something to work så i can get it to a statistic card, but it wont , i cant see any of it
i have all oft them in bric, but cant se them in statistic card
what can i do ?
i would like to have KWh , by h, day, mounth, year
sensor:
- platform: ads1115
multiplexer: 'A0_GND'
gain: 6.144
name: "vindhastighet"
id: analog0
update_interval: 1s
unit_of_measurement: "m/s"
accuracy_decimals: 2
filters:
- multiply: 12.12
- platform: copy
source_id: analog0
name: W
id: W
unit_of_measurement: W
device_class: power
filters:
- multiply: 1
- lambda: return ((x * x * x) * 1.22 * 0.4) /2.0;
- platform: integration
sensor: W
name: Whvind
id: Whvind
time_unit: h
integration_method: left
restore: True
device_class: energy
- platform: copy
source_id: Whvind
name: "KWHvind"
id: KWhvind
unit_of_measurement: KWHvind
device_class: energy
filters:
- multiply: 0.001
- platform: copy
source_id: KWhvind
name: KWh
unit_of_measurement: KWh
device_class: energy
You need to have working sensors , and it might help if you post your card-config, and the fact that those sensors show the actual states you want in the statistic-card Or do you mean statistic-graph ?
should be statistic-graph
i am doing this in swedish so it sometimes get wrong
card-config, ok, what, text or a picture?
i have the right numbers in output from esp32, but i cant find them when i want to use them in statistic-graph
working in another thing and happends the same thing
reading a battery whit a A/D , but half of the readings was negative, ads1115,
the only way i could read 3,6,9,12v made two of them negative
did a
lambda: ‘return abs(x);’
and that made it that i could not find two of my readings in statistic-graph
actually, i do not realy know what i am doing, so i try somthing and se if it works
i know what i want to have, and i look around and se what availible
i think i have solved it
did somthing else and find this