SONOFF ZB Mini timered ON

Hi all,
I’d like to use a sonoff zigbee mini on my interphone to open the entry door. I use deconz for my zigbee network but because I use openhab for all I know very little about deconz configuration.
I’m able to switch on/off but I cannot trigger the timered ON through openhab. I found the correct cluster with deconz but I don’t know how to configure it to work with openhab.
Thanks for all

I think I will make a role but I don’t like that :S

Ok, thanks to @J-N-K from the 3.1.0-snapshot there is a new channel named “on time”.
I tried to use it but it don’t work with my sonoff mini.
I tried the command “openhab:send OnOfflight9SONOFF_OnTime 3” on karaff but it didn’t work.
Maybe the problem is on my deconz. How can test it with the rest API?

Try sending "180 s"

Nothing of follow commands worked:

openhab> openhab:send OnOfflight9SONOFF_OnTime 180 s
Command has been sent successfully.
openhab> openhab:send OnOfflight9SONOFF_OnTime "180 s"
Command has been sent successfully.
openhab> openhab:send OnOfflight9SONOFF_OnTime 100
Command has been sent successfully.
openhab> openhab:send OnOfflight9SONOFF_OnTime 180
Command has been sent successfully.

with the API it worked:
from CLI:
curl -X PUT -H "Content-Type: application/json" -d '{"on": true, "ontime": 30 } http://192.168.1.151/api/4E2BA46CB6/lights/9/state
and browser:

Please show a TRACE log. It worked with an IKEA Tradfri Light when I implemented it.

Oh. I forgot: you need to send an ON, a Color or a brightness afterwards.

how can I do this?
I did:

openhab> openhab:send OnOfflight9SONOFF_OnTime 30
Command has been sent successfully.
openhab> openhab:send OnOfflight9SONOFF_OnOff ON
Command has been sent successfully.

this ON the light without the OFF

EDIT:
I restarted the service openhab and now it works,
on karaf:

openhab> openhab:send OnOfflight9SONOFF_OnTime 10s
Command has been sent successfully.
openhab> openhab:send OnOfflight9SONOFF_OnOff ON
Command has been sent successfully.

If I set a widget:
3 s
on action commands and I send ON .

Tomorrow I’ll test if I the ontime is lost after an openhab restart, deconz restart, sonoff restart.
Thanks for all @J-N-K

It is. You need to set it everytime the thing is re-initialized.

thanks for all,
I will set it at startup. :+1:

Do you know if zigbee2mqtt have the same funtionality?