Files
openclaw-workspace/home-assistant/open-garage.ps1
2026-04-11 09:45:12 -05:00

3 lines
436 B
PowerShell

$token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJmM2QzZWU1NGQyMWI0NGVkYWJmZGE4OGFiMTE3OTQ0MyIsImlhdCI6MTc2OTYxMzM0MiwiZXhwIjoyMDg0OTczMzQyfQ.L5atWZ-zyn-gA7QELxzRXoMnVilyz338hApOuL5MFas"
$body = @{entity_id = "cover.garage_door"} | ConvertTo-Json
Invoke-WebRequest -Uri "http://192.168.0.39:8123/api/services/cover/open_cover" -Method Post -Headers @{Authorization="Bearer " + $token} -ContentType "application/json" -Body $body