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

Unpacking RESTful sensor JSON results into attributes. #10753

Merged
merged 32 commits into from
Dec 3, 2017

Commits on May 6, 2017

  1. Added support for extracting JSON attributes from RESTful values

    Setting the json_attributes configuration option to true on the
    RESTful sensor will cause the result of the REST request to be parsed
    as a JSON string and if successful the resulting dictionary will be
    used for the attributes of the sensor.
    nickovs committed May 6, 2017
    Configuration menu
    Copy the full SHA
    dbaa626 View commit details
    Browse the repository at this point in the history
  2. Added support for extracting JSON attributes from RESTful values

    Setting the json_attributes configuration option to true on the
    RESTful sensor will cause the result of the REST request to be parsed
    as a JSON string and if successful the resulting dictionary will be
    used for the attributes of the sensor.
    nickovs committed May 6, 2017
    Configuration menu
    Copy the full SHA
    fb19f87 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0cb9def View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e08f649 View commit details
    Browse the repository at this point in the history
  5. Expanded test coverage to test REFTful JSON attributes with and

    without a value template.
    nickovs committed May 6, 2017
    Configuration menu
    Copy the full SHA
    de07ae5 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2017

  1. Added support for extracting JSON attributes from RESTful values

    Setting the json_attributes configuration option to true on the
    RESTful sensor will cause the result of the REST request to be parsed
    as a JSON string and if successful the resulting dictionary will be
    used for the attributes of the sensor.
    nickovs committed May 7, 2017
    Configuration menu
    Copy the full SHA
    227a5ad View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    769c7ff View commit details
    Browse the repository at this point in the history
  3. Expanded test coverage to test REFTful JSON attributes with and

    without a value template.
    nickovs committed May 7, 2017
    Configuration menu
    Copy the full SHA
    0f25f6d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a22a6d4 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2017

  1. sensor.envirophat: add missing requirement (home-assistant#7451)

    Adding requirements that is not explicitly pulled in by the library
    that manages the Enviro pHAT.
    imrehg authored and nickovs committed Nov 20, 2017
    Configuration menu
    Copy the full SHA
    6bd57cc View commit details
    Browse the repository at this point in the history
  2. PyPI Openzwave (home-assistant#7415)

    * Remove default zwave config path
    
    PYOZW now has much more comprehensive default handling for the config
    path (in src-lib/libopenzwave/libopenzwave.pyx:getConfig()). It looks in
    the same place we were looking, plus _many_ more. It will certainly do a
    much better job of finding the config files than we will (and will be
    updated as the library is changed, so we don't end up chasing it). The
    getConfig() method has been there for a while, but was subsntially
    improved recently.
    
    This change simply leaves the config_path as None if it is not
    specified, which will trigger the default handling in PYOZW.
    
    * Install python-openzwave from PyPI
    
    As of version 0.4, python-openzwave supports installation from PyPI,
    which means we can use our 'normal' dependency management tooling to
    install it. Yay.
    
    This uses the default 'embed' build (which goes and downloads
    statically sources to avoid having to compile anything locally). Check
    out the python-openzwave readme for more details.
    
    * Add python-openzwave deps to .travis.yml
    
    Python OpenZwave require the libudev headers to build. This adds the
    libudev-dev package to Travis runs via the 'apt' addon for Travis.
    
    Thanks to @MartinHjelmare for this fix.
    
    * Update docker build for PyPI openzwave
    
    Now that PYOZW can be install from PyPI, the docker image build process
    can be simplified to remove the explicit compilation of PYOZW.
    JshWright authored and nickovs committed Nov 20, 2017
    Configuration menu
    Copy the full SHA
    d635e26 View commit details
    Browse the repository at this point in the history
  3. Add datadog component (home-assistant#7158)

    * Add datadog component
    
    * Improve test_invalid_config datadog test
    
    * Use assert_setup_component for test setup
    nunofgs authored and nickovs committed Nov 20, 2017
    Configuration menu
    Copy the full SHA
    44cc762 View commit details
    Browse the repository at this point in the history
  4. Fix object type for default KNX port

    home-assistant#7429 describes a TypeError that is raised if the port is omitted in the config for the KNX component (integer is required (got type str)). This commit changes the default port from a string to an integer. I expect this will resolve that issue...
    JshWright authored and nickovs committed Nov 20, 2017
    Configuration menu
    Copy the full SHA
    67e8f52 View commit details
    Browse the repository at this point in the history
  5. Added support for extracting JSON attributes from RESTful values

    Setting the json_attributes configuration option to true on the
    RESTful sensor will cause the result of the REST request to be parsed
    as a JSON string and if successful the resulting dictionary will be
    used for the attributes of the sensor.
    nickovs committed Nov 20, 2017
    Configuration menu
    Copy the full SHA
    d23ccce View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f5bbf6b View commit details
    Browse the repository at this point in the history
  7. Expanded test coverage to test REFTful JSON attributes with and

    without a value template.
    nickovs committed Nov 20, 2017
    Configuration menu
    Copy the full SHA
    a281132 View commit details
    Browse the repository at this point in the history
  8. Added support for extracting JSON attributes from RESTful values

    Setting the json_attributes configuration option to true on the
    RESTful sensor will cause the result of the REST request to be parsed
    as a JSON string and if successful the resulting dictionary will be
    used for the attributes of the sensor.
    nickovs committed Nov 20, 2017
    Configuration menu
    Copy the full SHA
    dda455d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    3a99f4e View commit details
    Browse the repository at this point in the history
  10. Expanded test coverage to test REFTful JSON attributes with and

    without a value template.
    nickovs committed Nov 20, 2017
    Configuration menu
    Copy the full SHA
    22bc0fc View commit details
    Browse the repository at this point in the history
  11. Added support for extracting JSON attributes from RESTful values

    Setting the json_attributes configuration option to true on the
    RESTful sensor will cause the result of the REST request to be parsed
    as a JSON string and if successful the resulting dictionary will be
    used for the attributes of the sensor.
    nickovs committed Nov 20, 2017
    Configuration menu
    Copy the full SHA
    d19a81b View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    4ef54a1 View commit details
    Browse the repository at this point in the history
  13. Expanded test coverage to test REFTful JSON attributes with and

    without a value template.
    nickovs committed Nov 20, 2017
    Configuration menu
    Copy the full SHA
    0b9711c View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    8c5548e View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    0795823 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2017

  1. Configuration menu
    Copy the full SHA
    19eab69 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9dd2a5a View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2017

  1. Switched json_attributes to be a list of keys rather than a boolean.

    The value of json_attributes can now be either a comma sepaated list
    of key names or a YAML list of key names. Only matching keys in a
    retuned JSON dictionary will be mapped to sensor attributes.
    
    Updated test cases to handle json_attributes being a list.
    
    Also fixed two minor issues arrising from manual merge with 0.58 master.
    nickovs committed Nov 28, 2017
    Configuration menu
    Copy the full SHA
    2dbcff5 View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2017

  1. Configuration menu
    Copy the full SHA
    1d36270 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    02158b0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a537b45 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2017

  1. Configuration menu
    Copy the full SHA
    3a9650c View commit details
    Browse the repository at this point in the history
  2. Align quotes

    fabaff authored Dec 3, 2017
    Configuration menu
    Copy the full SHA
    0bf5ea3 View commit details
    Browse the repository at this point in the history