Re: [mh] MQTT LOCALITEM topic names

Dave Neudoerffer <[email protected]> Fri, 8 Sep 2023 20:38:53 -0400
Newsgroups gmane.comp.misc.misterhouse.user
Message-ID <CAOFx8LOqh9rLYUuyrtA-uuJNG1jYdOV+JqfyZh0r51cf+1H2gA@mail.gmail.com>
Hey Brian. I am not aware of any limit in mqtt itself (doc says up to 64k
bytes), but there may be assumptions in the code that topics are only two
levels. I think at one point I started to support arbitrary number of
levels but it was getting too complicated to identify the incoming state
and set messages. Outgoing is probably easier.

Dave

On Fri, Sep 8, 2023, 7:25 PM Brian M <[email protected]>
wrote:

> I'd planned to publish my local MH items to MQTT with topic names of the
> form ha/mh/<room>/<item>, such as "ha/mh/office/light". The current
> state would then be published as ha/mh/office/light/state. The current
> version of mqtt_items.pm limits the topics to two levels, though, so the
> state actually gets published as "ha/mh/state". I've tried out a patch
> to allow more levels in the topic, and it seems to publish as I had
> hoped, though I haven't tested whether incoming commands work yet.
>
> Before I continue testing and consider a pull request, is there a reason
> why the topics are currently limited to two levels above the actual
> state value?
>
>                           -Brian M
>
>
>
> ________________________________________________________
> To unsubscribe from this list, go to:
> https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>
>

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