Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
blocks:app-note:netio [2024-02-26 07:57] mattias [Example configurations for NETIO devices] |
blocks:app-note:netio [2024-04-09 17:08] (current) mattias [Prepare the device] |
||
---|---|---|---|
Line 1: | Line 1: | ||
=====Control Netio Power Distribution Units using MQTT===== | =====Control Netio Power Distribution Units using MQTT===== | ||
- | This application note explains the steps involved in configuring the device and how to set up the device in Blocks using the Configurable MQTT driver. | + | This application note explains the steps involved in configuring the device and how to set up the device in Blocks using the Configurable MQTT driver. |
+ | |||
+ | :!: NOTE: If you don't already have an MQTT broker as part of your system, the [[blocks: | ||
====Prepare the device==== | ====Prepare the device==== | ||
- | First of all make yourself familiar with MQTT, we hava a [[blocks: | + | First of all make yourself familiar with MQTT, we have a [[blocks: |
Please refer to the vendor documentation on how to access the setup of the device. | Please refer to the vendor documentation on how to access the setup of the device. | ||
Line 93: | Line 95: | ||
====Configure the MQTT driver in Blocks==== | ====Configure the MQTT driver in Blocks==== | ||
- | In blocks | + | Before adding devices we must have a broker running (somewhere) and configured in the blocks |
+ | This application note use the generic // | ||
+ | |||
+ | ===Add the device=== | ||
+ | Add a new mqtt device from Manage/ | ||
+ | For the Netio example configurations in this app note the Topic Base is // | ||
In the drivers custom options we can specify the blocks property names and the MQTT topics we need to subscribe to using JSON. The following example is for 2 socket PowerCABLE configured as in the examples above. | In the drivers custom options we can specify the blocks property names and the MQTT topics we need to subscribe to using JSON. The following example is for 2 socket PowerCABLE configured as in the examples above. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Example driver configuration for a two socket device: | ||
+ | |||
+ | < | ||
{ | { | ||
" | " | ||
Line 112: | Line 126: | ||
} | } | ||
] | ] | ||
+ | |||
+ | </ | ||
Where: | Where: |