Notification Automations

I am attempting to switch over from using Apps like the smart lighting app and just use automations to get ready for the upcoming changes to the platform.

But I cannot see how to create something that will turn off all the garage lights ( plugs, blubs, switches) at once when a door closes or after 20 mins. I can do it for one bulb/switch not a group of items. Do I need to do this as a combo of scenes and an automation?

Also how do I create a notification to let me know if any window is open when I turn ac on. I do not want to make an automation for each window separately, that seems a little insane.

Any ideas?

So is the SmartLighting App going away? I was under the impression that it was going to be transitioned as well. Not looking forward to recreating all of that if thatā€™s true.

I would be cautious about any knee jerk reactions for Smartthings migration, they havenā€™t given any dates that I am aware of which In my personal opinion means ā€˜not very soonā€™

To try and answer your question I created something similar which checks to see if our door is open or not when i press the alarm set button, see below:

They did just this week. There is an official timeline in the following thread:

1 Like

I donā€™t know smart things planned for the smart lighting ā€¦ all I know is it like a week or so ago I contacted Tech Support about some issues I was having with automations not running and they told me to stop using smart lighting and that I should just be using the regular automation within the app. They made it sound like Smart Lighting is going away, BUT tech support are often the last to be informed of company changes. I was just trying to get a head start n trying to move away from things that MAY BE doing awayā€¦ I know it is really to soon to do anything without more direct information from Samsung and that will come it time. I just extra free time right now due to the VIRUIS so I thought i would take advantage of it. I manage 4 smartthings set ups for family.

that set up works for" ALL conditions met". I need an ā€œORā€ otherwise I have to set up an automation for each door and window. Would be nice to set up and automation that say if any of the selected door or windows are open and the ac turns on send a notificationā€¦ the bonus would be to have alexa announce it.( I can do the second have with virtual switches after I figure out how to get the 1st part done.)

There are also functions in smart lighting that canā€™t be repeated in automation, like the presence setting ā€œwhen I return homeā€.

FWIW, Iā€™m not changing any of my Smart Lighting rules to new-app Automations until Iā€™m sure they will continue to operate locally.

2 Likes

Ah many thanks :+1:

1 Like

Sounds like webCORE would be your solution, having only just started using it myself I donā€™t think Iā€™m the best person to teach as i am self taught through trial and error!

Hello @Shanapadila,

You can achieve these two cases using the Rules API, below you can find the two samples:

Sample 1 - Turn off devices 20 min after closing the garage door.
Workflow:

  1. IF the door is closed
  2. THEN set a 20-minute timer and turn off the listed devices
{
    "name":"Timer to turn devices off when garage door is closed",
    "actions": [
        {
            "if":{
                "equals": {
                    "left": {
                        "device": {
                            "devices": [
                                "door-deviceID"
                            ],
                            "component": "main",
                            "capability": "doorControl",
                            "attribute": "door"
                        }
                    },
                    "right": {
                        "string": "closed"
                    }
                },
                "then":[
                    {
                        "sleep": {
                            "duration": {
                                "value": {
                                    "integer": 20
                                },
                                "unit": "Minute"
                            }
                        }
                    },
                    {
                        "command": {
                            "devices": [
                                "switch-deviceID 1","switch-deviceID 2","switch-deviceID 3",...
                            ],
                            "commands": [
                                {
                                    "component": "main",
                                    "capability": "switch",
                                    "command": "off"
                                }
                            ]
                        }
                    }
                ]
            }
        }
    ]
}

Sample 2 - Check that everything is closed when the AC is turned ON
Workflow:

  1. IF the AC is turned on
  2. THEN, IF ANY of the contact sensors has a state of ā€œopenā€
  3. THEN turn on the virtual switch (now you can proceed with the steps for Alexa)
  4. Otherwise, turn Off the virtual switch
{
    "name":"Check if everything is closed when the AC is turned on",
    "actions": [
        {
            "if":{
                "equals": {
                    "left": {
                        "device": {
                            "devices": [
                                "AC device-ID"
                            ],
                            "component": "main",
                            "capability": "switch",
                            "attribute": "switch"
                        }
                    },
                    "right": {
                        "string": "on"
                    }
                },
                "then":[
                    {
                        "if": {
                            "or": [
                                {
                                    "equals": {
                                        "left": {
                                            "device": {
                                                "devices": [
                                                    "contact sensor device-ID 1","contact sensor device-ID 2",...
                                                ],
                                                "component": "main",
                                                "capability": "contactSensor",
                                                "attribute": "contact"
                                            }
                                        },
                                        "right": {
                                            "string": "open"
                                        }
                                    }
                                }
                            ],
                            "then":[
                                {
                                    "command": {
                                        "devices": [
                                            "virtual switch device-ID"
                                        ],
                                        "commands": [
                                            {
                                                "component": "main",
                                                "capability": "switch",
                                                "command": "on"
                                            }
                                        ]
                                    }
                                }
                            ],
                            "else":[
                                {
                                    "command": {
                                        "devices": [
                                            "virtual switch device-ID"
                                        ],
                                        "commands": [
                                            {
                                                "component": "main",
                                                "capability": "switch",
                                                "command": "off"
                                            }
                                        ]
                                    }
                                }
                            ]
                        }
                    }
                ]
            }
        }
    ]
}

The instructions to install the Rule can be found at this thread. As specified there, you need to replace the device IDs with the corresponding values.

For more information about capabilities, you can check this document

Let me know if you have any doubts.

1 Like