Skip to content

Commit df50cb8

Browse files
committed
Reorganise README
Signed-off-by: Florian Hotze <dev@florianhotze.com>
1 parent c750968 commit df50cb8

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,22 @@ Custom n8n node for interacting with the openHAB REST API, with optional myopenH
5656
- **System**: system info.
5757
4. Execute the node; outputs are JSON objects ready for downstream n8n steps.
5858

59+
#### Usage examples
60+
61+
1. Read a light state:
62+
- Resource: `Item`
63+
- Operation: `Get State`
64+
- Item Name: `LivingRoomLight`
65+
2. Turn a switch on:
66+
- Resource: `Item`
67+
- Operation: `Send Command`
68+
- Item Name: `KitchenSwitch`
69+
- Command: `ON`
70+
3. Run a rule:
71+
- Resource: `Rule`
72+
- Operation: `Run`
73+
- Rule UID: `evening_scene`
74+
5975
### openHAB Trigger node
6076

6177
1. Add the **openHAB Trigger** node to a workflow to listen for openHAV events and start workflows when they arrive.
@@ -92,22 +108,6 @@ Example event:
92108
}
93109
```
94110

95-
### Usage examples
96-
97-
1. Read a light state:
98-
- Resource: `Item`
99-
- Operation: `Get State`
100-
- Item Name: `LivingRoomLight`
101-
2. Turn a switch on:
102-
- Resource: `Item`
103-
- Operation: `Send Command`
104-
- Item Name: `KitchenSwitch`
105-
- Command: `ON`
106-
3. Run a rule:
107-
- Resource: `Rule`
108-
- Operation: `Run`
109-
- Rule UID: `evening_scene`
110-
111111
### Notes
112112

113113
- Authentication is applied through the credential type (used by `httpRequestWithAuthentication`), so each request automatically uses the selected auth mode.

0 commit comments

Comments
 (0)