Things5 managed Recipes

A things5 device recipe is a recipe specific to a particular device and managed by things5.

To manage recipes Things5 platform needs to fetch them from the device. To do so please use Init recipes request. Things5 will communicate via mqtt messages with the device to retrieve all the recipes.

Alternatively, you can use https://docs.things5.com/reference/read-recipes to get the recipes directly from the device, without saving the in Things5.

When recipes are updated on Things5 a message will be sent to the device. If Things5 receives an error from the device, it will be restored on Things5 a backup version of the recipe prior to the changes.

Recipe id

Internally things5 uses the field unique_id to uniquely identify a recipe. It will be automatically generated by things5 when a recipe is synced from a machine or created on things5. The machine can have a custom "id" field which can be any string, there is no constraint on things5 side, not even been unique. In mqtt messages the "unique_id" field will not be present as it should not be a device's concern. The device can use the id field to identify the recipe.