I'm trying to understand the difference

Why isn’t this working with templates ?

device_id: 2e0d0d3d71e2d685c29d4f2865dbe1d3
domain: number
entity_id: 0ba67e581175503bf582b81596ad6934
type: set_value
value: "{{ states('sensor.tasmota_power_power_curr') | float()}}"

And why dose this work with templates ?

service: number.set_value
target:
    device_id: 2e0d0d3d71e2d685c29d4f2865dbe1d3
    entity_id: number.balkon_limit_nonpersistent_absolute
data:
  value: " {{ states('sensor.tasmota_power_power_curr') | float()}}"

thnky 4 ur help !

Devices don’t support templates - you have to use entity id and states.

3 Likes

best man ! thx

1 Like