Page 1 of 1
SONOFF POWR2 Notification Dryer/Washing machine
Posted: Thursday 18 April 2019 8:15
by xploid
Hi,
Someone knows the right blocky script that only send a notification when the power usage drops down below 5 watt? Most blocky's or other notifications keep showing up on every refresh...
I use virtual dummy switches for on/off and then send a notification. When it's off and the power rating is refreshed it goes off again and again a notification..
Re: SONOFF POWR2 Notification Dryer/Washing machine
Posted: Thursday 18 April 2019 18:46
by Denny64
I think you can do it with an user variable.
Make an user variable and call it (i.e.) Five and than blokly:
IF
Powermeter < 5 AND User Five = 0
DO
Set User Five = 1
Send notification with subject......
ELSE IF
Powermeter > 5 AND User Five = 1
DO
Set User Five = 0
Re: SONOFF POWR2 Notification Dryer/Washing machine
Posted: Wednesday 24 April 2019 13:22
by xploid
Thank you for the reply. Testing right now
! Hope this wil work better !
Re: SONOFF POWR2 Notification Dryer/Washing machine
Posted: Wednesday 24 April 2019 13:27
by xploid
Same result, every refresh it's send a new message. Doesn't matter if the status is already the same or not..
Re: SONOFF POWR2 Notification Dryer/Washing machine
Posted: Thursday 25 April 2019 10:05
by Denny64
It's really very strange, I use this blockly for my dryer, dishwaher, washing machine and for the photovoltaic system without any problems. Try raising the 5 watt threshold in the else if statement.
Re: SONOFF POWR2 Notification Dryer/Washing machine
Posted: Sunday 28 April 2019 18:51
by xploid
Ok i will try, problem is that it will change it's status every time and resends the same message on every refresh..
Re: SONOFF POWR2 Notification Dryer/Washing machine
Posted: Sunday 28 April 2019 18:59
by Gerwin
This is my block
and if the status wasmachine( dummy) go off i get a notification the wasmachine is ready
I get one notification
works great for me
Gerwin
Re: SONOFF POWR2 Notification Dryer/Washing machine
Posted: Sunday 28 April 2019 20:04
by besix
Hello, my block scripts are similar to what Denny64 gave and work well. The notification is one
Re: SONOFF POWR2 Notification Dryer/Washing machine
Posted: Sunday 28 April 2019 20:33
by xploid
Thanks for al the reply's! Just changed my blocky script. I think it will work this time! Made a small mistake..
!
Re: SONOFF POWR2 Notification Dryer/Washing machine
Posted: Monday 20 May 2019 17:30
by salopette
Hello, how do I do it in the Blockly, that if the consumed under 2 is a Telegram message comes?