esphome / esphome/feature-requests

Sensor for modbus device state

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

I would like to be able to check the state of a modbus device. Just seeing if the device is online or offline, like ping for webservices.

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

I am currently monitoring my solar inverter through modbus. All working well, until the sun goes down and the inverter shuts off. The state of my modbus sensors will keep showing the latest known value received from the inverter, so it looks like the inverter is still delivering very little power all night long. Would be nice if I could either have a sensor for the modbus state of the device which I can use to overwrite the sensor states to 0, or have something like the availability payload options for mqtt sensors in home assistant for each modbus sensor.

**Additional context**

Contributor guide

No contributing guide indexed for this repository

Research direction

The request names no files, tests, or entry points. First inspect the ESPHome Modbus integration and its handling of unavailable devices, then determine whether a device-state sensor or per-sensor availability is feasible; done means inverter-backed sensors no longer retain stale values when the device is offline.

Written by the indexing model from the issue text.

Assessment

Domain
embedded-iot
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.