#name: "Energy-PercentPV1"
1 messages ยท Page 1 of 1 (latest)
i have talk to people how can i make this and this was the question to the picture
I don't understand what you mean
ah i cant load a picutre here
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.
As always โ๏ธ
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 ?
That looks like a template sensor, in HA
and in what position / Text i need this to write
You should really ask the person that sent you that...
That would be the obvious thing to do ๐
@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.
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)
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) }}
yes but dont work
The #templates-archived channel can help you with writing and testing templates
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
I Need to Copy this Text and send in #templates-archived
Well, not all of this, but yes
Yes I have make it Right for my System
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
Yes but it is Not sending here
Well... that's why I've told you MANY TIMES to format your code
But you won't
So... 
Yes
Maybe if you bothered to help us help you we'd have you a working template already ๐
yes yes but im stupid i dont know of this alss