1 2 3 4 5
#!/bin/sh cmd="$1" [[ -z "$cmd" ]] && cmd="toggle" curl -X POST "$HASS_SERVER/api/webhook/$cmd"