I don't have a Fire and I have read on here that their OS isn't exactly Android and some apps don't work on a Fire tablet.
Now on to the fun.....
First, I recommend doing all of this on your phone so you can copy & paste the endpoints or HTTP Requests. There are 2 options..... 1) Use RM and Local Endpoints which allows you to do anything you want, not just turn off a single plug, light, etc. or 2) Use Maker API.
For OPTION 1....
- Create a Rule for TURN OFF PLUG in RM
- Trigger is Local Endpoint since your tablet will presumably always be home. Copy this Local Endpoint to your phone.
- Action is Turn Off Plug
- Now go to Tasker --> New Profile --> State --> Battery Level --> Choose the range for when you want plug to turn off. I set mine From 85 To 100.
- Create the Task for that Profile. Step 1 (and only) is HTTP Request with Method of GET. Paste your Local Endpoint into URL
- Click Back Arrow
- Hit Play Button at bottom left corner of screen to make sure Task does what it is supposed to do.
- Repeat steps 1-7 for TURN PLUG ON and set Battery Level From 0 to 30 (or similar).
For OPTION 2...
-
Install Maker API (if you haven't already)
-
Check the plug that you are using is selected in Maker API
-
Copy the URL for Device Command that should look something like this: http://HubitatIPAddress/apps/api/3/devices/[Device ID]/[Command]/[Secondary value]?access_token=xxxxxxxx-xxxx-4xxxx-xxxx-xxxxxxxxxxx. In yours, the "3" will be the app number for your Maker API instance so it will probably be a different number. To get the DeviceID, you can open the device screen on your computer browser and the DeviceID will be in URL.
-
Now go to Tasker --> New Profile --> State --> Battery Level --> Choose the range for when you want plug to turn off. I set mine From 85 To 100.
-
Create the Task for that Profile. Step 1 (and only) is HTTP Request with Method of GET. Paste the URL from Maker API. Change [DeviceID] to the DeviceID for the plug you want to change; Change Command to off; delete [Secondary value] so your final should be something like this: http://HubitatIPAddress/apps/api/3/devices/655/off?access_token=xxxxxxxx-xxxx-4xxxx-xxxx-xxxxxxxxxxx
-
Repeat steps 4 & 5 but create New Profile with Battery Level of 0 to 30 (or similar) for turning on plug and your new URL will be http://HubitatIPAddress/apps/api/3/devices/655/on?access_token=xxxxxxxx-xxxx-4xxxx-xxxx-xxxxxxxxxxx
Let me know if I left something out. I apologize if I did. Writing the instructions is harder than actually doing this.
The benefit of Option 1 is that you can have multiple actions whereas Option 2 is only able to change one device per HTTP request.
