Im creating a blueprint where I will use power sensors. For example, I’m defining it like this in the blueprint
sensor_house_power:
name: Total Power Consumption Sensor
selector:
entity:
domain: sensor
device_class: power
And in the action, I’m trying to use the sensor like this
grid_power: "{{ states (sensor_house_power) | float(0) }}"
actual_free_power_day: "{{ max_grid_power_day - grid_power }}"
But instead of adding the grid_power from the sensor, the value is 0.
What’s wrong with my syntax?