"Identical" scripts behave differently

Moderator: leecollings

Post Reply
dunderklumpen
Posts: 4
Joined: Friday 26 January 2018 20:18
Target OS: Windows
Domoticz version: beta
Location: Sweden
Contact:

"Identical" scripts behave differently

Post 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 558 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 558 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 558 times


I appreciate any help I can get! Thank you!
// dunderklumpen
knielen
Posts: 46
Joined: Sunday 10 September 2017 9:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: "Identical" scripts behave differently

Post 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.
dunderklumpen
Posts: 4
Joined: Friday 26 January 2018 20:18
Target OS: Windows
Domoticz version: beta
Location: Sweden
Contact:

Re: "Identical" scripts behave differently

Post 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!
// dunderklumpen
wouterlet
Posts: 109
Joined: Tuesday 02 October 2018 20:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: "Identical" scripts behave differently

Post 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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest