Is there any way to turn off the device after a some time? For example, the zigbee miniL2 is turned on using a wall switch and it is necessary that the device turns off after 30 minutes. I looked in the device settings in iHost and Evelink app, but there are no such options. Any ideas?
I think you are talking about inching mode?
probably yes
There’s no inching feature on eWeLink CUBE; you can use Node-Red to automate it as a workaround.
If you have SONOFF ZBBridge -p/u, you can set this feature via the eWeLink app.
If you propose to add this feature, please move it into Feature Request category, I will help to ping SONOFF.
miniL2 is connected to my ZBbridge-p. I didn’t find such function in ewelink app
ZBMINIL2 doesn’t have this function in the application, or I didn’t find it either, but @morgan found an amazing solution that works great, although it requires the use of third-party services, but it’s a blast. I’m posting a link to his post just edit it to your liking.
Is there an example or diagram of how to do this?
Here’s a quick demo flow:
[
{
"id": "d59395a80c60761d",
"type": "event-state",
"z": "f6f2187d.f17ca8",
"name": "",
"server": "d5cd9e51f8589868",
"list": "",
"category": "switch",
"device": "3410f4fffe3e42e0",
"state": "power",
"x": 170,
"y": 300,
"wires": [
[
"e8f820f29854fdab"
]
]
},
{
"id": "e8f820f29854fdab",
"type": "switch",
"z": "f6f2187d.f17ca8",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "cont",
"v": "on",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 350,
"y": 300,
"wires": [
[
"4c891649f774fbdc"
]
]
},
{
"id": "4c891649f774fbdc",
"type": "delay",
"z": "f6f2187d.f17ca8",
"name": "",
"pauseType": "delay",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 520,
"y": 300,
"wires": [
[
"795f0c3244d8e67f"
]
]
},
{
"id": "795f0c3244d8e67f",
"type": "control-device",
"z": "f6f2187d.f17ca8",
"name": "",
"server": "d5cd9e51f8589868",
"list": "",
"category": "all",
"device": "3410f4fffe3e42e0",
"v2Data": "{\"state\":{\"power\":{\"powerState\":\"off\"}}}",
"x": 720,
"y": 300,
"wires": [
[]
]
},
{
"id": "d5cd9e51f8589868",
"type": "api-server",
"name": "Token",
"ip": " 10.0.0.103",
"ipaddr": "",
"token": "de19831c-f724-46b3-b690-9a4784b481b7"
}
]
Thanks, I will try, I will cry
Hallo, versuche es mit einer Szene (wenn - dann)… Funktioniert bei mir einwandfrei…
scene cannot be created. When creating a scene, if you select a miniL2 in the IF condition, then this miniL2 is not available for selection in the THEN condition.
you can create a manual scene off and then you will have minil2 in the condition and then insert the scene off. but it has its disadvantages. the scene timer runs even if you manually turn off the device, so it may happen that you turn it on again and it turns off after a while because the previous timer has run out. above I sent a link to how Morgen solved it without this effect using a webhook and a sequence. what environment are you using
Is it planned to add inching mode to the device? This would solve all the problems and there would be no need to use crutches
I managed to create the scene below.
I used a human presence detector to turn on a zigbee minil2
——————————————————————
SBZB-06P. Person detected and ambient light is low
Then smart device. First light. On
Delay. 40 secs
Smart Device. First light. Off
It was designed to turn on First Light in a room adjacent to our bedroom during low light conditions to give a 40 sec period to enter and exit the room. Once triggered it has to turn off. If however Alexa (or a manual switch) is used to operate the light before operating the sensor, the sensors scene is inhibited by the ambient light now being bright.
If one doesn’t clear the room within 40 secs the light remains off until the presence is no longer detected and the sensor is again in the no presence detected state.
I would guess that my scene could be altered slightly to accommodate what you wish. I’ve had this running faultlessly for a few weeks now.
It’s not on the radar right now. That’s why we are discussing a temporary workaround.
The team is focused on some major features that are currently in progress. Once those are rolled out and settled, we’ll look into expanding the features for basic device types.
Thanks for the instructions. I did everything as you wrote, the scene works successfully