Skip to content

Commit a04c6cc

Browse files
author
QuickSander
committed
corrected notificationID description
1 parent de98516 commit a04c6cc

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,17 @@ string with no HTML markup.
220220
This accessory supports push notification from the physical device via
221221
[homebridge-http-notification-server](https://github.com/Supereg/homebridge-http-notification-server). This allows the device to modify the
222222
switch's status by pushing the new status instead of Homebridge pulling it.
223-
This can be realized by supplying the `notificationID`.
224-
Your device should then push the `On` `characteristic` towards the notification server
225-
using the specified `notificationID` as `service`.
223+
This can be realized by supplying the `notificationID` as part of this accesory's configuration.
224+
Your device should then push the `On` `characteristic` towards the notification server.
225+
E.g. a POST request towards `http://<homebridge-host>:<notification-server-port>/<notificationID>` with the following
226+
body:
227+
228+
```
229+
{
230+
"characteristic": "On",
231+
"value": true
232+
}
233+
```
234+
226235
To get more details about the push configuration have a look at this
227236
[README](https://github.com/Supereg/homebridge-http-notification-server).

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ HTTP_RGB.prototype = {
174174
}
175175
// Handle color
176176
if (this.color) {
177-
this.log('... adding color)');
177+
this.log('... adding color');
178178
this.service
179179
.addCharacteristic(new Characteristic.Hue())
180180
.on('get', this.getHue.bind(this))

0 commit comments

Comments
 (0)