Change mode when it's raining?

Dude! Very Creative.

2 Likes

For anyone that is interested, the code change was pretty simple:

Go into the IDE and create a new app from “Switch Changes Mode”. Then change the preferences section to the following

preferences {
	//page(name: "getPref", title: "Choose Switch and Modes", install:true, uninstall: true) {
    	section("Choose a switch to use...") {
			input "controlSwitch", "capability.switch", title: "Switch", multiple: false, required: true
   		}
		section("Change to a new mode when...") {
			input "onMode", "mode", title: "Switch is on", required: false
			input "offMode", "mode", title: "Switch is off", required: false 
		}
	//}
}

This will allow you to set modes for it to run in as well as change the name.

I’m wondering about wiring the sensor of this to the lugs on the bottom of a smartthings flood sensor to see if the flood sensor has enough juice to power this extension.