Re: [mh] MQTT LOCALITEM topic names

Giles Godart-Brown <[email protected]> Sat, 9 Sep 2023 07:43:55 +0100
Newsgroups gmane.comp.misc.misterhouse.user
Message-ID <[email protected]>
It may get even more complicated if you include support for wildcards

Giles

On 9 Sep 2023, at 01:39, Dave Neudoerffer <[email protected]> wrote:


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

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