pbkhrv / rtl_433-hass-addons

Collection of Home Assistant add-ons that use rtl_433
230 stars 106 forks source link

Add example for preserving topic structure between versions #138

Closed deviantintegral closed 1 year ago

deviantintegral commented 1 year ago

Summary

rtl_433 uses the hostname when calculating default topics. When switching between the normal and next versions, the hostname changes. That makes it difficult to switch back and forth since all of the devices will be in a different tree.

This PR adds an example and updates the README of the next addon.

Alternatives Considered

I thought about simply hardcoding the topic always, but I think that adds an extra layer of confusion to the configuration that most users won't benefit from.

Testing Steps

  1. Pull this build down, or build locally.
  2. Add or uncomment the output line added in this PR in the configuration file.
  3. Stop the regular addon, and install the next addon.
  4. Messages should be published to the same existing topics.