Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mqtt.homie] build a per-thing thing type #15893

Merged
merged 2 commits into from
Apr 1, 2024

Commits on Nov 14, 2023

  1. [mqtt.homie] build a per-thing thing type

    Otherwise channel groups don't show up correctly in MainUI (in actual
    groups with a heading).
    
    Note that this is completely backwards compatible - even though Things
    change their ThingTypeUID after they're created, their UID does _not_
    change, so no channel UIDs change either.
    
    A happy consequence of building ChannelDefinitions for the ThingType is
    that custom ChannelTypes are no longer necessary - the only variable parts
    are labels and state/command descriptions, which are overridden by the
    ThingType's ChannelDefinition and the DynamicStateDescriptionProvider
    respectively. This can greatly increase responsiveness of MainUI if you
    have many Homie things with many channels. My /rest/channel-types response
    went from 2.6MB to 175KB. Since the full list of thing types is never
    queried, there's no corresponding increase anywhere else.
    
    Signed-off-by: Cody Cutrer <cody@cutrer.us>
    ccutrer committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    3754f3b View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2023

  1. fix itests

    Signed-off-by: Cody Cutrer <cody@cutrer.us>
    ccutrer committed Nov 19, 2023
    Configuration menu
    Copy the full SHA
    b6dfa19 View commit details
    Browse the repository at this point in the history