Skip to content

Commit e556c85

Browse files
committed
Updated readme with getlocations
1 parent 631b311 commit e556c85

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ oZDevices = oZWave.getDevices()
4040

4141
## Functions
4242

43-
### getDevices()
43+
### `getDevices()`
4444

4545
Returns a list of zWave Devices as a JSON array
4646

47-
### setDeviceCommand(deviceid, newcommand)
47+
### `setDeviceCommand(deviceid, newcommand)`
4848

4949
Sends a Command to a zWave Device
5050

@@ -56,3 +56,17 @@ Sends a Command to a zWave Device
5656
* toggleButton : on
5757

5858
**Returns** either 1 or 0 dependant on command being accepted
59+
60+
### `getLocations`
61+
62+
Returns a list of zWave Locations (Rooms) as a DICT list
63+
64+
```python
65+
[
66+
{
67+
"id": 1,
68+
"title": "Bedroom",
69+
"main_sensors": []
70+
}
71+
]
72+
```

0 commit comments

Comments
 (0)