Flow example for: Wireless temp & humidity sensor BLE
Flow setup
- Start by dragging your beacon into the flow.
- Drag four Get variable value from the Dashbaord menu.
- Drag two Matches from the Logic menu.
- Drag a Set variable value from the Dashboard menu
- Connect from beacon: Action to Value in the Match node, enter a 1 number in the top one and a 0 number in the bottom one.
- Drag two Value from the Logic menu and select Text, then fill in Open in one and Closed in the other and connect Open to 1 and Closed to 0 in Match.
- Create a variable value in: Set variable value and call it, for example, Magnetic switch and set it to be active in the node.
- Also create in the last two Set variable values one called Armed and Disarmed.
- Drag in a Toggle from the Logic menu and connect Connected to On and Disconnected to Off.
- Drag an And gate in from the Logic menu and connect from Toggle State to Input 1 on the And gate and connect from Magnetic Switch action to Input 2 on the And gate.
- Drag a Send SMS in from Notification and connect from And gate output to Send on Send SMS. Fill in your information and what should be in the SMS.
Dashboard
- Press the menu: Dashboard in the top menu.
- Tap into an existing dashboard or create a new one.
- Press Edit on the right side and select a: Button and a Value.
- Press the small nut on the Button and give it a title, for example Alarm mode, connect the Variable value enabled and disabled to two buttons, each with a different color.
- Press the nut for value and give it a title, for example Status, and connect the Variable value to the one called Magnetic switch.
- Finish by pressing save on the right side.
Mobile view
- Press share on the right side.
- Turn on Allow public access.
- With that URL page you can access your dashboard on your phone as an app.
Note: This flow is just an example, your flow can be built according to your own needs, this flow is just for inspiration.