esphome / esphome/feature-requests

New internal ESPHome Trend Sensor requested

Open
#2,185 2 comments 5 reactions 0 assignees View on GitHub
component: sensor
Dominant language
No language data
Stars
450
Forks
29
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem you have/What new integration you would like**

Create a new "Trend sensor" in ESPHome based on an internal sensor value.

**Please describe your use case for this integration and alternatives you've tried:**

Creating an ESPHome template sensor based on a home assistant trend sensor works great as long as home assistant is available.
**Additional context**

Only works if home assistant is available. My use case must work without home assistant being available,

basically implement the same functionality as exists in home assistant:
```
binary_sensor:
- platform: trend
sensors:
house_stove_pipe_temp_falling:
entity_id: sensor.house_uart_pipe_temp
sample_duration: 10
max_samples: 10
min_gradient: -0.2 #5 degrees / 10s
device_class: cold

house_stove_pipe_temp_rising:
entity_id: sensor.house_uart_pipe_temp
sample_duration: 10
max_samples: 10
min_gradient: 0.2 #5 degrees / 10s
device_class: heat
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.