Hi,
Sorry I newby. I have spent some time trying to read and understand but failed.
My system uses an include sensor.yaml file and the top of the file is like this (sorry the formating has been lost for some reason when I cut and pasted in)
- platform: template
sensors:
solaredge_pwr_today_kwh:
friendly_name: “Solar power today”
value_template: “{{ (states(‘sensor.solaredge_energy_today’)| int / 1000 ) | round(1)}}”
unit_of_measurement: ‘kWh’
average_soc:
friendly_name: “Average soc”
value_template: “{{ ((( states(‘sensor.GIVTCP_CE2232G255_soc’) | float) + (states(‘sensor.GIVTCP2_CE2232G271_soc’) | float)) / 2) | round(1)}}”
unit_of_measurement: ‘%’
saving_session_required_soc:
etc etc etc.
Q1: ‘friendly name’ seems to just change to ‘name’? so I edit that
Q2: only the first sensor is giving me an error message, so I only change the first one?
Q3: ‘value_template’ seems to have changed to ‘state’ so I just edit that?
Q4: the order in my file is firendly_name, Value_template, unit_of_measurement but in the examples given the order is different. Does it matter that the order is different or do I ignore that?