Know the status of your appliances with the On/Off State Widget

Terence Anton Dela Fuente
Meeo
Published in
3 min readMay 9, 2017
Know whether your door is locked or unlocked in real-time!

One of the most important questions in life happens everyday when we ask ourselves “did I lock the door?” 😱 Every single time that we are going to go somewhere and we leave the house, we always have this feeling that we might have left something on or unlocked. With the On/Off State Widget, you won’t have to go through with this anymore 😎🤘

HOLD YOUR HORSES! To get started with your first awesome project with this widget, start off by reading the Introduction. You’ll understand what Meeo is all about. If you already read it, then let us proceed 🤘.

If you have chosen to add this awesome widget from the Widget Menu, you can give a specific name to your widget by typing on the “Name” field. You do not need to type anything on the “Channel” field for now because anything you type on the “Name” field is reflected on the “Channel” field (everything is in small caps and each word is separated with a dash sign “-”). If you really want to have a specific channel for your widget, then you can type the channel name you want. In case you are wondering what is the difference between the “Name” and “Channel” field, the first field lets you give a cool name to your widget. The second field is used as a channel for your devices to subscribe to or to publish data on. If you are happy with the name of your widget, you can now click/press the “Save” button.

“Door Lock State” has been suggested as a name for your On/Off State Widget

On/Off State Widget Information

In order for your device to connect to your widget, you need to know the widget’s information. To access this, each widget has an “Option” icon on the top right corner. Click/press the icon and you will see the Widget Information Box as shown on the image below:

Widget Information Box

The Widget Information Box holds the most important information of a widget; the topic. If you would notice, the topic is separated by a “/”. The phrase on the left is called the namespace while the phrase on the right is called the channel (remember the “Channel” field?). You should take note of these because it is needed by the Meeo Arduino Library.

On/Off State Widget Data

“True or false?” — using the On/Off State Widget is as easy as that. The following data can be used to signify that the On/Off State Widget is “on” or “true”:

  • 1
  • true
  • on
  • set
The On/Off State Widget displays a check to signify that your appliance/thing being tracked is on

The following data can be used to signify that the On/Off State Widget is “off” or “false”:

  • 0
  • false
  • off
  • unset or reset
The On/Off State Widget displays a check to signify that your appliance/thing being tracked is off

Live life to the fullest by being informed if you locked your door or not!

There is more to life than asking wether you have left your door locked or unlocked. Let the On/Off State Widget inform you that and do other stuff! 😎🤘

--

--

Terence Anton Dela Fuente
Meeo
Editor for

Co-founder and CTO at Circuitrocks | Tinkerer at ❤