Hi Everybody,
I am using to detect my power consumption of my PV an Sonoff device. Everything works fine, flashed tasmo.
but I have one issue, my Electric converter needs 8w if the PV doesn’t produce Power.
So i have in my Metering at night 8w which will detect as production, how can I Create an device which will have the same prop of the sensor but remove 8w.
can someone help me?
I hope I wrote the Explanation correct and understandable…
Logger: homeassistant.config
Source: config.py:867
First occurred: 09:18:37 (1 occurrences)
Last logged: 09:18:37
Invalid config for [template]: invalid template (TemplateSyntaxError: unexpected char "'" at 44) for dictionary value @ data['sensor'][0]['state']. Got "{{ states(sensor.sensor.tasmota_energy_power')|float(0) - 8 }}". (See /config/configuration.yaml, line 60).
Both the availability and state templates are missing the first ’ as I copied and pasted the state template into the availability template when I wrote it to save time.
so i had now a little more time, just boring meetings, i find out in the dev template he cannot show the sate object.
I will spend time for more investigation, sorry for you, that i take your time
You included the energy sensor in the triggered sensor. it needs to be a separate sensor (by using - in front of sensor:). The indention is also very important, and missing from your last pasted example above, so that is confusing.
So @tom_l Thanks for Support yes now i changed it and it works, thanks for the perfect support.
so i will now try to avoid that the value will not under 0, hopefully it would be not a big work.
Yes there are. The new format which goes under the template: integration and the old ‘legacy’ template sensor platform which goes under the integration sensor: as -platform: template
While the old format will continue to be supported it is recommended that you use the new format for all new sensors as if new features are added they will likely not be added to the old legacy format.