Adafruit IO PLUS ONLY: Adafruit IO's SMS Action requires your Adafruit IO account to have an active subscription to Adafruit IO PLUS. Adafruit IO PLUS ("IO+") is the PAID Adafruit IO plan. Visit https://io.adafruit.com/plus for more info.
First head over to your Adafruit account page. Enter your phone number in the box and click continue and verify.
You should now receive a verification code at the mobile number you entered. Enter this code into the box labeled verification code. Press submit.
You should see a blue box that says Successfully validated phone number and your phone number in the box under mobile number.
If this is all correct you can continue to the next part of the guide.
From any page in Adafruit IO, click the link labelled Actions.
The Actions page shows a list of your Actions, with enable and info options for each Action, and a helpful search box for when you have a few in the list. Click the New Action button.
Now enter the Name and Description for your new action. You can change this later using the Settings button while editing an Action.
Now, using the Triggers section of the toolbox/sidebar, grab the trigger that uses the phrase gets data that Starts matching and place it into the Triggers: section of the diagram.
By using that trigger, you can avoid the action from firing until only the newest data received matches the condition. It checks that the previous datapoint does not match first, as well as that the newest point does now match the condition.
Inside the trigger block just placed, change the Feed dropdown to point at the Battery Percentage feed.
Finally change the value block to be 95, and the operator from equals (=) to Greater than or equal to (≥).
Make sure your action looks like the image below before continuing!
For the Actions: section of the diagram you'll want to use the Send SMS block from the Notifications toolbox category. Drag and drop it into place like before, and then update the message body text to mention the battery being fully charged.
Before continuing, make sure that your Action looks like the image below:
Finally choose Save Changes, and if asked then choose the Enable and Save option.
When the battery is fully charged, you should receive a text message from Adafruit IO!
To include the time that the action was triggered in a message, you'll need to use the feeds template placeholder variable. Only feeds used in the Actions: section can be accessed via the feeds placeholder object, including their last_value and created_at. Try using a Log utility block to view the output of placeholders inside template blocks, especially {{ vars }} and {{ feeds }}.
This will be improved very soon, but it's nice to know that the power is there even if hidden away...
Page last edited May 28, 2025
Text editor powered by tinymce.