OpenHAB

The Home Assistant auto discovery feature can also be used by OpenHAB.
Setting up OpenHAB to automatically detect measurements:

  1. Log in to OpenHAB
  2. Click ”Settings” in the side bar
  3. Click ”Settings” in the side bar again and go to ”Things” (under the ”Configuration” category) and click the ”+” button in the bottom right corner
  4. If you already have the MQTT binding installed, it should show up in the list of installed bindings. If there is no MQTT binding in the list, Follow these steps:
    1. Click ”Install More Bindings”
    2. Find the MQTT binding and install it
    3. Once the binding is installed, click ”Back” at the top of the screen
  5. Select the MQTT binding
  6. Click ”MQTT Broker” in the list of things to add manually
  7. Enter the connection information of your MQTT broker and click ”Create Thing”
  8. OpenHAB should now be connected to your MQTT broker and should have already discovered your device. An inbox notification will appear at the bottom of the screen, notifying you that variables from your electricity meter have been detected. Click the notification
  9. You will now see a list of variables supported by you electricity meter. Each variable has to be manually added as a thing. Repeat these steps for each variable you would like to read:
    1. Click the entry in the list and select ”Add as Thing”
    2. Go back to the list of things and click the newly added thing
    3. Go to the ”Channels” tab at the top of the screen and click ”Add Link to Item…”
    4. Select ”Create a new Item”, set ”Semantic Class” to ”Measurement” and set ”Semantic Property” to the appropriate value for the variable
    5. Click ”Link” at the bottom of the screen to create an Item that outputs the value.