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
+7-10Lines changed: 7 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -218,7 +218,7 @@ For that, you need to a `Device` node with the correct brand/model attributes fo
218
218
- The serial number is required for In One by Legrand and MyHome Play devices and optional for MyHome Up devices.
219
219
- The unit node is not used for MyHome Up devices but is generally required for In One by Legrand and MyHome Play devices.
220
220
- The unit must match one of the unit identifiers offered by the specific device. If you're unsure what identifier should be used,
221
-
you can see [OpenNettyDevices.xml](src/OpenNetty/OpenNettyDevices.xml) for a list of all the supported devices and the units they expose.
221
+
you can see [`OpenNettyDevices.xml`](src/OpenNetty/OpenNettyDevices.xml) for a list of all the supported devices and the units they expose.
222
222
- For MyHome Up devices, the area/point attributes must match the values assigned via [MyHome Suite](https://www.homesystems-legrandgroup.com/home?p_p_id=it_smc_bticino_homesystems_search_AutocompletesearchPortlet&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&_it_smc_bticino_homesystems_search_AutocompletesearchPortlet_journalArticleId=2493426&_it_smc_bticino_homesystems_search_AutocompletesearchPortlet_mvcPath=%2Fview_journal_article_content.jsp).
223
223
- The endpoint name must be chosen carefully as it will be used to infer the MQTT topic used for the endpoint (e.g state changes dispatched
224
224
by an endpoint named `Bedroom/Wall light` will be posted under the `opennetty/bedroom/wall light` MQTT topic).
@@ -304,6 +304,12 @@ sudo service opennetty start
304
304
>
305
305
> You can also send an empty `opennetty/bedroom/wall light/switch_state/get` message to get the current switch state of the endpoint.
306
306
307
+
> [!TIP]
308
+
> The complete list of supported MQTT attributes can be found in the [`OpenNettyMqttAttributes.cs` file](src/OpenNetty.Mqtt/OpenNettyMqttAttributes.cs).
309
+
>
310
+
> Ready-to-use templates for Jeedom's [jMQTT plugin](https://market.jeedom.com/index.php?v=d&p=market_display&id=3166)
311
+
> can be found in the [opennetty-resources](https://github.com/opennetty/opennetty-resources) repository.
312
+
307
313
## Using OpenNetty as a library
308
314
309
315
### Primitives
@@ -405,9 +411,6 @@ and extract the corresponding response returned by the gateway, if applicable:
405
411
```csharp
406
412
varbuilder = Host.CreateApplicationBuilder();
407
413
408
-
builder.Services.AddSystemd()
409
-
.AddWindowsService();
410
-
411
414
builder.Services.AddOpenNetty(options=>
412
415
{
413
416
// Register the SCS gateway used to communicate with MyHome devices.
@@ -449,9 +452,6 @@ await app.StopAsync();
449
452
```csharp
450
453
varbuilder=Host.CreateApplicationBuilder();
451
454
452
-
builder.Services.AddSystemd()
453
-
.AddWindowsService();
454
-
455
455
builder.Services.AddOpenNetty(options=>
456
456
{
457
457
options.AddGateway(OpenNettyGateway.Create(
@@ -511,9 +511,6 @@ By implementing the `IOpenNettyHandler` interface, it is possible to subscribe t
0 commit comments