Re: [mh] mqtt_discovery

H Plato <[email protected]> Thu, 5 Feb 2026 18:44:08 -0700
Newsgroups gmane.comp.misc.misterhouse.user
Message-ID <[email protected]>
--===============0209537362836330270==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_9A37D3D9-D37C-4682-8ECE-BC10F97B1D63"


--Apple-Mail=_9A37D3D9-D37C-4682-8ECE-BC10F97B1D63
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

I use the HA_Item to create my z-wave devices, rather than the mqtt =
discovery. This gives me better control over names and options. I also =
use Zwave-JS-UI and have migrated from the no-longer-supported razberry =
to the Nabu Casa ZWA2. My Zwave setup has been very reliable.

> On Feb 5, 2026, at 5:34=E2=80=AFPM, Brian M =
<[email protected]> wrote:
>=20
> I'm now using zwave-js-ui to handle direct management of ZWave =
devices, and it works great. It has an API, but I'm using it's MQTT =
facility to publish device states and such, so I'm getting deeper into =
Dave's mqtt_discovery.pm module. My only "problem" (well, nuisance =
issue) is that, based on the data zwave-js-ui provides mqtt_discovery is =
creating MH object names like the following:
>=20
> mqttd_Brians_Office_Fan_Brians_Office_Fan
> mqttd_Brians_Office_Light_Brians_Office_Light
> mqttd_Entryway_Front_Porch_Entryway_Front_Porch
> mqttd_Garage_Alert_Light_Garage_Alert_Light
>=20
> These are both redundant and a little unwieldy. I'm sure the =
redundancy comes from the data zwave-js-ui provides, but I haven't =
figured out if mqtt_discovery provides a handy way to customize the =
object names. My first thought was to add a test for an optional =
user-supplied subroutine to build the object name, and if that =
subroutine wasn't provided, keep doing what it's currently doing. But =
before I try to reinvent the wheel I thought I'd ask if there's Dave or =
anyone else has a better, existing way to customize those names.
>=20
>               -Brian M
>=20
>=20
>=20
> ________________________________________________________
> To unsubscribe from this list, go to: =
https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>=20


--Apple-Mail=_9A37D3D9-D37C-4682-8ECE-BC10F97B1D63
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" =
content=3D"text/html; charset=3Dutf-8"></head><body =
style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; =
line-break: after-white-space;">I use the HA_Item to create my z-wave =
devices, rather than the mqtt discovery. This gives me better control =
over names and options. I also use Zwave-JS-UI and have migrated from =
the no-longer-supported razberry to the Nabu Casa ZWA2. My Zwave setup =
has been very reliable.<br =
id=3D"lineBreakAtBeginningOfMessage"><div><br><blockquote =
type=3D"cite"><div>On Feb 5, 2026, at 5:34=E2=80=AFPM, Brian M =
&lt;[email protected]&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div>

 =20

    <meta http-equiv=3D"content-type" content=3D"text/html; =
charset=3DUTF-8">
 =20
  <div><p>I'm now using zwave-js-ui to handle direct management of ZWave
      devices, and it works great. It has an API, but I'm using it's
      MQTT facility to publish device states and such, so I'm getting
      deeper into Dave's mqtt_discovery.pm module. My only "problem"
      (well, nuisance issue) is that, based on the data zwave-js-ui
      provides mqtt_discovery is creating MH object names like the
      following:</p>
    <pre class=3D"inner-pre" style=3D"font-size: =
16;white-space:pre-wrap;">mqttd_Brians_Office_Fan_Brians_Office_Fan
mqttd_Brians_Office_Light_Brians_Office_Light
mqttd_Entryway_Front_Porch_Entryway_Front_Porch
mqttd_Garage_Alert_Light_Garage_Alert_Light

</pre><p>These are both redundant and a little unwieldy. I'm sure the
      redundancy comes from the data zwave-js-ui provides, but I haven't
      figured out if mqtt_discovery provides a handy way to customize
      the object names. My first thought was to add a test for an
      optional user-supplied subroutine to build the object name, and if
      that subroutine wasn't provided, keep doing what it's currently
      doing. But before I try to reinvent the wheel I thought I'd ask if
      there's Dave or anyone else has a better, existing way to
      customize those names.</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; -Brian M</p><p><br>
    </p>
  </div>

________________________________________________________<br>To =
unsubscribe from this list, go to: =
https://lists.sourceforge.net/lists/listinfo/misterhouse-users<br><br></di=
v></blockquote></div><br></body></html>=

--Apple-Mail=_9A37D3D9-D37C-4682-8ECE-BC10F97B1D63--


--===============0209537362836330270==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============0209537362836330270==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users


--===============0209537362836330270==--