dJOS:
I dont have an ST
You donât need the hub. All of their âDevice Handlersâ (drivers in HE) and SmartApps are in the public repot on github:
Itâs pretty easy to port most code and there is a thread here that discusses the most common things you will need to modify. For example here is their Simulated Thermostat:
/**
* Copyright 2017 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
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
* for the specific language governing permissions and limitations under the License.
*
*/
import groovy.transform.Field
// enummaps
@Field final Map MODE = [
OFF: "off",
HEAT: "heat",
AUTO: "auto",
This file has been truncated. show original
You can remove the tiles block and follow along here:
I thought I'd jot down a few of the driver porting changes I've encountered. Please add additional ones you find to this list.
Replace physicalgraph with hubitat
Replace variables beginning with data with device.data
Add to params calls that give a java error the following before headers:
requestContentType: "application/json",
Replace pause(int) with pauseExecution(long) (units are milliseconds)
include âasynchttp_v1â is not supported - comment this out and replace affected code with synâŚ
3 Likes