MQTT Devices are now able to handle JSON input & output.
Version 3.1.0
- MQTT device: grab input value from json messages (jsonPath)
- MQTT device: format output message payload to json (JSON-T template)
I added two optional config parameters per capability:
value path: point to a value within the JSON payload of the state messate using JSONPath.
output template: format the output using JSON-T. Both string & object output are supported. All values from the device state (capabilities) can be inserted in the payload.