You cant use templates in device actions, triggers or conditions. Use the number set value service instead. Also you need to quote single line templates, supply defaults for your float filters and stop applying float filters to numbers that are already numbers. If you use a multi line template you must indicate it with > and not quote it (as I have done for your messages).
action:
- service: number.set_value
target:
entity_id: number.grid_export_limit
data:
value: "{{ ( states('sensor.allowed_grid_export_limit') | float(0) * 0.95 / 100 ) | round(0, 'floor') * 100 }}"
- service: notify.mobile_app_sm_s901b
data:
message: >
Povoluji přetoky do DS, protože cena výkupu elektřiny je {{ states("sensor.current_spot_electricity_price")|round(2)
}} Kč/kWh
title: GoodWe Grid Export Enabled
- service: notify.seznam_cz
data:
title: GoodWe Grid Export Enabled
message: >
Povoluji přetoky do DS, protože cena výkupu elektřiny je {{ states("sensor.current_spot_electricity_price")|round(2)
}} Kč/kWh
enabled: false
mode: single
Please don’t post pictures of text. Post the correctly formatted text.
You quoted a multi line template. After I told you not to. Also you are still applying float filters to numbers when you dont need to. Float filters are used to convert strings (words) to numbers.
I am having a devil of a time with some syntax. I have the equations to calc a desired pump speed to consume my extra watts. problem is, in the automation that I am using, it wants a number. I am editing in yaml and adding what seems to be the correct term. My desired pump speed is a term called sensor.VSPUMP_Desired and I am trying to set the pump speed to that. I get this :