sendPush() not working

Hi @mikescopa1992,

Instead of sending a push notification, you could send a command to a virtual device, for example, a Dimmer using the SwitchLevel capability and, in the mobile app, create an automation to send the notification based on the value change. You can use one device for many events and later, the migration of your SmartApp from groovy will be smoother.
For example:

//preferences configuration
preferences {
	section("Title") {
		input "dimmerswitch", "capability.switchLevel"
	}
}
//send the command
dimmerswitch.setLevel(10);

Note: I recommend you to start using the non groovy-based tools such as SmartApp SDK, Rules API because of the upcoming changes.

1 Like