Skip to content

Instantly share code, notes, and snippets.

View enishoca's full-sized avatar

Enis Hoca enishoca

View GitHub Profile
/**
* RM Bridge TV Remote
*
* Copyright 20168 Enis Hoca
*
* 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
*
[
{
"id": "8921e4a9.757288",
"type": "tab",
"label": "Smartthings X10 Heyu Connector",
"disabled": false,
"info": ""
},
{
"id": "7878dc79.76b694",
metadata {
definition(name: "Virtual Thermostat Device", namespace: "piratemedia/smartthings", author: "Eliot S.") {
capability "Actuator"
capability "Refresh"
capability "Sensor"
capability "Thermostat"
//capability "Thermostat Heating Setpoint"
capability "Thermostat Mode"
capability "Thermostat Operating State"
//capability "Thermostat Setpoint"
/**
* RM Bridge TV Remote
*
* Copyright 20168 Enis Hoca
*
* 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
*
@enishoca
enishoca / exampleOauth.php
Created August 26, 2017 04:19 — forked from aurman/exampleOauth.php
SmartThings .php example authenticating and controlling SmartThings API endpoints
<?php
//client id and client secret
$client = ' ';
$secret = ' ';
//hardcode the full url to redirect to this file
$url = "";
//STEP 1 - Get Access Code
@enishoca
enishoca / RestHandler.groovy
Created August 26, 2017 02:36
SmartThings API Endpoint Example
/**
* App Endpoint API Access Example
*
* Author: SmartThings
*/
// Automatically generated. Make future change here.
definition(
name: "Rest Handler",
@enishoca
enishoca / X10ToSTsignals.js
Last active August 26, 2017 01:33
Mochad listener for sending X-10 commands to SmartThings
#!/usr/bin/env node
/* X10toSTsignals.js --
*
* Copyright (C) 2017 Enis Hoca
*
* This software may be modified and distributed under the terms
* of the MIT license.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@enishoca
enishoca / enpointExample.groovy
Created August 19, 2017 17:02 — forked from aurman/enpointExample.groovy
SmartThings API Endpoint Example
/**
* App Endpoint API Access Example
*
* Author: SmartThings
*/
preferences {
section("Allow Endpoint to Control These Things...") {
input "switches", "capability.switch", title: "Which Switches?", multiple: true
input "locks", "capability.lock", title: "Which Locks?", multiple: true
@enishoca
enishoca / syncLink
Created February 22, 2015 23:55
This script is run on a rooted wink hub and syncs the state of GE-Link devices to the original state. After a power failure the GE-Link bulbs turn on even if they were off previously, this is probably for supporting a local light switch. Luckily the bulb itself remembers the last state and can be set to it again.