Skip to content

Add raspihats binary_sensor platform#7455

Closed
florincosta wants to merge 2 commits into
home-assistant:devfrom
raspihats:raspihats_binary_sensor
Closed

Add raspihats binary_sensor platform#7455
florincosta wants to merge 2 commits into
home-assistant:devfrom
raspihats:raspihats_binary_sensor

Conversation

@florincosta
Copy link
Copy Markdown
Contributor

@florincosta florincosta commented May 5, 2017

Description:

The raspihats binary sensor platform allows you to read sensor values ​​using the digital inputs of the raspihats boards.
To use your raspihats boards in your installation, add the following to your configuration.yaml file:

Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.io#2574

Example entry for configuration.yaml (if applicable):

binary_sensor:
  - platform: raspihats
    i2c_hats:
      - board: DI6acDQ6rly
        address: 0x60
        channels:
          - index: 0
            name: PIR Office
            invert_logic: true
            device_class: motion
          - index: 1
            name: PIR Bedroom

Checklist:

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

If the code does not interact with devices:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • Tests have been added to verify that the new code works.

@florincosta florincosta closed this May 9, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Aug 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants