Created
February 5, 2018 02:19
-
-
Save ProxiBlue/f7a751c9634a175bde1d6725abd7ce6c to your computer and use it in GitHub Desktop.
Sensibo AC Climate React Scheduling via API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
STATE=$1 | |
echo $STATE | |
curl -X PUT -H "Content-Type: application/json" -d '{"enabled":'${STATE}'}' https://home.sensibo.com/api/v2/pods/DEVICE_ID/smartmode/?apiKey=API KEY |
Thank you for your reply, I totally missed the parameter part at the end (true or false).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@hrishter (sorry, never seen your comment from back then), so just for others: yes, the script uses a device ID so can control any unit.
You can easy adjust the script to accept additional params, and pass a device ID to control
then use params : ~/sensibo_climate_schedule.sh true XXXXXXXXX (state + device UUID)