Skip to content

Add temperature and humidity to xiaomi miio air quality monitor#31287

Merged
springstan merged 3 commits intohome-assistant:devfrom
fierland:dev
Feb 1, 2020
Merged

Add temperature and humidity to xiaomi miio air quality monitor#31287
springstan merged 3 commits intohome-assistant:devfrom
fierland:dev

Conversation

@fierland
Copy link
Copy Markdown
Contributor

@fierland fierland commented Jan 29, 2020

Proposed change

added 2 new attributes in the HASS entity:

  • temperature
  • humidity

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • [ x] New feature (which adds functionality to an existing integration)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • The code has been formatted using Black (black --fast homeassistant tests)
  • Tests have been added to verify that the new code works.

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

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

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • Untested files have been added to .coveragerc.

The integration reached or maintains the following Integration Quality Scale:

  • No score or internal
  • 🥈 Silver
  • 🥇 Gold
  • 🏆 Platinum

@homeassistant
Copy link
Copy Markdown
Contributor

Hi @fierland,

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@probot-home-assistant
Copy link
Copy Markdown

Hey there @rytilahti, @syssi, mind taking a look at this pull request as its been labeled with a integration (xiaomi_miio) you are listed as a codeowner for? Thanks!

@springstan springstan changed the title Added new attributes to the Miio airquality monitor: Add temperature and humidity to xiaomi miio air quality monitor Jan 29, 2020
Comment thread homeassistant/components/xiaomi_miio/air_quality.py Outdated
@springstan
Copy link
Copy Markdown
Member

Please update the documentation accordingly by opening a PR in home-assistant/home-assistant.io and link it to this one. Thanks 👍

Copy link
Copy Markdown
Member

@rytilahti rytilahti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, can be merged when the docs are updated 👍

@springstan
Copy link
Copy Markdown
Member

@fierland please update the docs so this can be merged, thanks ✌😊

@fierland
Copy link
Copy Markdown
Contributor Author

fierland commented Feb 1, 2020 via email

@springstan
Copy link
Copy Markdown
Member

You will need to create a separate PR in https://github.com/home-assistant/home-assistant.io and link it to this one :)

@fierland
Copy link
Copy Markdown
Contributor Author

fierland commented Feb 1, 2020 via email

@fierland
Copy link
Copy Markdown
Contributor Author

fierland commented Feb 1, 2020 via email

@springstan
Copy link
Copy Markdown
Member

Great 👌

@springstan springstan merged commit e8b5555 into home-assistant:dev Feb 1, 2020
Comment thread homeassistant/components/xiaomi_miio/air_quality.py
@fierland
Copy link
Copy Markdown
Contributor Author

fierland commented Feb 1, 2020 via email

@MartinHjelmare
Copy link
Copy Markdown
Member

Currently each xiaomi miio platform configures its own devices. I don't know how the device library handles multiple connection instances for the same host device.

Usually we try to have a central device connection that spawns multiple platforms that shares the central device. That would mean a major code refactor here.

If it's ok to set up multiple device connections, then we may just need to add the collection of humidity and temperature measurements to the xiaomi_miio sensor platform.

fabaff pushed a commit to home-assistant/home-assistant.io that referenced this pull request Feb 2, 2020
@lock lock Bot locked and limited conversation to collaborators Feb 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants