Elgato Control Center (ECC) API v1.1.0
Fixed --toggle
bug that turned on/off the light even if not present.
Replaced:
if matches.contains_id("toggle")` {}To:
if matches.value_source("toggle") == Some(clap::parser::ValueSource::CommandLine) {}
The script now outputs a Standard JSON Format string that can be parsed with any JSON interpreter:
ecc-api --ip <ip> --port <port> | jq
Giving thus the following (eg. LightStrip):
{
"brightness": 100,
"hue": 360.0,
"on": 1,
"saturation": 100.0
}