Magnetic switch BLE flow

Flow example for: Wireless temp & humidity sensor BLE

Flow setup

  1. Start by dragging your beacon into the flow.
  2. Drag four Get variable value from the Dashbaord menu.
  3. Drag two Matches from the Logic menu.
  4. Drag a Set variable value from the Dashboard menu
  5. 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.
  6. 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.
  7. Create a variable value in: Set variable value and call it, for example, Magnetic switch and set it to be active in the node.
  8. Also create in the last two Set variable values one called Armed and Disarmed.
  9. Drag in a Toggle from the Logic menu and connect Connected to On and Disconnected to Off.
  10. 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.
  11. 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

  1. Press the menu: Dashboard in the top menu.
  2. Tap into an existing dashboard or create a new one.
  3. Press Edit on the right side and select a: Button and a Value.
  4. 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.
  5. Press the nut for value and give it a title, for example Status, and connect the Variable value to the one called Magnetic switch.
  6. Finish by pressing save on the right side.

 

Mobile view

  1. Press share on the right side.
  2. Turn on Allow public access.
  3. 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.