Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Erick Israel Vazquez Neri erickvneri

🏠
Working from home
  • BlueTrail Software
View GitHub Profile
@erickvneri
erickvneri / device_profile.json
Last active Aug 13, 2021
MultiComponent Device / 5 Components / 3 Capabilities each
View device_profile.json
{
"name": "esp32-mc-229942",
"components": [
{
"label": "main",
"id": "main",
"capabilities": [
{
"id": "healthCheck",
"version": 1
View timeoutNotiSmartApp.js
'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.',
View scrapper.py
#!/usr/bin/python3
import sys
import csv
import logging
import datetime
import argparse
import praw
from prawcore.exceptions import OAuthException
from praw.exceptions import (
@erickvneri
erickvneri / notificationSmartApp.js
Last active Feb 5, 2021
"Hello world!" Notification SmartApp
View notificationSmartApp.js
'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 => {
@erickvneri
erickvneri / smartapp.js
Last active Apr 1, 2021
SmartApp Instance to create a virtual device
View smartapp.js
'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.
* */
View keybase.md

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: