SONOFF POWR2 Notification Dryer/Washing machine

Moderator: leecollings

Post Reply
xploid
Posts: 11
Joined: Thursday 24 January 2019 16:59
Target OS: Windows
Domoticz version:
Contact:

SONOFF POWR2 Notification Dryer/Washing machine

Post 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..
User avatar
Denny64
Posts: 53
Joined: Friday 03 February 2017 11:34
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Italy
Contact:

Re: SONOFF POWR2 Notification Dryer/Washing machine

Post 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
xploid
Posts: 11
Joined: Thursday 24 January 2019 16:59
Target OS: Windows
Domoticz version:
Contact:

Re: SONOFF POWR2 Notification Dryer/Washing machine

Post by xploid »

Thank you for the reply. Testing right now :) ! Hope this wil work better !
xploid
Posts: 11
Joined: Thursday 24 January 2019 16:59
Target OS: Windows
Domoticz version:
Contact:

Re: SONOFF POWR2 Notification Dryer/Washing machine

Post by xploid »

Same result, every refresh it's send a new message. Doesn't matter if the status is already the same or not..
User avatar
Denny64
Posts: 53
Joined: Friday 03 February 2017 11:34
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Italy
Contact:

Re: SONOFF POWR2 Notification Dryer/Washing machine

Post 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.
xploid
Posts: 11
Joined: Thursday 24 January 2019 16:59
Target OS: Windows
Domoticz version:
Contact:

Re: SONOFF POWR2 Notification Dryer/Washing machine

Post 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.. :(
Gerwin
Posts: 84
Joined: Friday 12 August 2016 13:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SONOFF POWR2 Notification Dryer/Washing machine

Post 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
Attachments
blockly.jpg
blockly.jpg (59.78 KiB) Viewed 1936 times
besix
Posts: 99
Joined: Friday 25 January 2019 11:33
Target OS: Linux
Domoticz version: beta
Location: Poland
Contact:

Re: SONOFF POWR2 Notification Dryer/Washing machine

Post by besix »

Hello, my block scripts are similar to what Denny64 gave and work well. The notification is one
xploid
Posts: 11
Joined: Thursday 24 January 2019 16:59
Target OS: Windows
Domoticz version:
Contact:

Re: SONOFF POWR2 Notification Dryer/Washing machine

Post by xploid »

Thanks for al the reply's! Just changed my blocky script. I think it will work this time! Made a small mistake.. :)!
salopette
Posts: 187
Joined: Tuesday 07 March 2017 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Germany
Contact:

Re: SONOFF POWR2 Notification Dryer/Washing machine

Post by salopette »

Hello, how do I do it in the Blockly, that if the consumed under 2 is a Telegram message comes?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests