Trend sensors

Need help with Trend sensor, please
I have this in my configuration.yaml. The goal is to measure Rate of Rise for Temperature reported by
sensor.temperature. And build a graph.
(Something like this:


What is Baked Coffee? (MOST PROS DON'T KNOW!) — Scott Rao)

Insted it just says No heat detected.

Thank you.

######## Rate of Rise calculation
binary_sensor:
  - platform: trend
    sensors:
      temp_rising:
        entity_id: sensor.temperature
        unique_id: temp_rising_trend
        sample_duration: 1200
        max_samples: 400
        min_samples: 20
        min_gradient: 1
        device_class: heat
#########################

You have misunderstood the Trend sensor… It’s a binary sensor that tells you whether the trend is above or below the value you supply for min_gradient.

You can create a Template sensor based on the gradient attribute of the Trend sensor to get what you are going for.

template:
  - sensor:
      - name: Temperature Rising Rate
        state: |
          {{ state_attr('binary_sensor.temp_rising', 'gradient') }}
        state_class: measurement
        unit_of_measurement: °F/s

The other option would be to use the Derivative Integration.

Thank you! let me read.