Pushnotification when dishwasher/washing machine is ready?

rlschulz
Posts: 16
Joined: Sunday 25 October 2015 17:33
Target OS: Windows
Domoticz version: 3.5877
Contact:

Re: Pushnotification when dishwasher/washing machine is ready?

Post by rlschulz » Monday 30 October 2017 17:40

There was some talk about adding the length of time the washing machine ran. I was wondering if anyone figured out a good way to do that.

lucky58
Posts: 1
Joined: Saturday 09 January 2016 17:11
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Pushnotification when dishwasher/washing machine is ready?

Post by lucky58 » Wednesday 13 December 2017 18:45

Hello,

the script does not work fully for my dryer machine. It stays in :

"Drying Washing machine is not using a lot of energy", with the right low Watt value but with the counter counting down to zero and then continiously - each minute - indicating "0 ".

The script does not go to the final IF - machine is done.

Anybody any clue what is going wrong?

User avatar
krazny
Posts: 56
Joined: Sunday 02 November 2014 0:31
Target OS: Raspberry Pi
Domoticz version: beta
Location: Netherlands
Contact:

Re: Pushnotification when dishwasher/washing machine is ready?

Post by krazny » Tuesday 17 April 2018 21:56

On a different note;

Maybe I'm an complete idiot...(probably am) but; Which type of "uservariable" sensor do I add?
- Temperature?
- Text?
- Energy?

:oops:
Raspberry Pi, Aeon Z-Stick, Fibaro Motion Sensor, 4x Fibaro Wall Plug, 2x Fibaro Dimmer, Netatmo Weatherstation

User avatar
jvdz
Posts: 1338
Joined: Tuesday 30 December 2014 20:25
Target OS: Raspberry Pi
Domoticz version: Stable
Location: Westland/Netherlands
Contact:

Re: Pushnotification when dishwasher/washing machine is ready?

Post by jvdz » Friday 20 April 2018 23:38

krazny wrote:
Tuesday 17 April 2018 21:56
On a different note;

Maybe I'm an complete idiot...(probably am) but; Which type of "uservariable" sensor do I add?
- Temperature?
- Text?
- Energy?

:oops:
A uservariable is not a device but a ....uservariable, so that is where it needs to be created. ;-)

Jos

User avatar
krazny
Posts: 56
Joined: Sunday 02 November 2014 0:31
Target OS: Raspberry Pi
Domoticz version: beta
Location: Netherlands
Contact:

Re: Pushnotification when dishwasher/washing machine is ready?

Post by krazny » Saturday 21 April 2018 12:06

DOH!
Never used the user variables before. :roll:
Just saw them in the SETUP - More Options menu. :lol:

I'll just quietly leave now...
Raspberry Pi, Aeon Z-Stick, Fibaro Motion Sensor, 4x Fibaro Wall Plug, 2x Fibaro Dimmer, Netatmo Weatherstation

vulbas
Posts: 46
Joined: Tuesday 20 February 2018 18:59
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Pushnotification when dishwasher/washing machine is ready?

Post by vulbas » Saturday 02 June 2018 22:51

hello, i use this script, it work perfectly

Code: Select all

--Change the values below to reflect to your own setup
Script = 'script_time_wasmachine'
Debug = 'Y'
-- Functions
function Debug_msg (msg)
if (Debug == 'Y') then print('>> ' .. Script .. ': '.. msg) end
end

-- Variable
local washer_status_uservar = 'washingmachine_status'
local energy_consumption = 'Wasmachine_Usage' --Name of Z-Wave plug that contains actual consumption of washingmachine (in Watts)
local washer_counter_uservar = 'washingmachine_counter' --Name of the uservariable that will contain the counter that is needed
local idle_minutes = 5 --The amount of minutes the consumption has to stay below the 'consumption_lower' value
local consumption_upper = 20 --If usage is higher than this value (Watts), the washingmachine has started
local consumption_lower = 4.3 --If usage is lower than this value (Watts), the washingmachine is idle for a moment/done washing
-- sWatt, sTotalkWh = otherdevices_svalues['Clothes Washer Power Usage']:match("([^;]+);([^;]+)")
-- washer_usage = tonumber(sWatt)
washer_usage = tonumber(otherdevices_svalues[energy_consumption])

commandArray = {}

--Virtual switch is off, but consumption is higher than configured level, so washing has started
if (washer_usage > consumption_upper) and uservariables[washer_status_uservar] == 0 then
commandArray['Variable:' .. washer_status_uservar]='1'
Debug_msg('Current power usage (' ..washer_usage.. 'W) is above upper boundary (' ..consumption_upper.. 'W), so washing has started!')
commandArray['Variable:' .. washer_counter_uservar]=tostring(idle_minutes)
end

--Washing machine is not using a lot of energy, check the counter
if (washer_usage < consumption_lower) and uservariables[washer_status_uservar] == 1 then
commandArray['Variable:' .. washer_counter_uservar]=tostring(math.max(tonumber(uservariables[washer_counter_uservar]) - 1, 0))
Debug_msg('Current power usage (' ..washer_usage.. 'W) is below lower boundary (' ..consumption_lower.. 'W), washer is idle or almost ready')
Debug_msg('Subtracting counter, old value: ' ..uservariables[washer_counter_uservar].. ' minutes')
elseif ((uservariables[washer_counter_uservar] ~= idle_minutes) and uservariables[washer_status_uservar] == 1) then
commandArray['Variable:' .. washer_counter_uservar]=tostring(idle_minutes)
print('Resetting Washing Machine Timer')
end

--Washingmachine is done
if ((uservariables[washer_status_uservar] == 1) and uservariables[washer_counter_uservar] == 0) then
Debug_msg('Washingmachine is DONE')
Debug_msg('Current power usage washingmachine ' ..washer_usage.. 'W')
Debug_msg('Washingmachine is done, please go empty it!')
commandArray['SendNotification']='Cycle Ended: Washing Machine#The load in the washing machine has finsihed, please move it to the dryer!#0'
commandArray['Variable:' .. washer_status_uservar]='0'
end

return commandArray
Share this:
I would like to receive notifications on google home, is this possible?
I would also like to have an alert button. is it possible ?
Thank you for your help.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests