System Shuts down rule

I have this rule and it does not seem to work.

rule "CT100 Cleanup"
when
    System shuts down
then
    sendCommand(HVAC_Fan_Mode, 0)
end

I have System started rules that work…

Tom

Please set up a logging for that

then
    logInfo("Shutdown","Rule triggered")
    ...
end

to see, if the rule gets triggered at all.
It’s possible that there is no chance to do a sendCommand here, because of the asynchronous design, so it could be that the bindings are shut down before the rule will fire up at all.

The device is a ZWave thermostat I see nothing in the log

rule "CT100 Cleanup"
when
    System shuts down
then
    logInfo("Shutdown", "Shutting down, Turn Fan OFF (Auto)")
    sendCommand(HVAC_Fan_Mode, 0)
end

I tried another shutdown rule

Item has no external I/O

rule "Sprinklers System Stop"
when
    System shuts down
then 
    logInfo("Shutdown", "Shutting down, Init Sprinklers")
    //Zone_Time.postUpdate(30)
    Zone_Time.sendCommand(30)
end 

item:
Number Zone_Time “Next Watering time [%d]” (gRAIN)

Neither one runs or enters a log entry

tom

I guess that is an issue, definitely at least a log should work…

Hey,

DId you find any solution regarding how to use System shutdown ?

My current rule has the same syntax and works file.

I am not sure what the issue was.

Tom