Page 1 of 1

"Identical" scripts behave differently

Posted: Thursday 10 October 2019 23:27
by dunderklumpen
Hi!

So, I have 3 scripts that tells me when dishwasher, washing machine and tumble dryer is finished. 2 out of 3 works perfect, but I can't for the life of me get the third one working. "Tvättmaskin" and "Torktumlare" are virtual switches used for notification and visual verification if the machines are on or not.

Attached are examples of 2 of the scripts. Tvättmaskin (washing machine) works fine. Torktumlare (tumble dryer) keeps "looping" on me. When the watt usage drops below 2.1 W, the virtual switch "Torktumlare" starts again, although the script states that it shouldn't unless watt usage is > 5W. So it goes on, and then immediately off again which results in a ridiculous amount of notifications. I have disabled the script for now.

Attachents are the blockly scripts and the datatable for watt usage.
This one works.
This one works.
blockly_tvättmaskin.png (57.63 KiB) Viewed 562 times

This one doesn't although it is identical to the other one.
This one doesn't although it is identical to the other one.
blockly_torktumlare.png (55.34 KiB) Viewed 562 times

Data table for the switch that the dryer is attached to and log status for the script.
Data table for the switch that the dryer is attached to and log status for the script.
datatable_logstatus_torktumlare.png (172.25 KiB) Viewed 562 times


I appreciate any help I can get! Thank you!

Re: "Identical" scripts behave differently

Posted: Monday 21 October 2019 14:41
by knielen
This happens mostly when you also switch on the same switch in another script, or in settings of the switch itself. Please double check your other scripts and the properties of the tumble dryer switch.

Re: "Identical" scripts behave differently

Posted: Sunday 03 November 2019 0:11
by dunderklumpen
Thank you, knielen, but as far as I can see, there is nothing in other scripts or the switch itself that differs from for example the washing machine. Hmm, don't know how I will go about this!

Re: "Identical" scripts behave differently

Posted: Friday 20 December 2019 17:37
by wouterlet
What about the values of the KWh? Maybe these make the triggers go strange? You could have a look at the KWh log?