Skip to content
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

Allow option of pushing data to ha-mqtt-iot instead of polling only #6

Open
W-Floyd opened this issue Sep 28, 2021 · 1 comment
Open
Labels
enhancement New feature or request
Milestone

Comments

@W-Floyd
Copy link
Owner

W-Floyd commented Sep 28, 2021

Being able to push data to this tool would improve latency/reduce polling, and allow more complicated tools to be decoupled much easier. I am not a computer scientist, so my immediate thought is to allow using a Unix socket (if available?), or maybe just a file to write the state to. Any accompanying program would then watch the state to take commands.

@W-Floyd W-Floyd added the enhancement New feature or request label Sep 28, 2021
@W-Floyd W-Floyd added this to the v1.0 milestone Sep 29, 2021
@W-Floyd
Copy link
Owner Author

W-Floyd commented Mar 6, 2023

Some more thoughts on this, while having an option to pipe data in externally and on-demand, a simple method to stream data around using channels would be a good first (and main) step. For cases in which a command produces data quickly and then exits, we can spin up our own recurring function to run it again occasionally. For cases in which the external software would be better suited to periodically sending updates (for example, listening for an event/measurement), we should be able to simply read this new line, and process as needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant