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

Add on_rc_switch trigger #983

Merged
merged 1 commit into from
Mar 12, 2020
Merged

Add on_rc_switch trigger #983

merged 1 commit into from
Mar 12, 2020

Conversation

escoand
Copy link
Contributor

@escoand escoand commented Feb 13, 2020

Description:

This adds the missing trigger for RCSwitch.

remote_receiver:
  ...
  on_rc_switch:
    - logger.log:
        format: "on_rc_switch: %i %llu"
        args: [x.protocol, x.code]

Related issue (if applicable): fixes esphome/feature-requests#550

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

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:

@brandond
Copy link
Collaborator

LGTM

@brandond brandond merged commit a1dfd35 into esphome:dev Mar 12, 2020
@escoand escoand deleted the patch-2 branch March 12, 2020 08:54
@lock lock bot locked and limited conversation to collaborators Mar 21, 2020
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.

remote_reciver: on_rc_switch automation
3 participants