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

SPS30: Add fan action #3410

Merged
merged 2 commits into from Apr 25, 2022
Merged

SPS30: Add fan action #3410

merged 2 commits into from Apr 25, 2022

Conversation

martgras
Copy link
Contributor

@martgras martgras commented Apr 20, 2022

What does this implement/fix?

  • Add action to start fan claning
  • Add option to configure autoclean interval

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other

Related issue or feature (if applicable): fixes

Pull request in esphome-docs with documentation (if applicable): esphome/esphome-docs#2033

Test Environment

  • ESP32
  • ESP32 IDF
  • ESP8266

Example entry for config.yaml:

sensor:
  - platform: sps30
    id: my_sps30
    pm_1_0:
      name: " PM <1µm Weight concentration"
      id: "PM_1_0"
    auto_cleaning_interval: 1200s

button:
  - platform: template
    name: "Start Autoclean"
    on_press:
      - sps30.start_fan_autoclean: my_sps30

Checklist:

  • The code change is tested and works locally.
  • Tests have been added to verify that the new code works (under tests/ folder).

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

ESPHome Dev automation moved this from Needs Review to Reviewer Approved Apr 25, 2022
@jesserockz jesserockz merged commit 6fe22a7 into esphome:dev Apr 25, 2022
ESPHome Dev automation moved this from Reviewer Approved to Done Apr 25, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Apr 27, 2022
ESPHome Dev automation moved this from Done to Reviewer Approved Sep 23, 2023
ESPHome Dev automation moved this from Reviewer Approved to Done Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants