Have a HACS HUAWEI integration - that works fine
in the Template in development, I can subtract "inverter_active_power" from what I export
but if I put that into "/homeassistant/configuration.yaml" - like this
Please follow Community Questions Guideline #11 by using the “Preformatted text” option on any code or YAML configuration so that it is properly formatted. It can be difficult to determine the source of an issue if we cannot tell whether the proper indentation and syntax has been followed.
The Template Editor tool only understands Jinja. It cannot check the validity of your YAML. That being said, what you have shared would not "work fine" in the Template Editor either.
The sensor is returning exactly what you told it to return:
Hi - thanks a lot - but I have allready been there ... and it is not explains what I do wrong - and since there no way of doing subtraction direct in HA - I guess I have to give up - but thanks for link ..