Skip to content

Instantly share code, notes, and snippets.

Avatar

Nayely Zarazua nayelyzarazua-bluetrail

View GitHub Profile
View SmartApp_IDE.groovy
/**
* roomsList
*
* Copyright 2020 Smart Things
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
View gist:2a20b2f371ba26416fc56065a31637f9
### Keybase proof
I hereby claim:
* I am nayelyzarazua-bluetrail on github.
* I am nayelyzbluetrail (https://keybase.io/nayelyzbluetrail) on keybase.
* I have a public key ASD8C01qYVtsgqO7q_4YyJ7tvDN5OWn8qW06h2ZXAoyFoAo
To claim this, I am signing this object:
@nayelyzarazua-bluetrail
nayelyzarazua-bluetrail / device_config.json
Created Jan 29, 2021
DashboardView_stateAction_2capabilities
View device_config.json
{
"dashboard": {
"states": [
{
"component": "main",
"capability": "temperatureMeasurement",
"version": 1,
"values": [],
"patch": []
}
View customThermostatMode_definition.json
{
"name": "customThermostatMode",
"attributes": {
"thermostatMode": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
@nayelyzarazua-bluetrail
nayelyzarazua-bluetrail / child_switch.groovy
Last active Feb 16, 2021
CompositeDevice_MultiSwitch
View child_switch.groovy
/*
* VIRTUAL SWITCH - CHILD DEVICE OF multipleSwitchDev
*/
metadata
{
definition( name: 'Virtual Switch', namespace: 'nayelyz', author: 'Nayely',deviceTypeId:'Switch',ocfDeviceType:'oic.d.switch', mnmn: 'SmartThingsCommunity', vid: '30ad6f88-acb3-3e11-8186-5b7f804b0c71' )
{
capability 'Switch'
capability 'Health Check'
View device_config.json
{
"dashboard": {
"states": [
{
"component": "main",
"capability": "temperatureMeasurement",
"version": 1,
"values": [],
"patch": []
}
View Z-wave Lock Custom DTH.groovy
/**
* Z-Wave Lock
*
* Copyright 2015 SmartThings
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@nayelyzarazua-bluetrail
nayelyzarazua-bluetrail / smartapp.js
Created Feb 25, 2021
SmartApp_DynamicInputsPersistance
View smartapp.js
'use strict';
const express = require('express');
const bodyParser = require('body-parser');
const SmartApp = require('@smartthings/smartapp');
require('dotenv').config();
const server = module.exports = express();
server.use(bodyParser.json());
View DynamicInputsDelete.js
'use strict';
const express = require('express');
const bodyParser = require('body-parser');
const SmartApp = require('@smartthings/smartapp');
require('dotenv').config();
const server = module.exports = express();
server.use(bodyParser.json());
View testwaterFlowHighestRate2.groovy
/**
* Test DTH for custom capabilities >>>> waterFlowHighestRate
*/
metadata {
definition (name: "testwaterFlowHighestRate2", vid:"4a5086e4-393f-39e1-9d28-1ca0df09729b", mnmn: "SmartThingsCommunity", author: "Nayely") {
capability "schoolwater29967.waterFlowHighestRate"
}
simulator {}