casamote

Generic HTTP / webhooks

Where to find the details

For Domoticz, eedomus, Node-RED, ioBroker, scripts… Define devices from your phone (QR page): for each command (on, off, toggle, open, close, stop, press, position, brightness) a method and a path. {value} is replaced by the position or brightness. Optional state call + JSON path (e.g. result.0.Level).

[
  {
    "id": "lampe-salon",
    "name": "Lampe salon",
    "kind": "LIGHT",
    "commands": {
      "on":  { "path": "/json.htm?type=command&param=switchlight&idx=12&switchcmd=On" },
      "off": { "path": "/json.htm?type=command&param=switchlight&idx=12&switchcmd=Off" }
    },
    "state": { "path": "/json.htm?type=command&param=getdevices&rid=12" },
    "statePath": "result.0.Status"
  }
]

What to enter

TypeGeneric HTTP / webhooks
Addresshttp://192.168.1.50:8080
CredentialOptional header, e.g. Authorization and its value

On the TV

  1. Systems › Add a system, then choose the type.
  2. Give it a name, then the full address, with http:// or https:// and the port.
  3. Enter the requested credential: token or key, or user and password in their two fields.
  4. Press Test: “Connection OK – N devices found” appears.
  5. Save. Your devices appear in the Types tab.

If it doesn't work

  • The TV and the hub must be on the same network. Guest Wi-Fi often isolates devices.
  • Include the port in the address: http://192.168.1.10:8123.
  • In strict local mode only private addresses are accepted (192.168.x.x, 10.x.x.x, 172.16 to 31, .local names).
  • A token pasted with a space or line break is refused: paste it again cleanly.
  • Still stuck? The Troubleshooting page explains the error messages.