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

Discovery Platform #387

Merged
merged 77 commits into from
Apr 28, 2021
Merged

Discovery Platform #387

merged 77 commits into from
Apr 28, 2021

Commits on Apr 9, 2021

  1. Store Name in Case as Entered by User

    To be used for setting the Name in the discovery payload.
    krkeegan committed Apr 9, 2021
    Configuration menu
    Copy the full SHA
    a1d7e2f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1aae73e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7091418 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2021

  1. Merge pull request #379 from krkeegan/Name_User_Case

    Store Name in Case as Entered by User
    krkeegan authored Apr 12, 2021
    Configuration menu
    Copy the full SHA
    ac4360a View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2021

  1. Add Discovery Topic Config

    krkeegan committed Apr 13, 2021
    Configuration menu
    Copy the full SHA
    cc0e895 View commit details
    Browse the repository at this point in the history
  2. Add Basic Discovery Function; Implement in Dimmer Only

    Adds the basic functionality for reading discovery settings from
    the config.yaml file.  Lightly implemented in Dimmer.
    
    Still does not publish anything yet, need to monitor the
    homeassistant/status topic
    krkeegan committed Apr 13, 2021
    Configuration menu
    Copy the full SHA
    2d88db6 View commit details
    Browse the repository at this point in the history
  3. Monitor HA Status; Publish Discovery Entities on Startup

    Monitors a defined topic looking for a message indicating that
    HomeAssistant was restarted and triggers a re-publish of
    discovery entities if that happens.
    
    Publish discovery entities on startup.
    krkeegan committed Apr 13, 2021
    Configuration menu
    Copy the full SHA
    e92998e View commit details
    Browse the repository at this point in the history
  4. Add Device_Info_Template Variable; Add Base Dimmer Config

    Device information is likely to be the same structure across all
    devices.  Or at least most devices.  This adds a variable that
    is defined in yaml and useable in the jinja templates.
    
    Add basic dimmer discovery entities.
    krkeegan committed Apr 13, 2021
    Configuration menu
    Copy the full SHA
    5e78c89 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ea9f8b1 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2021

  1. Add Additional Template Items to Discovery; Improve Device Info

    Add additional information about the device model and such.
    This is all primarily cosmetic, but it might aid with support
    requests if a user can see their device info in a nice GUI.
    krkeegan committed Apr 14, 2021
    Configuration menu
    Copy the full SHA
    845475f View commit details
    Browse the repository at this point in the history
  2. Move Discovery_Topic_Base to MQTT Handler

    This way it is only processed once, seems more streamlined.
    krkeegan committed Apr 14, 2021
    Configuration menu
    Copy the full SHA
    7cb339b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c162ca2 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #381 from krkeegan/Discovery_Base

    Skeleton of Discovery Implementation
    krkeegan authored Apr 14, 2021
    Configuration menu
    Copy the full SHA
    4b5822d View commit details
    Browse the repository at this point in the history
  5. Fix JSON Trailing Command; Stop if No Unique_ID

    JSON is quite unforgiving.
    krkeegan committed Apr 14, 2021
    Configuration menu
    Copy the full SHA
    7d99ac3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f6229dd View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6dca2f1 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7f1834c View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2021

  1. Configuration menu
    Copy the full SHA
    c5cd0b8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0929655 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2021

  1. Merge pull request #382 from krkeegan/Discovery_Additions

    Discovery Documentation; Additional Variables and Tweaks
    krkeegan authored Apr 19, 2021
    Configuration menu
    Copy the full SHA
    600b377 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a58077d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    95393aa View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5311215 View commit details
    Browse the repository at this point in the history
  5. Add Fan Support to Discovery

    krkeegan committed Apr 19, 2021
    Configuration menu
    Copy the full SHA
    ec29c33 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2021

  1. Rename Discovery Attributes; Fix Error in Conifg Inheritance

    Can't use default discovery class name for selecting the config
    section, it will cause the wrong inheritance with things like
    fan_linc inheritting dimmer settings.
    
    Rename some variables and add better descriptions to try and make
    them more clear.
    krkeegan committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    0d85fa1 View commit details
    Browse the repository at this point in the history
  2. Move Topic Append to Load Config Instead of Discovery Data

    Rather than extending a method, I think it is more concise and
    makes more sense to load this data into the rendered topics
    map on load.
    krkeegan committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    727063a View commit details
    Browse the repository at this point in the history
  3. Enable Unique Topic Keys; Generate Extra Topics in Scene and Set

    Primarily to support KPL.  But other devices may need this as
    well.
    krkeegan committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    58b067c View commit details
    Browse the repository at this point in the history
  4. Add KPL Support to Discovery

    krkeegan committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    61e690a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a248cdb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5bcccbc View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1890087 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9eeda26 View commit details
    Browse the repository at this point in the history
  9. Flake8 Cleanup

    krkeegan committed Apr 20, 2021
    Configuration menu
    Copy the full SHA
    abde054 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2021

  1. Merge pull request #384 from krkeegan/Discovery_Devices

    Add Discovery Support to All Devices
    krkeegan authored Apr 21, 2021
    Configuration menu
    Copy the full SHA
    393ef8b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    75586db View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4b344be View commit details
    Browse the repository at this point in the history
  4. Catch Wider Range of Exceptions; Tests for DiscoveryTopic

    Need to broaden the range of jinja exceptions that are caught.
    
    Adds unit tests for discoveryTopic.load_discovery_data and
    _get_unique_id
    krkeegan committed Apr 21, 2021
    Configuration menu
    Copy the full SHA
    1662607 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f06491b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ed3ed9f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5681bdd View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d7b1a11 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    414e3bc View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    462c7df View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5be8152 View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2021

  1. Configuration menu
    Copy the full SHA
    92ee592 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f75a53e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    998e63e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3498556 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b3aec55 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2021

  1. Configuration menu
    Copy the full SHA
    64d2132 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    32c6fdc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d950702 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2bf1726 View commit details
    Browse the repository at this point in the history
  5. Add Discovery Unit Tests to Thermostat

    Man this test file is not well written, who did this? .... oh yeah
    it was me.
    krkeegan committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    999043c View commit details
    Browse the repository at this point in the history
  6. Change Variable Name For Comprehension; Pass Dict Copy to Publish

    entries was a very generic name , disc_templates does a better
    job describing what it is.
    
    Pass a copy of a dict.  Passing the actual dict seemed to work
    fine, but on the off chance that publish somehow happens async
    need to pass a copy since we alter data immediately after passing
    it.
    krkeegan committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    ba18a0d View commit details
    Browse the repository at this point in the history
  7. Remove Scene_Topic from Modem Template Variables

    It is replaced by discovery_publish() but still best not to
    leave this around.
    krkeegan committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    bceba22 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    29a3743 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    dab790a View commit details
    Browse the repository at this point in the history
  10. Merge pull request #385 from krkeegan/Discovery_Tests

    Add Unit Tests to Discovery Platform
    krkeegan authored Apr 23, 2021
    Configuration menu
    Copy the full SHA
    a5f98f4 View commit details
    Browse the repository at this point in the history
  11. Skip Discovery Topic Loading if Discovery Disabled

    Squelches a bunch of potential discovery log messages that are
    unnecessary.
    krkeegan committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    a8331a3 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2021

  1. Configuration menu
    Copy the full SHA
    6557c02 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a3d1f73 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1a97a82 View commit details
    Browse the repository at this point in the history
  4. Fix Example Leak Config

    krkeegan committed Apr 25, 2021
    Configuration menu
    Copy the full SHA
    feb0c1d View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2021

  1. Configuration menu
    Copy the full SHA
    a2b5b8b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    abce7c3 View commit details
    Browse the repository at this point in the history
  3. Alter Hoe Modem Loads Discovery Templates

    Necessary because the modem only uses a single template with
    an indeterminate, until run time, number of topics generated
    krkeegan committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    a36d6fd View commit details
    Browse the repository at this point in the history
  4. Fix Import Error in Modem

    krkeegan committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    74534a0 View commit details
    Browse the repository at this point in the history
  5. Limit Characters in Discovery Topic; Revert Remove Period Address

    The HA implementation of the discovery protocol only allows a
    very small subset of characters for use in the node_id and
    the object_id.  This replaces all un-allowed characters with an
    underscore.
    
    Also removed the ability to set the topic via yaml.  This never
    really worked anyways and would create potential problems.
    
    Reverted changing the periods in the address to underscores,
    periods are still fine in the unique_id, just not in the topic
    string.
    krkeegan committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    2155de7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6dec23a View commit details
    Browse the repository at this point in the history
  7. Merge pull request #390 from krkeegan/Discovery_Tweaks

    Discovery Tweaks After Initial Usage
    krkeegan authored Apr 26, 2021
    Configuration menu
    Copy the full SHA
    02ced94 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2021

  1. Better Logging Message

    krkeegan committed Apr 27, 2021
    Configuration menu
    Copy the full SHA
    eb19a54 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e688e44 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #394 from krkeegan/Discovery_Tweaks

    Discovery Tweaks and Fixes
    krkeegan authored Apr 27, 2021
    Configuration menu
    Copy the full SHA
    f36991f View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2021

  1. Documentation Updates

    krkeegan committed Apr 28, 2021
    Configuration menu
    Copy the full SHA
    a4dd2d5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f044133 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    87ec067 View commit details
    Browse the repository at this point in the history