Menu

Issues with conditions

Help
knaller
2011-01-10
2012-12-14
  • knaller

    knaller - 2011-01-10

    I try the following rule to switch on my heating pump, only if one of the heating valves is open. I also want to switch it off if the valves are all closed.

            <rule id="rule_heizung_pumpe_an">
                <condition type="or">
                    <condition type="object" id="hzg_wohnzimmer_status" value="on" trigger="true"/>
                    <condition type="object" id="hzg_esszimmer_status" value="on" trigger="true"/>
                    <condition type="object" id="hzg_eg_flur_status" value="on" trigger="true"/>
                    <condition type="object" id="hzg_hwr_status" value="on" trigger="true"/>
                    <condition type="object" id="hzg_kueche_status" value="on" trigger="true"/>
                    <condition type="object" id="hzg_schlafen_status" value="on" trigger="true"/>
                    <condition type="object" id="hzg_og_flur_status" value="on" trigger="true"/>
                    <condition type="object" id="hzg_bad_status" value="on" trigger="true"/>
                    <condition type="object" id="hzg_angelina_status" value="on" trigger="true"/>
                    <condition type="object" id="hzg_sophie_status" value="on" trigger="true"/>
                    <condition type="object" id="hzg_ug_buero_status" value="on" trigger="true"/>
                    <condition type="object" id="hzg_elw_kreis_1_status" value="on" trigger="true"/>
                    <condition type="object" id="hzg_elw_kreis_2_status" value="on" trigger="true"/>
                    <condition type="object" id="hzg_elw_kreis_3_status" value="on" trigger="true"/>
                </condition>
                <actionlist>
                    <action type="set-value" id="hzg_pumpe" value="on" />           
                </actionlist>
                <actionlist type="on-false">
                    <action type="set-value" id="hzg_pumpe" value="off" />          
                </actionlist>
    </rule>
    

    Unfortunately the rule above never switches off the pump, I assume the reason is that it doesn't trigger as I only trigger on "on" values.
    Do I have to create a separate "off" rule to make this happen?

    Thanks

    knaller

     
  • JensH

    JensH - 2011-01-10

    Hi,
    the configuration seems to be OK.
    I'd suggest you do a trial with 2 objects only and see, whether the "on-false" works or not…just  to narrow down the issue.
    BR, Jens

     
  • knaller

    knaller - 2011-01-14

    Hi All,

    now I changed to "if-true" and "if-false" and everything seems to be OK.
    Let's see what happens over the next couple of days.

    thanks

    Dietmar

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.