-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Set Fallback Values to Zero When No Data is Observed #3
Comments
Hello, I am in the process of writing taptap to MQTT bridge and I will be implementing exactly such a feature. Honestly I do not think, that this is something it has to be implemented in the taptap, as from the architecture point of view this is higher data manipulation function then the simple decoding of the tigo protocol. Another data manipulation feature will be also translation table from the module serial to the friendly name through translation table. This table would also works as list of the modules to be able to detect any module missing or not reporting data. But again something which can easily live inside of the higher SW function. (Written in something more hackable like python :-) ). |
Thank you for the update and for working on adding MQTT support to Currently, my setup looks like this:
In this workflow, taptap streams its JSON output to a named pipe, and Telegraf handles reading from the pipe and publishing the data to an MQTT topic. Let me know if you’d like more details on my workflow, or if there’s anything I can test or contribute as MQTT support evolves. Thanks again for the great work! PS - friendly name through translation would be welcome as well. It would make it basically feature complete from an observability standpoint (imo). |
Just to be fair. I am not author of the TapTap, so I am also very thankfull to @willglynn for his work. I just want it to make it easier for me and others to use it inside out home automation. I will post more info about the MQTT bridge here, hopefully soon. |
I think it's do-able in |
Sure it is doable. But then you can only assume what modules you have really installed. Maybe some were added or removed, other could die etc. Tigo gateway has a complete list of provisioned list of modules serials. To be able to replicate the same functionality you would need to have a similar list as a configuration input. Otherwise it will be guesswork at least to some degree. |
Each gateway contains a node table, exhaustively enumerating all the modules with which it communicates. |
This is great to hear. It reassures my concern of the request being out of scope. I thought it would be a small feat to extend |
Ok, thank you for this information. I didn't know it - i.e. that taptap is able to get the node table from the gateway using only passive communication sniffing. If so then my comment was incorrect. |
@litinoveweedle The node table contains the 64-bit long addresses of the associated modules. This is enough to synthesize events from modules which aren't transmitting, which satisfies the ask here. You're right that this information is incomplete. As far as I know, neither the gateway nor the modules themselves know:
This information isn't necessarily required, and I'd like ‡I suspect that some information about the electrical layout is encoded in the PV configuration, but I also suspect this information is incomplete. Using my install as an example, I have two strings A1-A7 and B1-B7 which are paralleled into a single MPPT input. I think that my A string modules and B string modules each know they are in series together, and I think that all these modules know that their string is paralleled with the other string, but I do not think A2 knows it is in series after A1 and before A3. I haven't worked to extract this information because I think it would be better to support user-provided names for each ID. |
I hacked my gateway and if I remember correctly it contains friendly names of modules, but doesn't have the layout (neither electrical nor physical). That information is only stored in the cloud as far as I know. My goal is to get taptap into HomeAssistant for easy use. So I am working on the taptap MQTT bridge with the HA auto-discovery. All the other higher level informations like the layout can be then easily handled in the HA, so I am not going to implement those. |
Description:
It would be helpful if
taptap
could set fallback values (likecurrent
andvoltage
) to0.0
when no new data is observed. This ensures that downstream consumers, such as dashboards or MQTT brokers, don't display stale or misleading values when data stops flowing.Use Case:
In systems like solar monitoring setups, sensor data naturally stops transmitting at night. Currently, stale "last-will" messages or old data can cause dashboards to display incorrect constant values until the next morning. By setting
current
andvoltage
to0.0
, users can avoid this issue.Proposed Solution:
0.0
) for key fields likecurrent
andvoltage
.Example Desired Output:
Here’s an example JSON output that
taptap
could emit when no data is observed:The text was updated successfully, but these errors were encountered: