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

Add json_key field to YAML configuration #9

Closed
tjhowse opened this issue Aug 31, 2020 · 1 comment
Closed

Add json_key field to YAML configuration #9

tjhowse opened this issue Aug 31, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@tjhowse
Copy link
Owner

tjhowse commented Aug 31, 2020

If a register has a json_key field then its key and value should be published to its pub_topic MQTT topic as JSON rather than the raw value. Multiple registers can share the same pub_topic, and this topic will be published at most once per scan populated with all relevant key/value pairs for those registers.

It is not allowed for more than one register to share a pub_topic unless they all have a json_key field and that value is not duplicated amongst registers that share a pub_topic.

@tjhowse tjhowse added the enhancement New feature or request label Aug 31, 2020
tjhowse added a commit that referenced this issue Jan 1, 2021
* Reformat readme
* Support for json_key register field allowing for multiple values to be published as JSON to a single MQTT topic.
@tjhowse tjhowse closed this as completed Jan 1, 2021
@tjhowse
Copy link
Owner Author

tjhowse commented Jan 1, 2021

Added in v0.4.0

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