Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View erickvneri's full-sized avatar
🎯
Roaming

erickv erickvneri

🎯
Roaming
  • BlueTrail Software
View GitHub Profile

Keybase proof

I hereby claim:

  • I am erickvneri on github.
  • I am erickv (https://keybase.io/erickv) on keybase.
  • I have a public key ASCa1EGRRgA96HDH-IWRGHL5k1kah5EK0zn_DmGzbvQWXAo

To claim this, I am signing this object:

@erickvneri
erickvneri / smartapp.js
Last active April 1, 2021 18:10
SmartApp Instance to create a virtual device
'use strict';
/*
* This demo SmartApp can be registered
* as a SmartApp Automation or SmartApp
* Connector.
*
* Either way, a virtual switch will be
* created and will respond to device
* commands.
* */
@erickvneri
erickvneri / notificationSmartApp.js
Last active February 5, 2021 23:08
"Hello world!" Notification SmartApp
'use strict';
const { SmartApp } = require('@smartthings/smartapp');
const notificationSmartApp = new SmartApp()
.appId('demo')
.disableCustomDisplayName(true)
.permissions(['r:locations:*'])
.page('mainPage', (ctx, page, configData) => {
page.section('Message:', section => {
#!/usr/bin/python3
import sys
import csv
import logging
import datetime
import argparse
import praw
from prawcore.exceptions import OAuthException
from praw.exceptions import (
'use strict';
const { SmartApp } = require('@smartthings/smartapp');
const status = {
CONNECTING: 'CONNECTING',
OK: 'OK'
}
const msg = {
CONNECTING: 'You will receive a notification as soon as your SmartApp is ready to be configured.',
@erickvneri
erickvneri / device_profile.json
Last active August 13, 2021 21:39
MultiComponent Device / 5 Components / 3 Capabilities each
{
"name": "esp32-mc-229942",
"components": [
{
"label": "main",
"id": "main",
"capabilities": [
{
"id": "healthCheck",
"version": 1