make my washing maschine tell me, that washing is finished

Free domotica! Forums How can I …? Synology NAS make my washing maschine tell me, that washing is finished

This topic contains 2 replies, has 2 voices, and was last updated by  djandib 1 year, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3016

    djandib
    Participant

    I’ve been working since a few days at this scene:

    GOAL:
    Send a message, if washing is done and the wet clothes can be taken out of the machine

    HARDWARE:
    – additional FIBARO WALL switch

    HOWTO (This Version does NOT finally work!):
    // Machine is turned on and is started
    IF COMPARATOR=”Machine” Power > “10” AND Variable “Var_Machine” =”0″
    DO Set Variable “Var_Machine” to “1”

    // Machine has finished, but is not turned off
    IF Variable “Var_Maschine”=”1″
    DO IF COMPARATOR=”Machine” Power > “0” AND COMPARATOR=”Machine” Power < “10”
    DO Send Pushover “Machine Finished; Take out clothes”
    Sleep 5 Minutes //Pupose: Send Message again in 5 Minutes
    ELSE IF COMPARATOR=”Machine” Power = “0” // Machine has finished and is turned off
    DO Set Variable “Var_Machine” to “0”
    EXIT
    EXIT

    PROBLEM:
    I made some experiments with sending me pushover and recognized, that in the end the Variable “Var_Machine” is to “0”.
    But in the next run (one minute later) in the beginning of Scene the Variable “Var_Machine” is “”…
    So: The Variable “VAR_Machine” seems not to be saved…

    Any idea?

    #3017

    K.Rens
    Keymaster

    Do you have the database service installed and properly configured?
    The variable status might be saved in the database.

    Can you take a screenshot of your scene, just to see it exactly, as you may have implemented it different then what we expected.

    Kind regards,
    K.Rens

    #3157

    djandib
    Participant

    Final Solution: (final tested)

    HOWTO:
    PHP-Block: $waschmaschine = file_get_contents(‘waschmaschine’, FILE_USE_INCLUDE_PATH);
    // Machine is turned on and is started
    IF COMPARATOR=”Machine” Power < “50” AND Variable “Waschmaschine” <> ”1″
    DO PHP-Block:
    $file = ‘waschmaschine’;
    $current = file_get_contents($waschmaschine);
    $current = “1”;
    file_put_contents($file, $current);
    PHP-Block
    $waschmaschine = file_get_contents(‘waschmaschine’, FILE_USE_INCLUDE_PATH);
    // Machine has finished, but is not turned off
    IF Variable “waschmaschine”=”1″
    DO IF COMPARATOR=”Machine” Power > “2” AND COMPARATOR=”Machine” Power < “3”
    DO Send Pushover “Machine Finished; Take out clothes”
    Sleep 5 Minutes //Pupose: Send Message again in 5 Minutes
    IF COMPARATOR=”Machine” Power < “1” // Machine has finished and is turned off
    DO PHP-Block:
    $file = ‘waschmaschine’;
    $current = file_get_contents($waschmaschine);
    $current = “0”;
    file_put_contents($file, $current);
    EXIT
    EXIT
    ***
    Thanx to Koen for support

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.