I’m currently using a Sonoff iHost (eWeLink CUBE 2.5.2) and I’m trying to control local Zigbee devices via the Open API. Specifically, I’m working from the Homebridge Docker terminal, running on the iHost itself.
I intend to use the Homebridge plugin “GarageDoor Command”, where I would integrate:
A contact sensor (Zigbee, added locally via iHost)
A relay switch (added via the eWeLink app)
I’m able to retrieve device information using the /open-api/v1/rest/devices endpoint, but when I try to control a device using PUT /devices/state, I get the following error:
The devices are visible and online in the device list, and the API itself is responsive. This suggests that the token I’m using does not have permission to write to local Zigbee devices.
However, my iHost interface does not show any “Developer” or “Open API” panel, and I couldn’t find a way to generate a token with write permissions. Also, the Docker Add-on Store does not list any official ewelink-open-api container.
Could you please clarify:
How can I enable Developer Mode or generate a token with write access for local Zigbee devices?
Is there an official way to install the Open API interface (if required) on the iHost?
Is there any workaround to allow local control for use cases like Homebridge plugins?
I’ve used ChatGPT to help me doing all the commands and I’ve read the followings sites: