1) Give a description of the problem
The piston isn’t setting the mode back to the previous mode
2) What is the expected behavior?
The Variable should save the current mode (ie Heat) and then set it back in the else
3) What is happening/not happening?
The mode is not being set back to the previous state (ie: Heat)
4) Post a Green Snapshot of the piston
**5) Attach any logs (From ST IDE and by turning logging level to Full) **ae3cf42d-e2f7-41df-917e-456d89728610 5:33:38 PM: debug pollDevice() - update attributes
ae3cf42d-e2f7-41df-917e-456d89728610 5:33:30 PM: error groovy.lang.MissingMethodException: No signature of method: script_dth_4d431334_00e9_4fef_aaac_f5a950ecb03d_ver_0_2.switchMode() is applicable for argument types: (java.lang.String) values: [off]
Possible solutions: switchMode(), switchToMode(java.lang.Object), switchFanMode() @line 1727 (executePhysicalCommand)
b9ca17f7-4a24-4832-af6a-03709e8937eb 5:33:30 PM: trace Not sending alert, no preferences set
b9ca17f7-4a24-4832-af6a-03709e8937eb 5:33:30 PM: trace oncePerDayOk = true
b9ca17f7-4a24-4832-af6a-03709e8937eb 5:33:30 PM: debug HH autoExecute(), newMode: null
ff82fe49-1700-432d-b8fe-8176e390c659 5:33:30 PM: debug HH auto execute Resume AC, Door Is Closed Something Opens or Closes
ff82fe49-1700-432d-b8fe-8176e390c659 5:33:30 PM: trace daysOk = true
ff82fe49-1700-432d-b8fe-8176e390c659 5:33:30 PM: debug evt.name: closed
ae3cf42d-e2f7-41df-917e-456d89728610 5:33:20 PM: error groovy.lang.MissingMethodException: No signature of method: script_dth_4d431334_00e9_4fef_aaac_f5a950ecb03d_ver_0_2.switchMode() is applicable for argument types: (java.lang.String) values: [off]
Possible solutions: switchMode(), switchToMode(java.lang.Object), switchFanMode() @line 1727 (executePhysicalCommand)
ff82fe49-1700-432d-b8fe-8176e390c659 5:33:14 PM: trace daysOk = true
ff82fe49-1700-432d-b8fe-8176e390c659 5:33:14 PM: debug evt.name: open
ae3cf42d-e2f7-41df-917e-456d89728610 5:32:23 PM: error groovy.lang.MissingMethodException: No signature of method: script_dth_4d431334_00e9_4fef_aaac_f5a950ecb03d_ver_0_2.switchMode() is applicable for argument types: (java.lang.String) values: [auto]
Possible solutions: switchMode(), switchToMode(java.lang.Object), switchFanMode() @line 1727 (executePhysicalCommand)
I tried setting the variable to a constant at the beginning- and tried as dynamic (seems to just stay off as well)