Re: [mh] MQTT LOCALITEM topic names

Brian M <[email protected]> Fri, 8 Sep 2023 23:58:06 -0700
Newsgroups gmane.comp.misc.misterhouse.user
Message-ID <[email protected]>
Thanks Dave & Giles. I'll be testing incoming commands to deeper level 
items, and deeper levels for remote items, and I'll keep an eye out for 
any trouble in that area. I should be able to exercise it fairly 
thoroughly by the time I'm done.

           -Brian M.

On 9/8/23 23:43, Giles Godart-Brown wrote:
> 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 <http://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