Example on how to use an AVD Template with Flows.
I have created a Advanced Virtual Device (AVD) called Light Switch, containing three lights: Living room, kitchen and Game Room.
I also created a flow which controls the status of the buttons and the reactions to the pushing of the buttons:
And
You can copy this Device and its Flows with the The Exchanger File.
TEF:
[tef:AVD,FLOWS:"H4sIAAAAAAACA9V5aa/bWJLlX0kY/Y2l4b4ZmA+kxE0iKXETRTYKCe77Iop7df33ue/ZmVl2urPedNb0oG3AeiIvL8+NEyfihN/fPsXJXESJEnXtp8+fZOKlcF/+HDn27tsuE62rwG7ECV4wc+bCnobg8SS4N2GUuLDitVOc25Won068UxPGqlTnaIDYRzNPTUJaFFrKD/Vs2POLSobpWSfzrR0QqnvdYJa80nuMs2iEo1s0+ND6xOr9pkPxA12j9knNtISiQzA+x3kud5KEWKi7uQibhBSDx1h00/Fo7lUowm8Y1oR0GsZwdGOafsPueYmm9gmjoBZd2SmEiKSfIJzeaGRkE7vy4xlCqvm8lAEVjfidnfctJddmsFw4hCkMam4wvINz2DDcqBQ8sek8t1gsDj2bdinxsFh4GuQBM1SfXSk4fc4APAql/ALhFzZtV0ZXYB7X13hQIehKT+x8HmZ05SNnParoWGrXxw2KVLqQ4pXaUQpvnvTVRoPWp+MWZtTUuN7Ae21lH8lgIzFp0143jJqHlmDO0xgGbuPlyXDZxpV1kQ1mobRuVSqUn/BV3kj9HviEXZPTUDCTjKcnFk3CdVunqZk2IYY3vJmINB3rya6DkKKv6ZjPLMK2DMM84j2cB4ZMHw0T9zZ8vnXjrELstEvJBY/J+Y02ujRzNvOZB/wAV+QcTWB/uUYyRhOX21oHc5RNzXgKh1Aalq0ZWjs0r2dSL1zOJ/KzOsUQszhcbNcbITn0NWJcJXGpKr9Es4Ps56lP45TqrmRI+M+Zol15q+IltKK71yb6NbrVVw+ClmG6+HhIGBXdO5KJjTtsXacJ26Ux2I387juXctbRMetlLFL1x1mu52Iel7U4e7Z3W3ZeRYLuZiqpKz2jZiA1fK/CsRNh82QJcfakGkJB5rX3GAq7RNbeVdW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3OvtvF1oSsQFKIuEBQxhQC6MUcAam1EPMsngE/BSYMck/FNp/yQd8J7IPgfhOZBj2L1IZMF448PXkgSWCt26AkcD5k+AfFmeZMA2QN5p/VRkCHDaB4vGBoVPAKhoGb34lOtAxQ7FgOiBwnPxPVfY19p8/fyQ3Pn9+/3/N9wB9CON3OY3+eYP7u5z+0Om/w/Hnx6MfiCsEp6dYBjQxJgFAGDoATQwhDmmY0GBYBeYB/b6J/WnL/H8vLjSiWDaicFAyaOLN3dCHICbZA4KlDEYHCahI8R+K67/Y9L+T14dg/K6H/YvkxYB2SYLZEzBFvQ1m2FsBBVY5TciYRNIATzHkH5pYgIFZjaIPSBChByIhgK0MEhSwQ5M0GceggiP/XF4fyY5/lNeHMH6X1jj1p/3s71vXR07/HQ6C+LM4fievv//9r3//P/kavzWqMgAA":/tef]
How to copy the Device and there flows, and connect them to your devices, without going into the floweditor?
Read and create the Device and the Flow script
- Create a new Advanced Virtual Device and a Select from the Templates, and press Use Template.
- After the AVD(s) is/are created, you will get a overview of items that are to be replaced with your own items, like devices, zones, variables, etc.
- Set Your Devices:
(Light switch (other) will be filled with the current/new device name, leave it that way). - Now press Update Text.
- Run the text given in the textfield in the API Playground.
(It will be in your clipboard after clicking the link)
Now you have the AVD and the flows connected to it in your root folder: