"Identical" scripts behave differently
Posted: Thursday 10 October 2019 23:27
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.
I appreciate any help I can get! Thank you!
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.
I appreciate any help I can get! Thank you!