Cobra's Marvellous Message Central is confusing me

Hey gang.

Can somebody who uses Message Central give me a clue or two?

I'm trying to do the relatively straightforward (in principle) power monitoring to work out when the washing machine has finished. It's triggering early, but for the life of me I can't work out why.

First up, then... can I just check that it does what I think it does?

So... in the image above... I THINK I've said:

'If the power goes above 400W, then arm, and then trigger the notification , if the power goes BELOW 10W, and STAYS below 10W for more than 10 mins'.

If so... then I'm lost... I've got a log file saying it spoke at 11:02:59... but at 11:02:39, for example, it's reporting power at 17.8W.

Or have I completely missed the point?

Best Regards,

Jules

Jules
This looks correct to be.
Can you please turn on the logging in the app and screenshot it for me please?

What is happening when the power goes below 10 watts for ten minutes?
Is the message not being sent?

Or is it being sent before going above the threshold of 400 watts?

Andy

Hi Cobra.

If I'm reading the log right... it's firing when the power goes low... but very much sooner than 10 mins after it went below the threshold.

See below for an extract:

app:2382019-01-19 11:02:59.042 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Power - PushOver Message - Sending Message: the washing machine has finished it's cycle.
app:2382019-01-19 11:02:59.041 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - 2nd Stage Compile (Post weather processing) = the washing machine has finished it's cycle.
app:2382019-01-19 11:02:59.040 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Running convertWeatherMessage... Converting weather message to English (If weather requested)...
app:2382019-01-19 11:02:59.038 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - 1st Stage Compile (Pre weather processing) = the washing machine has finished it's cycle.
app:2382019-01-19 11:02:59.037 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - msgComp = the washing machine has finished it's cycle.
app:2382019-01-19 11:02:59.036 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - compileMsg - msg = The Washing Machine has finished it's Cycle.
app:2382019-01-19 11:02:59.035 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Power - speakNow...
app:2382019-01-19 11:02:59.030 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkallow complete - state.allAllow = true
app:2382019-01-19 11:02:59.029 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - CheckAllow - Continue - App NOT paused
app:2382019-01-19 11:02:59.028 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Checking for any restrictions...
app:2382019-01-19 11:02:59.027 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkApplianceAgain1 - Checking again now... Power is: 4.515
app:2382019-01-19 11:02:44.040 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Checking again after delay: 10 minutes... Power is: 4.515
app:2382019-01-19 11:02:44.039 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - powerApplianceNow - Power is: 4.515
app:2382019-01-19 11:02:44.039 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Power reported 4.515 watts
app:2382019-01-19 11:02:44.036 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkallow complete - state.allAllow = true
app:2382019-01-19 11:02:44.034 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - CheckAllow - Continue - App NOT paused
app:2382019-01-19 11:02:44.033 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Checking for any restrictions...
app:2382019-01-19 11:02:43.026 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkApplianceAgain1 - Power is: 17.833 so cannot run yet...
app:2382019-01-19 11:02:39.986 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - powerApplianceNow - Power is: 17.833
app:2382019-01-19 11:02:39.985 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Power reported 17.833 watts
app:2382019-01-19 11:02:39.976 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkallow complete - state.allAllow = true
app:2382019-01-19 11:02:39.972 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - CheckAllow - Continue - App NOT paused
app:2382019-01-19 11:02:39.970 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Checking for any restrictions...
app:2382019-01-19 11:02:38.990 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - powerApplianceNow - Power is: 30.033
app:2382019-01-19 11:02:38.988 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Power reported 30.033 watts
app:2382019-01-19 11:02:38.984 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkallow complete - state.allAllow = true
app:2382019-01-19 11:02:38.980 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - CheckAllow - Continue - App NOT paused
app:2382019-01-19 11:02:38.979 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Checking for any restrictions...
app:2382019-01-19 11:02:27.029 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkApplianceAgain1 - Power is: 16.245 so cannot run yet...
app:2382019-01-19 11:02:15.983 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - powerApplianceNow - Power is: 16.245
app:2382019-01-19 11:02:15.981 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Power reported 16.245 watts
app:2382019-01-19 11:02:15.977 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkallow complete - state.allAllow = true
app:2382019-01-19 11:02:15.973 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - CheckAllow - Continue - App NOT paused
app:2382019-01-19 11:02:15.971 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Checking for any restrictions...
app:2382019-01-19 11:02:15.007 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - powerApplianceNow - Power is: 95.997
app:2382019-01-19 11:02:15.005 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Power reported 95.997 watts
app:2382019-01-19 11:02:14.997 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkallow complete - state.allAllow = true
app:2382019-01-19 11:02:14.993 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - CheckAllow - Continue - App NOT paused
app:2382019-01-19 11:02:14.992 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Checking for any restrictions...
app:2382019-01-19 11:02:11.032 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkApplianceAgain1 - Power is: 213.132 so cannot run yet...
app:2382019-01-19 11:01:55.030 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkApplianceAgain1 - Power is: 213.132 so cannot run yet...
app:2382019-01-19 11:01:39.032 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkApplianceAgain1 - Power is: 213.132 so cannot run yet...
app:2382019-01-19 11:01:23.030 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkApplianceAgain1 - Power is: 213.132 so cannot run yet...
app:2382019-01-19 11:01:15.033 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - powerApplianceNow - Power is: 213.132
app:2382019-01-19 11:01:15.032 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Power reported 213.132 watts
app:2382019-01-19 11:01:15.027 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkallow complete - state.allAllow = true
app:2382019-01-19 11:01:15.024 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - CheckAllow - Continue - App NOT paused
app:2382019-01-19 11:01:15.022 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Checking for any restrictions...
app:2382019-01-19 11:01:06.120 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkApplianceAgain1 - Power is: 179.16 so cannot run yet...
app:2382019-01-19 11:00:50.077 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkApplianceAgain1 - Power is: 179.16 so cannot run yet...
app:2382019-01-19 11:00:35.021 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkApplianceAgain1 - Power is: 179.16 so cannot run yet...
app:2382019-01-19 11:00:34.990 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - powerApplianceNow - Power is: 179.16
app:2382019-01-19 11:00:34.988 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Power reported 179.16 watts
app:2382019-01-19 11:00:34.978 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkallow complete - state.allAllow = true
app:2382019-01-19 11:00:34.974 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - CheckAllow - Continue - App NOT paused
app:2382019-01-19 11:00:34.972 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Checking for any restrictions...
app:2382019-01-19 11:00:34.057 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkApplianceAgain1 - Power is: 162.917 so cannot run yet...
app:2382019-01-19 11:00:18.083 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkApplianceAgain1 - Power is: 162.917 so cannot run yet...
app:2382019-01-19 11:00:03.042 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - powerApplianceNow - Power is: 162.917
app:2382019-01-19 11:00:03.041 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Power reported 162.917 watts
app:2382019-01-19 11:00:03.037 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkallow complete - state.allAllow = true
app:2382019-01-19 11:00:03.035 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - CheckAllow - Continue - App NOT paused
app:2382019-01-19 11:00:03.034 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Checking for any restrictions...
app:2382019-01-19 11:00:02.028 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkApplianceAgain1 - Power is: 157.025 so cannot run yet...
app:2382019-01-19 10:59:52.989 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - powerApplianceNow - Power is: 157.025
app:2382019-01-19 10:59:52.988 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Power reported 157.025 watts
app:2382019-01-19 10:59:52.979 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkallow complete - state.allAllow = true
app:2382019-01-19 10:59:52.976 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - CheckAllow - Continue - App NOT paused
app:2382019-01-19 10:59:52.975 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Checking for any restrictions...
app:2382019-01-19 10:59:51.991 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - powerApplianceNow - Power is: 342.074
app:2382019-01-19 10:59:51.990 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Power reported 342.074 watts
app:2382019-01-19 10:59:51.982 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - checkallow complete - state.allAllow = true
app:2382019-01-19 10:59:51.976 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - CheckAllow - Continue - App NOT paused
app:2382019-01-19 10:59:51.975 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Checking for any restrictions...
app:2382019-01-19 10:59:50.985 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - powerApplianceNow - Power is: 431.65
app:2382019-01-19 10:59:50.983 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Activate threshold reached or exceeded setting state.activate to: true
app:2382019-01-19 10:59:50.982 am debugNOTIFY_ON_WASHING_MACHINE_FINISHING (App Version: 13.8.0) - Power reported 431.65 watts

Cheers for your help, by the way, and for the app in the first place :wink:

-- Jules

I think I may have left something in that I shouldn't :slight_smile:

Would you like to try something for me?

Have a look at line 1662 in the 'child' code

It says:

runIn(mydelay, checkApplianceAgain1, [overwrite: false])

Try changing it to:

runIn(mydelay, checkApplianceAgain1)

(remove the comma "," and "[overwrite: false]"

I think the overwrite is causing the problem as it's triggering off the previous event

Please let me know how you get on.

If this is the fix then I'll update github and credit you for finding the problem :slight_smile:

Andy

Righto.

I'll do exactly as you suggest. Think another load is about to go in upstairs as we speak :wink:

Changed the device... and I've edited and saved both the washer and dryer configuration just on the offchance. I'll let you know how I get on.

Thanks again for your efforts :wink:

-- Jules

1 Like

That’s looking much more promising, Cobra :wink:

Thank you again.

β€” Jules

1 Like