No, quoting the platform made it worse, and there should be a space between the - and platform… Indentation determines wat is grouped, so match the indentation of the documentation examples exactly. I cannot test it right now, but it should look something like this:
There seems to be more wrong, as I edited above it looks like a mix of different things. Where are you putting this? In the gui in a template helper, or in configuration.yaml, or in sensors.yaml, or in template.yaml?
In templates.yaml, it should look something like this:
Again you are combining bits of the syntax that are not meant to be used that way. Name the file templates.yaml and put this in configuration.yaml:
template: !include templates.yaml
Check the configuration in the developer tools, and if it is not giving an error and not triggering new notifications in the tray, restart Home assistant. This is what should be in templates.yaml in your config directory:
That did it! Now I got a sensor named sensor.elpris_inkl_allt
I hope it gets updated as it is i want now.
It gets the price for electricity from nordpool sensor, and that sensor works. Then it adds some taxes. I know only get 0,8, and that is whats calculated in the figures I put in. It has not added the Nordpool value yet but maybe that needs another hour to update…