You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,22 @@ Custom n8n node for interacting with the openHAB REST API, with optional myopenH
56
56
-**System**: system info.
57
57
4. Execute the node; outputs are JSON objects ready for downstream n8n steps.
58
58
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
+
59
75
### openHAB Trigger node
60
76
61
77
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:
92
108
}
93
109
```
94
110
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
-
111
111
### Notes
112
112
113
113
- Authentication is applied through the credential type (used by `httpRequestWithAuthentication`), so each request automatically uses the selected auth mode.
0 commit comments