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

Please add MQTT Publish Action to Vapor Pressure Deficit Function, or a Function that can publish mult-values in JSON packet format. #1386

Open
LucidEye opened this issue Jul 1, 2024 · 2 comments

Comments

@LucidEye
Copy link

LucidEye commented Jul 1, 2024

I would like to be able to publish the value from the VPD Function over MQTT.
I am working on building a remote WiFi display that would show temp, humidity, VPD, and Outputs on or off.
I can publish measurement data via MQTT directly from the Inputs settings, but there is no option to publish the measurement data from the VPD Function.
image

Another, better option, would be the ability to publish multiple measurements at once in a single MQTT topic, directly from the Inputs setup, or have a Function that allowed us to publish several measurements at once in an MQTT JSON packet format for exporting data to IoT devices such as remote displays or for integration with other automation systems like Home Assistant.

I understand it might seem redundant since the Inputs already have the MQTT publish Action, but those are single measurements for each topic, and many sensors take multiple different measurements at once, so it would be useful to be able to publish those multiple measurements in a single MQTT JSON format topic.
Thank you.
IMG_20240701_012854

@kizniche
Copy link
Owner

I'll see if I can create an analogous Action for Functions, but Functions operate differently from Inputs, so it's not as straightforward as copying it.

@LucidEye
Copy link
Author

I'd been thinking about this and realized there's also the fact that not all of the measurements one may select to be packaged for transport will be acquired at the same time.
So I'm guessing the function would need to pull the most recent set of whatever measurements are selected from the database, at a timed interval, which means that the remote receiving device may have some values that are a few seconds behind the actual most recent measurements? That would be fine, in my case the remote device just a display to keep an eye on the "critical" measurements without having to have a computer turned on and a browser open.

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

No branches or pull requests

2 participants