ebaauw / homebridge-deconz

Homebridge plugin for deCONZ
Apache License 2.0
135 stars 7 forks source link

Wall Switch error message: option --json: is unknown #126

Closed xBilyz3 closed 1 year ago

xBilyz3 commented 1 year ago
          Unfortunately I get this error message. Maybe someone can help me. Could not find the solution myself.

curl -s -X PUT --json ‘{“wallSwitch: true“}’ http://127.0.0.1:46237/gateways/00212EFFFF06A0F1/accessories/7CB03EAA00AF52C0/settings curl: option --json: is unknown curl: try 'curl --help' or 'curl --manual' for more information

Screenshot 2023-04-02 at 11 06 21

Originally posted by @xBilyz3 in https://github.com/ebaauw/homebridge-deconz/issues/91#issuecomment-1493274540

BEskandari commented 1 year ago

Try this: curl -s -X PUT ‘{“wallSwitch: true“}’ http://127.0.0.1:46237/gateways/00212EFFFF06A0F1/accessories/7CB03EAA00AF52C0/settings

xBilyz3 commented 1 year ago

also does not work :(

curl -s -X PUT ‘{“wallSwitch“: true}’ http://127.0.0.1:46237/gateways/00212EFFFF06A0F1/accessories/7CB03EAA00AF52C0/settings

ebaauw commented 1 year ago

See the WIki

xBilyz3 commented 1 year ago

See the WIki

the description in the wiki leads to the error: curl: option --json: is unknown

ebaauw commented 1 year ago

RTFM https://github.com/ebaauw/homebridge-deconz/wiki/Dynamic-Configuration#example-3

xBilyz3 commented 1 year ago

RTFM https://github.com/ebaauw/homebridge-deconz/wiki/Dynamic-Configuration#example-3

thank you have read over it. works now