Skip to content

Instantly share code, notes, and snippets.

@ProxiBlue
Created February 5, 2018 02:19
Show Gist options
  • Save ProxiBlue/f7a751c9634a175bde1d6725abd7ce6c to your computer and use it in GitHub Desktop.
Save ProxiBlue/f7a751c9634a175bde1d6725abd7ce6c to your computer and use it in GitHub Desktop.
Sensibo AC Climate React Scheduling via API
#!/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
@ProxiBlue
Copy link
Author

@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

#!/bin/bash 
STATE=$1
DEVICE=$2
echo $STATE $DEVICE
curl -X PUT -H "Content-Type: application/json" -d '{"enabled":'${STATE}'}' https://home.sensibo.com/api/v2/pods/${DEVICE}/smartmode/?apiKey=API KEY

then use params : ~/sensibo_climate_schedule.sh true XXXXXXXXX (state + device UUID)

@sfspot2020
Copy link

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