# Smart scene for a blinking light

**URL:** <https://forum.ewelink.cc/t/smart-scene-for-a-blinking-light/29861>\
**Category:** Free discussion\
**Tags:** scene\
**Created:** [March 24, 2024, 11:47am UTC](https://forum.ewelink.cc/t/smart-scene-for-a-blinking-light/29861 "2024-03-24T11:47:56Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Denis\_the\_malice](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@Denis\_the\_malice](https://forum.ewelink.cc/u/Denis_the_malice)\
**Post date:** [March 24, 2024, 11:47am UTC](https://forum.ewelink.cc/t/smart-scene-for-a-blinking-light/29861/1 "2024-03-24T11:47:56Z")

</div>

Hello, I need help to write a scene,

Input conditions : several Zigbee SNZB-04 → window/door(s) open  
After 1 hour, which means I forgott to close the window(s)  
Activation of a MiniR4 (Commanding a buzzer and a flash alarm) for 15sec, then off 5 min, then again on 15s  
Untill all windows are again closed.  
I could of course write the scene that worked for 1 time 15s alarm using inching, but i dont find out how to create a loop.  
Loop timer would be great if another condition than a start date and time can be implemented.

Thanks

---

<div class="post-metadata">

**Author:** ![morgan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/morgan/32/3184_2.png) [@morgan](https://forum.ewelink.cc/u/morgan)\
**Post date:** [April 14, 2024, 8:23am UTC](https://forum.ewelink.cc/t/smart-scene-for-a-blinking-light/29861/2 "2024-04-14T08:23:22Z")

</div>

> [@Denis\_the\_malice](#):
>
> Loop timer would be great if another condition than a start date and time can be implemented.

[https://sequematic.com/](https://sequematic.com/)

---

<div class="post-metadata">

**Author:** ![songal](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@songal](https://forum.ewelink.cc/u/songal)\
**Post date:** [April 15, 2024, 2:03am UTC](https://forum.ewelink.cc/t/smart-scene-for-a-blinking-light/29861/3 "2024-04-15T02:03:33Z")

</div>

> [@Denis\_the\_malice](#):
>
> I could of course write the scene that worked for 1 time 15s alarm using inching, but i dont find out how to create a loop.

You’re already halfway there:  
1.Switch A creates inch close, and the inching time is 5 seconds;  
2.Create scene B: IF Tap to perform, THEN switch A on;  
3.Create scene C: IF switch A off, THEN Perform mannual sence B;

After completing the above steps, congratulations, you have created a working loop. If you want to stop it, just disable scene C.

---

<div class="post-metadata">

**Author:** ![Denis\_the\_malice](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@Denis\_the\_malice](https://forum.ewelink.cc/u/Denis_the_malice)\
**Post date:** [April 16, 2024, 12:56pm UTC](https://forum.ewelink.cc/t/smart-scene-for-a-blinking-light/29861/4 "2024-04-16T12:56:38Z")

</div>

Thanks for both feed-backs.  
In between, I purchased the ihost and am now trying to find out how to get the best from it. Unfortunately it seems that sequematic is an on-line system so even if i found it easy and convenient, i will not use it.

I will try to use node-red in combination with oznu-home bridge and ewelink smart home.

I will switch my questions the “Cube” topic

Thanks again

---

<div class="post-metadata">

**Author:** ![morgan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/morgan/32/3184_2.png) [@morgan](https://forum.ewelink.cc/u/morgan)\
**Post date:** [April 16, 2024, 1:05pm UTC](https://forum.ewelink.cc/t/smart-scene-for-a-blinking-light/29861/5 "2024-04-16T13:05:46Z")

</div>

> [@Denis\_the\_malice](#):
>
> Thanks for both feed-backs.  
> In between, I purchased the ihost and am now trying to find out how to get the best from it. Unfortunately it seems that sequematic is an on-line system so even if i found it easy and convenient, i will not use it.
> 
> I will try to use node-red in combination with oznu-home bridge and ewelink smart home.
> 
> I will switch my questions the “Cube” topic
> 
> Thanks again

Most IOT is cloud-based to some extent, just like ewelink. The only option for the Sonoff ecosystem is iHost(cube) or HA… if it is to be able to work without the Internet. But not every Sonoff device will work with iHost when it does not have access to the cloud. Mainly aim at zigbee devices, otherwise there may be a problem. 🙂

If I remember correctly and nothing has changed so far, only ZigBee devices can be fully LAN only using iHost. Wifi/rf433 is probably out of the question without access to the cloud…

@jam3 , am I remembering wrong?

---

<div class="post-metadata">

**Author:** ![Denis\_the\_malice](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@Denis\_the\_malice](https://forum.ewelink.cc/u/Denis_the_malice)\
**Post date:** [April 16, 2024, 2:09pm UTC](https://forum.ewelink.cc/t/smart-scene-for-a-blinking-light/29861/6 "2024-04-16T14:09:32Z")

</div>

Hello Morgan,  
yes you are right. I struggle to find my zigbee sensors that are on separated bridges…  
only the Zigbee that are directly connected to the ihost bridge are so far ok.  
I hope they will improve functionalities of the ihost to support the bridges…  
But I can so far see them on Oznu/homebridge (while connected to the internet).  
Next test is to disconnect my internet connection and see what happens if I work on the LAN only… will update, i cant do the test at the moment.

---

<div class="post-metadata">

**Author:** ![morgan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/morgan/32/3184_2.png) [@morgan](https://forum.ewelink.cc/u/morgan)\
**Post date:** [April 16, 2024, 2:25pm UTC](https://forum.ewelink.cc/t/smart-scene-for-a-blinking-light/29861/7 "2024-04-16T14:25:34Z")

</div>

> [@Denis\_the\_malice](#):
>
> Hello Morgan,  
> yes you are right. I struggle to find my zigbee sensors that are on separated bridges…  
> only the Zigbee that are directly connected to the ihost bridge are so far ok.  
> I hope they will improve functionalities of the ihost to support the bridges…  
> But I can so far see them on Oznu/homebridge (while connected to the internet).  
> Next test is to disconnect my internet connection and see what happens if I work on the LAN only… will update, i cant do the test at the moment.

Hi 🙂

Some Sonoff devices, both zigbee, rf433, and wifi, have this LAN mode and when there is no Internet, the ewelink application can talk to them. The problem, however, lies elsewhere, namely the scenes and all the automation, which these devices do not have without the cloud. The exception is iHost, which has local scenes, but for it to work fully, iHost must first have these devices connected, and as you can see, this varies. 🙂

I was once thinking about buying iHost, but I’m still holding off because there are still many things that need to be improved.

---

<div class="post-metadata">

**Author:** ![Denis\_the\_malice](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@Denis\_the\_malice](https://forum.ewelink.cc/u/Denis_the_malice)\
**Post date:** [April 16, 2024, 2:46pm UTC](https://forum.ewelink.cc/t/smart-scene-for-a-blinking-light/29861/8 "2024-04-16T14:46:44Z")

</div>

I’m kinda disappointed with ihost too… YouTube vdo’s are all great and show only advantages… nothing about conts…  
Unfortunately, i’m not good enough to hack the devices Firmware to build my own 100% local hosted (and secured) system, but I’m thinking about calling a couple of friends that have the competences and build my own startup 🤣

---

<div class="post-metadata">

**Author:** ![morgan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/morgan/32/3184_2.png) [@morgan](https://forum.ewelink.cc/u/morgan)\
**Post date:** [April 16, 2024, 3:53pm UTC](https://forum.ewelink.cc/t/smart-scene-for-a-blinking-light/29861/9 "2024-04-16T15:53:04Z")

</div>

> [@Denis\_the\_malice](#):
>
> I’m kinda disappointed with ihost too… YouTube vdo’s are all great and show only advantages… nothing about conts…  
> Unfortunately, i’m not good enough to hack the devices Firmware to build my own 100% local hosted (and secured) system, but I’m thinking about calling a couple of friends that have the competences and build my own startup 🤣

Some people rely on home assistant or node-red + iHost to be offline.  
In a very simplified way, you can also do something with Macrodroid + ewelink app. But imho, none of these options is what it should be, this environment straight from the manufacturer, but unfortunately it is not and everyone tries to cope as best they can.

iHost should be the central local point, but it really is only in advertising.  
It should support every Sonoff device and every functionality that is in the application/cloud.

But currently it’s a larva because it’s definitely not a butterfly… Yes, there is an API available and apparently you can use it to build your own application, although I haven’t tested how many limitations it has.

Recently they even deprived me of the ability to use the ewelink app on Android 7 🙂 which limited me even more.

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [April 16, 2024, 5:33pm UTC](https://forum.ewelink.cc/t/smart-scene-for-a-blinking-light/29861/10 "2024-04-16T17:33:38Z")

</div>

Give yourself a break and choose Home Assistant over iHost. I made that choice and haven’t regretted it for a moment.

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [April 17, 2024, 8:43am UTC](https://forum.ewelink.cc/t/smart-scene-for-a-blinking-light/29861/11 "2024-04-17T08:43:31Z")

</div>

> [@morgan](#):
>
> am I remembering wrong?

Wrong. Zigbee are not LAN devices. RF433 devices, when connected via RFBridge, can be controlled locally, but learning buttons in iHost is not supported. Adding or deleting remote RF controllers within the local network will not be notified. WiFi devices, that are capable of LAN control and with the option enabled, can be all locally controlled.

---

<div class="post-metadata">

**Author:** ![morgan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/morgan/32/3184_2.png) [@morgan](https://forum.ewelink.cc/u/morgan)\
**Post date:** [April 17, 2024, 5:30pm UTC](https://forum.ewelink.cc/t/smart-scene-for-a-blinking-light/29861/12 "2024-04-17T17:30:31Z")

</div>

> [@jam3](#):
>
> > [@morgan](#):
> >
> > am I remembering wrong?
> 
> Wrong. Zigbee are not LAN devices. RF433 devices, when connected via RFBridge, can be controlled locally, but learning buttons in iHost is not supported. Adding or deleting remote RF controllers within the local network will not be notified. WiFi devices, that are capable of LAN control and with the option enabled, can be all locally controlled.

But can zigbee be controlled(connected directly or via a bridge) locally by iHost without internet in scenes without problem?

Because if something cannot work without the Internet on iHost, it defeats the purpose of existence. 🙂

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [April 17, 2024, 6:00pm UTC](https://forum.ewelink.cc/t/smart-scene-for-a-blinking-light/29861/13 "2024-04-17T18:00:02Z")

</div>

> [@morgan](#):
>
> can zigbee be controlled(connected directly or via a bridge) locally by iHost

They can, but the term LAN denotes something different, don’t you agree?

---

<div class="post-metadata">

**Author:** ![morgan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/morgan/32/3184_2.png) [@morgan](https://forum.ewelink.cc/u/morgan)\
**Post date:** [April 17, 2024, 7:48pm UTC](https://forum.ewelink.cc/t/smart-scene-for-a-blinking-light/29861/14 "2024-04-17T19:48:59Z")

</div>

> [@jam3](#):
>
> They can, but the term LAN denotes something different, don’t you agree?

Depends…

In this context, it rather means local operation within our LAN. That is, without access to the cloud/internet. Because this is the goal in the case of iHost. To have a central point and local scenes instead of a cloud.

The Ewelink app can also theoretically control devices that have LAN mode turned on, but what if we don’t have scenes and all automation is lost when we don’t have connection to the cloud.

If it were the same in the case of iHost, it would contradict the logic of using it. 🙂

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [April 18, 2024, 3:04am UTC](https://forum.ewelink.cc/t/smart-scene-for-a-blinking-light/29861/15 "2024-04-18T03:04:41Z")

</div>

The technology defined by the Zigbee specification is of wireless personal area network (WPAN) type. It uses a **mesh network** architecture for communication by default. As for LAN, Ethernet and Wi-Fi are the two most common technologies in use for local area networks. Therefore Zigbee, BL or Thread networks are not exactly of the LAN type, because there are no WAN variants of these.

---

<div class="post-metadata">

**Author:** ![port4u](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/port4u/32/5117_2.png) [@port4u](https://forum.ewelink.cc/u/port4u)\
**Post date:** [April 18, 2024, 5:57am UTC](https://forum.ewelink.cc/t/smart-scene-for-a-blinking-light/29861/16 "2024-04-18T05:57:24Z")

</div>

Actually, Thread can utilize iPv6 to communicate with external networks. I think only a door look is available on the market for this feature so far.

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [April 18, 2024, 6:26am UTC](https://forum.ewelink.cc/t/smart-scene-for-a-blinking-light/29861/17 "2024-04-18T06:26:59Z")

</div>

Thread must utilize IPv6. It’s mandatory. Whatever it uses, it’s WPAN.

---

<div class="post-metadata">

**Author:** ![Denis\_the\_malice](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@Denis\_the\_malice](https://forum.ewelink.cc/u/Denis_the_malice)\
**Post date:** [April 18, 2024, 8:33am UTC](https://forum.ewelink.cc/t/smart-scene-for-a-blinking-light/29861/18 "2024-04-18T08:33:20Z")

</div>

Thanks for this advice, I started studying the idea.  
So far I am thinking using an old (Aspire E17) Laptop that became to slow using windows 10 and run Home Assistant on Linux (means I will move to a new territory i never explored before)  
From what i 've seen so far, since I have only Sonoff Wifi and Zigbee devices connected on 2 bridges, it should work locally.  
Any suggestion, where to find clear tutos, mistakes to absolutely avoid…?

Thanks again for the contributions

---

<div class="post-metadata">

**Author:** ![Denis\_the\_malice](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@Denis\_the\_malice](https://forum.ewelink.cc/u/Denis_the_malice)\
**Post date:** [November 20, 2024, 11:11am UTC](https://forum.ewelink.cc/t/smart-scene-for-a-blinking-light/29861/19 "2024-11-20T11:11:02Z")

</div>

Switched to HSSA on a green (first tried it a while on an old laptop emulating Linux). Its is wonderfull. So easy to write scripts and automations… after a while you even can write directly automations with yaml.  
my ihost still on sale. but no one is interested 😄

Other topic : Morgan, can you please help me on that post :

> [@New WiFi devices will not connect after new router installed](https://forum.ewelink.cc/t/new-wifi-devices-will-not-connect-after-new-router-installed/20624/3):
>
> Have the same issue since I replaced a cheap Pix-Link AP with a TP-Link EAP615-Wall (same SSID and password the previous AP). Most of the devices did reconnect without any issue, but my DW2-Wi-Fi-L refuses to reconnect, even deleting and trying to re-connect doesnt help. Then I tried to connect a Sonoff R2, get detected, but at the process registering to wifi, it fails. Im am 100% sure that it is related to the AP setting but cant find it. When I pair trough another AP or the old-one all is O…
