Hello
I would like to create a sensor that represent the yeld of Photovoltaic. so I need to calculate the following (which returns a value between 0 and 1)
sensor.consumo_giornaliero / (sensor.consumo_giornaliero+sensor.produzione_fotovoltaico_giornaliero)
What is the syntax for creating a new sensor with this formula?
Thanks in advance