I have made an own sensor-helper calculating the suplus of my solar panels. I check the current power-production on the growatt datalogger (inverter). I check the currect home-consumption.
I calculate the surplus, production minus the consumption. If this is more then 1000W i want to turn on a smartplug.
In my automation i set up: If the energysurplus is higher then 1000, turn on Smartplug.
It aint working, so im here for help.
In my overview, i see the surplus value "1,877.9 W".
I think this is where its going wrong, because i cant use a , and . in the automation?
How do i set the automation, that it turns on the plug when the value is higher then 1,000.0?
Or must i change the sensor output?