Increase timeout of onoff?

I’m developing the Playstation App

The process of waking up / sending to sleep is used with the onoff capability of Homey devices. This is a process that takes more than the 10 second timeout of Homey. The onoff works eventually but you get an annoying timeout error message.

Does anyone know if it’s possible to configure this timeout? I couldn’t find any information in the docs or forum.

A workaound would be

  • start an async call without await in capability listener to prevent timeouts.
  • If the API call is finished or timed out, update the capability from your async function to keep it synced (if it changed somehow else).
1 Like