# Push notification on Power On state

**URL:** <https://forum.ewelink.cc/t/push-notification-on-power-on-state/247>\
**Category:** Ideas & Suggestion\
**Tags:** power-on, notifications\
**Created:** [February 26, 2022, 9:42pm UTC](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247 "2022-02-26T21:42:21Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![leblinux](https://avatars.discourse-cdn.com/v4/letter/l/838e76/32.png) [@leblinux](https://forum.ewelink.cc/u/leblinux)\
**Post date:** [February 26, 2022, 9:42pm UTC](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247/1 "2022-02-26T21:42:21Z")

</div>

Dears,

I live in a country where there are alot power outage.  
I need Sonoff device to send Push notification the moment the electrcity comes back to the Sonoff device example MiniR2 or Sonoff switch device.  
I have set Power Last State to On.  
But when electricity comes back to the Sonoff device it does not notify me on the phone.

---

<div class="post-metadata">

**Author:** ![yitie](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/yitie/32/3613_2.png) [@yitie](https://forum.ewelink.cc/u/yitie)\
**Post date:** [February 28, 2022, 1:52am UTC](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247/2 "2022-02-28T01:52:39Z")

</div>

That’s make sence, thanks for the idea.  
Let’s find out how to push notifications properly when power-on state is active.

---

<div class="post-metadata">

**Author:** ![leblinux](https://avatars.discourse-cdn.com/v4/letter/l/838e76/32.png) [@leblinux](https://forum.ewelink.cc/u/leblinux)\
**Post date:** [March 1, 2022, 8:12am UTC](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247/3 "2022-03-01T08:12:36Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![yitie](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/yitie/32/3613_2.png) [@yitie](https://forum.ewelink.cc/u/yitie)\
**Post date:** [March 1, 2022, 9:19am UTC](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247/4 "2022-03-01T09:19:22Z")

</div>

Evaluated the feasibility quickly, and there is no separate notifications for the power-on state, need supporting from firmware to achive this, still need dig deeper.

---

<div class="post-metadata">

**Author:** ![leblinux](https://avatars.discourse-cdn.com/v4/letter/l/838e76/32.png) [@leblinux](https://forum.ewelink.cc/u/leblinux)\
**Post date:** [March 1, 2022, 1:08pm UTC](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247/5 "2022-03-01T13:08:18Z")

</div>

Ohh I wish you can find a work around! I rely on it to know if there is electicity back home or not.  
I hope you find a solution

---

<div class="post-metadata">

**Author:** ![leblinux](https://avatars.discourse-cdn.com/v4/letter/l/838e76/32.png) [@leblinux](https://forum.ewelink.cc/u/leblinux)\
**Post date:** [March 1, 2022, 5:20pm UTC](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247/6 "2022-03-01T17:20:00Z")

</div>

Hi Yitie,

Maybe you can develop a feature that when the device becomes visible (not offline) on the ewelink app it will send a push notification.  
When the device is offline it becomes Grey, and when it comes online it becomes available. Maybe in that time when it becomes not grey the app will send push notificiation.

Or when the status of the device becomes (Green) as when I turn the lamp on it becomes geeen from offline state it will send push notifiation but this way I have to put the last power state to On.

Those are just my ideas.

Thanks

---

<div class="post-metadata">

**Author:** ![yitie](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/yitie/32/3613_2.png) [@yitie](https://forum.ewelink.cc/u/yitie)\
**Post date:** [March 2, 2022, 2:18am UTC](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247/7 "2022-03-02T02:18:59Z")

</div>

Let’s dig deeper, here are some consideration,

For now, notifications are triggered by devices (firmware) when the status changed, all these are on-line demand, while power is down actually the device are not able to send any data to trigger any action or notification,  
In this case, the judgement need to be done by APP, but it will rise another issue that may confuse users, it’s hard to tell power down between off-line, those are the same Grey form the view of APP.

---

<div class="post-metadata">

**Author:** ![leblinux](https://avatars.discourse-cdn.com/v4/letter/l/838e76/32.png) [@leblinux](https://forum.ewelink.cc/u/leblinux)\
**Post date:** [March 4, 2022, 10:05pm UTC](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247/8 "2022-03-04T22:05:17Z")

</div>

Hello Yitie,

I noticed that when the power is off the device ( example due to power outage) the status is “offline” displayed on the App. When there is a power on the Device and the lamp is Off it displays “Off” on the device.  
I dont know if you can trigger the App for push notification when it goes from “offline” to “off” or “on”.

Sceenshots attached:  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/1X/62b51716d28b07cbc23a322a084ff2c56fa42460.jpeg)  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/1X/95caa00952bd63ef141c7b7eaf739416bdcdd99a.jpeg)

---

<div class="post-metadata">

**Author:** ![yitie](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/yitie/32/3613_2.png) [@yitie](https://forum.ewelink.cc/u/yitie)\
**Post date:** [March 7, 2022, 3:50pm UTC](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247/9 "2022-03-07T15:50:55Z")

</div>

Same concern here,  
_In this case, the judgement need to be done by APP, but it will rise another issue that may confuse users, it’s hard to tell power down between off-line, those are the same Grey form the view of APP._

---

<div class="post-metadata">

**Author:** ![leblinux](https://avatars.discourse-cdn.com/v4/letter/l/838e76/32.png) [@leblinux](https://forum.ewelink.cc/u/leblinux)\
**Post date:** [June 18, 2022, 9:01am UTC](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247/10 "2022-06-18T09:01:27Z")

</div>

Hi Yitie,

Back again, is it possible if the device is hidden and becomes online to send a push notification? Could this be done?

I have power-on state always on for Sonoff Basic that will always turn on Water Heater when power AC line is restored due to alot of power cuts in my country.  
I am always failing to know when power is restored and the devices becomes available from hidden mode. I hope its doable with a push notification.

Thank you

---

<div class="post-metadata">

**Author:** ![yitie](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/yitie/32/3613_2.png) [@yitie](https://forum.ewelink.cc/u/yitie)\
**Post date:** [June 22, 2022, 3:53am UTC](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247/11 "2022-06-22T03:53:02Z")

</div>

Hi leblinux, we have launched a feature named “offline alert” for some supporting devices, it works like this “When the device has gone offline for five minutes, it will push notification to inform you”, check it here [What's new in eWeLink App V4.23 - eWeLink](https://ewelink.cc/whats-new-in-ewelink-app-v4-23/)

I think you should set the power-on state as OFF or Keep for energy saving for now, and we’ll going deeper with the ONLING notification.

---

<div class="post-metadata">

**Author:** ![leblinux](https://avatars.discourse-cdn.com/v4/letter/l/838e76/32.png) [@leblinux](https://forum.ewelink.cc/u/leblinux)\
**Post date:** [June 22, 2022, 6:02am UTC](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247/12 "2022-06-22T06:02:35Z")

</div>

thank you Yitie, I will try it and let you know.

I hope it supports my Sonoff Basic device, however I am not able to see the new update on Apple Appstore.

---

<div class="post-metadata">

**Author:** ![StephenJ](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/stephenj/32/3311_2.png) [@StephenJ](https://forum.ewelink.cc/u/StephenJ)\
**Post date:** [June 22, 2022, 6:35am UTC](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247/13 "2022-06-22T06:35:32Z")

</div>

The IOS version of eWeLink App V4.23 will be released at the end of June, so you can’t see the updated version now.

---

<div class="post-metadata">

**Author:** ![leblinux](https://avatars.discourse-cdn.com/v4/letter/l/838e76/32.png) [@leblinux](https://forum.ewelink.cc/u/leblinux)\
**Post date:** [June 22, 2022, 6:51am UTC](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247/14 "2022-06-22T06:51:17Z")

</div>

thank you Stephen!

---

<div class="post-metadata">

**Author:** ![yitie](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/yitie/32/3613_2.png) [@yitie](https://forum.ewelink.cc/u/yitie)\
**Post date:** [June 27, 2022, 1:45am UTC](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247/15 "2022-06-27T01:45:50Z")

</div>

iOS version of the APP V4.23 delay to mid of July, some new features will take more time to integrated.

---

<div class="post-metadata">

**Author:** ![leblinux](https://avatars.discourse-cdn.com/v4/letter/l/838e76/32.png) [@leblinux](https://forum.ewelink.cc/u/leblinux)\
**Post date:** [June 27, 2022, 2:45pm UTC](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247/16 "2022-06-27T14:45:02Z")

</div>

Hi Yitie,

I got an update on the Appstore today

---

<div class="post-metadata">

**Author:** ![leblinux](https://avatars.discourse-cdn.com/v4/letter/l/838e76/32.png) [@leblinux](https://forum.ewelink.cc/u/leblinux)\
**Post date:** [June 27, 2022, 2:59pm UTC](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247/17 "2022-06-27T14:59:45Z")

</div>

Hi Yitie,

I noticed that the Offline Alert option will alert you after 5 minutes, any reason why the 5 mins?

Is there an option to adjust it up to seconds?

Thanks

---

<div class="post-metadata">

**Author:** ![yitie](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/yitie/32/3613_2.png) [@yitie](https://forum.ewelink.cc/u/yitie)\
**Post date:** [June 28, 2022, 2:39am UTC](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247/18 "2022-06-28T02:39:58Z")

</div>

Yeah, We finished ahead of schedule.

The consideration of this 5 MIN setting is that the router often switches channels to ensure that it works in the best band, and when the router switches channels, the IoT device often drops out and comes back online, this switching time is usually tens to hundreds of seconds, if the notification is made as soon as it drops out, it will cause harassment, so to avoid unnecessary disturbance, we set offline 5 minutes for offline notification.

---

<div class="post-metadata">

**Author:** ![leblinux](https://avatars.discourse-cdn.com/v4/letter/l/838e76/32.png) [@leblinux](https://forum.ewelink.cc/u/leblinux)\
**Post date:** [June 28, 2022, 4:44am UTC](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247/19 "2022-06-28T04:44:49Z")

</div>

Thank you Yitie it worked!

Is it possible to add an Online Alert which all is what I needed 🙂

Thanks

---

<div class="post-metadata">

**Author:** ![yitie](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/yitie/32/3613_2.png) [@yitie](https://forum.ewelink.cc/u/yitie)\
**Post date:** [June 28, 2022, 5:44am UTC](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247/20 "2022-06-28T05:44:36Z")

</div>

Haven’t find a proper way yet, keep digging.

[Next page](https://forum.ewelink.cc/t/push-notification-on-power-on-state/247.md?page=2)
