id: fibaro-call-device-actions topic: hc3-api title: Device actions go through fibaro.call, not raw api.post pins: - tests/test_recipes.py::test_recipes_use_fibaro_call_for_device_actions verified: flua 0.1.168


Device actions go through fibaro.call, not raw api.post

The HC3-idiomatic way to act on a device:

fibaro.call(lightId, "turnOn")        -- -> POST /devices/<id>/action/turnOn, {args={}}
fibaro.call(tempId, "setValue", 21.5, "C")  -- extra args ride in the args table