#name: "Energy-PercentPV1"

1 messages ยท Page 1 of 1 (latest)

sick lotus
#

Again:

What do you mean "position"?

gentle rune
#

i have talk to people how can i make this and this was the question to the picture

sick lotus
#

I don't understand what you mean

gentle rune
#

ah i cant load a picutre here

supple belfryBOT
#

Please use imgur or other image sharing web sites, and share the link here.

Image posting is blocked in most channels to discourage people from sharing text as images. Sharing text as images assumes that everybody sees the world as you do, which isn't the case. Some people are colour blind, or have visual impairment that means they can't make sense of an image of text.

sick lotus
#

As always โ˜๏ธ

gentle rune
#

the people is making percantage for PV
4400W is 100% and 3300 is 75 % he is writing this diagram i have write how have you make this and he is sending me the text

#

name: "Energy-PercentPV1"
state : '{{ states("sensor.pv_garage_big_growatt8k_powerpv1") | float / (16420) 100 | float | round(0) }}'
unit_of_measurement: '%'

#

but i dont understand i need this in Home Assistant or ESP Home ?

sick lotus
#

That looks like a template sensor, in HA

supple belfryBOT
gentle rune
#

and in what position / Text i need this to write

sick lotus
#

You should really ask the person that sent you that...

#

That would be the obvious thing to do ๐Ÿ˜‰

supple belfryBOT
#

@gentle rune To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

sick lotus
#

Also, format your code and it's easier to help you ๐Ÿ˜‰

#
template:
  - sensor:
      - name: "Energy-PercentPV1"
        state : '{{ states("sensor.pv_garage_big_growatt8k_powerpv1") | float / (16420) 100 | float | round(0) }}'
        unit_of_measurement: '%'
``` (probably)
gentle rune
#

and this i need in HA not in ESP Home ?

#

i need to go helper Template ?

sick lotus
#

Yes, and if you do that don't paste the YAML above

#

Just

{{ states("sensor.pv_garage_big_growatt8k_powerpv1") | float / (16420) 100 | float | round(0) }}
gentle rune
#

yes but dont work

sick lotus
#

What does that mean?

#

Have you tested the template?

gentle rune
#

I think I dont understand all

sick lotus
#

I'd guess you've missed something important between (16420) and 100

#

But the person who gave you that should be able to help too

gentle rune
sick lotus
#

Well, not all of this, but yes

gentle rune
sick lotus
#

Well, you should start by not breaking the template ๐Ÿ˜‰

#

There should have been a * or something there, but also other changes you made are causing problems

#

Or the person who wrote it doesn't know how templates work

gentle rune
sick lotus
#

Well... that's why I've told you MANY TIMES to format your code

#

But you won't

#

So... shrug

gentle rune
#

Yes

sick lotus
#

Maybe if you bothered to help us help you we'd have you a working template already ๐Ÿ˜›

gentle rune
#

yes yes but im stupid i dont know of this alss