Fix http -> https where applyable. (#10573)
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
This commit is contained in:
committed by
GitHub
parent
8ba34392aa
commit
10f88c0934
@@ -4,12 +4,12 @@ This binding integrates the Samsung Smartthings Hub into openHAB.
|
||||
|
||||
## Supported things
|
||||
|
||||
This binding supports most of the Smartthings devices that are defined in the [Smartthings Capabilities list](http://docs.smartthings.com/en/latest/capabilities-reference.html). If you find a device that doesn't work [follow these instructions](doc/Troubleshooting.md) to collect the required data so it can be added in a future release.
|
||||
This binding supports most of the Smartthings devices that are defined in the [Smartthings Capabilities list](https://docs.smartthings.com/en/latest/capabilities-reference.html). If you find a device that doesn't work [follow these instructions](doc/Troubleshooting.md) to collect the required data so it can be added in a future release.
|
||||
|
||||
## Discovery
|
||||
|
||||
Discovery allows openHAB to examine a binding and automatically find the Things available on that binding.
|
||||
Discovery is supported by the Smartthings binding and is run automatically on startup.
|
||||
Discovery allows openHAB to examine a binding and automatically find the Things available on that binding.
|
||||
Discovery is supported by the Smartthings binding and is run automatically on startup.
|
||||
|
||||
## Smartthings Configuration
|
||||
|
||||
@@ -29,7 +29,7 @@ The bridge requires the IP address and port used to connect the openHAB server t
|
||||
|
||||
where:
|
||||
|
||||
* **smartthings:smartthings:Home** identifies this is a smartthings hub named Home. The first two segments must be smartthings:smartthings. You can choose any unique name for the the last segment. The last segment is used when you identify items connected to this hubthingTypeId.
|
||||
* **smartthings:smartthings:Home** identifies this is a smartthings hub named Home. The first two segments must be smartthings:smartthings. You can choose any unique name for the the last segment. The last segment is used when you identify items connected to this hubthingTypeId.
|
||||
* **smartthingsIp** is the IP address of the Smartthings Hub. Your router should be configured such that the Smartthings Hub is always assigned to this IP address.
|
||||
* **smartthingsPort** is the port the Smartthings hub listens on. 39500 is the port assigned by Smartthings so it should be used unless you have a good reason for using another port.
|
||||
|
||||
@@ -40,13 +40,13 @@ where:
|
||||
Each attached thing must specify the type of device and it's Smartthings device name. The format of the Thing description is:
|
||||
|
||||
Thing <thingTypeId> name [ smartthingsName="<deviceName>", {smartthingsTimeout=<timeout>} ]
|
||||
|
||||
|
||||
where:
|
||||
|
||||
* **[thingTypeId](http://docs.smartthings.com/en/latest/capabilities-reference.html)** corresponds to the "Preferences Reference" in the Smartthings Capabilities document but without the capability. prefix. i.e. A dimmer switch in the Capabilities document has a Preferences reference of capability.switchLevel, therefore the <thingTypeId> is switchLevel.
|
||||
* **name** is what you want to call this thing and is used in defining the items that use this thing.
|
||||
* **[thingTypeId](https://docs.smartthings.com/en/latest/capabilities-reference.html)** corresponds to the "Preferences Reference" in the Smartthings Capabilities document but without the capability. prefix. i.e. A dimmer switch in the Capabilities document has a Preferences reference of capability.switchLevel, therefore the <thingTypeId> is switchLevel.
|
||||
* **name** is what you want to call this thing and is used in defining the items that use this thing.
|
||||
* **deviceName** is the name you assigned to the device when you discovered and connected to it in the Smartthings App
|
||||
* Optional: **timeout** is how long openHAB will wait for a response to the request before throwing a timeout exception. The default is 3 seconds.
|
||||
* Optional: **timeout** is how long openHAB will wait for a response to the request before throwing a timeout exception. The default is 3 seconds.
|
||||
|
||||
|
||||
**Example**
|
||||
@@ -74,15 +74,15 @@ The parts (separated by :) are defined as:
|
||||
2. **thingTypeId** specifies the type of the thing you are connecting to. This is the same as described in the last section.
|
||||
3. **hubName** identifies the name of the hub specified above. This corresponds to the third segment in the **Bridge** definition.
|
||||
4. **thingName** identifes the thing this is attached to and is the "name" you specified in the **Thing** definition.
|
||||
5. **channelId** corresponds the the attribute in the [Smartthings Capabilities list](http://docs.smartthings.com/en/latest/capabilities-reference.html). For switch it would be "switch".
|
||||
5. **channelId** corresponds the the attribute in the [Smartthings Capabilities list](https://docs.smartthings.com/en/latest/capabilities-reference.html). For switch it would be "switch".
|
||||
|
||||
**Example**
|
||||
|
||||
Dimmer KitchenLights "Kitchen lights level" <slider> { channel="smartthings:switchLevel:Home:KitchenLights:level" }
|
||||
Switch KitchenLightSwitch "Kitchen lights switch" <light> { channel="smartthings:switchLevel:Home:KitchenLights:switch" }
|
||||
Contact MainGarageDoor "Garage door status [%s]" <garagedoor> { channel="smartthings:contactSensor:Home:MainGarageDoor:contact" }
|
||||
Number MainGarageTemp "Garage temperature [%.0f]" <temperature> { channel="smartthings:temperatureMeasurement:Home:MainGarageTemp:temperature" }
|
||||
Number MainGarageBattery "Garage battery [%.0f]" <battery> { channel="smartthings:battery:Home:MainGarageBattery:battery" }
|
||||
Contact MainGarageDoor "Garage door status [%s]" <garagedoor> { channel="smartthings:contactSensor:Home:MainGarageDoor:contact" }
|
||||
Number MainGarageTemp "Garage temperature [%.0f]" <temperature> { channel="smartthings:temperatureMeasurement:Home:MainGarageTemp:temperature" }
|
||||
Number MainGarageBattery "Garage battery [%.0f]" <battery> { channel="smartthings:battery:Home:MainGarageBattery:battery" }
|
||||
Switch OfficeLight "Office light" <light> { channel="smartthings:switch:Home:OfficeLight:switch" }
|
||||
String SimulatedValve "Simulated valve" { channel="smartthings:valve:Home:SimulatedValve:valve" }
|
||||
|
||||
@@ -90,7 +90,7 @@ The parts (separated by :) are defined as:
|
||||
Smarttings includes a **valve** which can be Open or Closed but openHAB does not include a Valve item type. Therefore, the valve is defined as a having an item type of String. And, therefore the item needs to be defined with an item type of string. It can be controlled in the sitemap by specifying the Element type of Switch and providing a mapping of: mappings=[open="Open", closed="Close"]. Such as:
|
||||
|
||||
Switch item=SimulatedValve mappings=[open="Open", closed="Close"]
|
||||
|
||||
|
||||
**RGB Bulb example**
|
||||
Here is a sample configuration for a RGB bulb, such as a Sengled model E11-N1EA bulb. Currently this binding does not have a RGB specific bulb therefore a Thing is required for each part of the bulb.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user