esphome / esphome/feature-requests

on_nan_value for sensor

Open
#2,218 0 comments 0 reactions 0 assignees View on GitHub
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**

on_nan_value:
- switch.turn_off: relay_D2

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

my current construction

on_raw_value:
then:
- lambda: !lambda |-
if (isnan(id(temp).raw_state)) id(relay_D2).turn_off();

**Additional context**

looks better

Contributor guide

No contributing guide indexed for this repository

Research direction

The request names the sensor callbacks on_nan_value and on_raw_value plus a lambda action; start by tracing how sensor automations and NaN states are currently handled. Done means a sensor configuration can invoke the requested switch.turn_off action when its value is NaN, with coverage for the relevant behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, yaml
Domain
embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.