Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- s = requests.Session()
- data = {"form":True,"login":"admin","password":"password","keepme":False,"default_ui":1}
- result = s.post("http://192.168.0.188:8083/ZAutomation/api/v1/login", data=data)
- print(result)
- result = s.post("http://192.168.0.188:8083/ZWave.zway/Run/devices[5].instances[0].commandClasses[38].Set(25)", cookies=s.cookies)
- print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement