esphome / esphome/feature-requests

Please publish something when A01NYUB ultrasonic distance sensor sends invalid data

Open
#2,830 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**

Currently the A01NYUB component does not publish state when the actual distance is less than 11". That value is less than the device's specified minimum, so the device outputs bad data. The A01NYUB component software simply discard the data and does not publish anything.

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

I'm using this device and component to measure the empty space at the top of a tank. I hope to use this to send warnings when the tank is almost full. I can send the warning when the measured distance is close to the minimum. But I want to send a more severe warning when the tank has less than the minimum distance available.

**Additional context**

Perhaps the component software could publish "NaN" or similar value when it reads the invalid data. Or, publish a number like -1 that could trigger an automation and/or be filtered out.

Contributor guide

No contributing guide indexed for this repository

Research direction

The request names the A01NYUB component but no repository file or test. Start by locating that component and checking how invalid readings are currently discarded; define and test one published invalid-state behavior that supports the tank warning use case.

Written by the indexing model from the issue text.

Assessment

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.