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

Support for multiple IRsend GPIOs #16138

Merged
merged 1 commit into from Aug 2, 2022

Conversation

s-hadinger
Copy link
Collaborator

Description:

Allow multiple GPIOs for IRsend. However each message must be sent on a unique GPIO at each time. You can still send them closely one after the other on different GPIOs.

Added "Channel":x to JSON payload to indicate the GPIO to be used (starting at 1).

Example: (with IRsend-1 and IRsend-2)

IRsend {"Protocol":"NEC","Bits":32,"Data":0x8166817E,"Channel":1}
IRhvac {"Vendor":"Mitsubishi_Heavy_152", "Power":"On","Mode":"Hot","FanSpeed":3,"Temp":22.5,"Channel":2}

Checklist:

  • The pull request is done against the latest development branch
  • Only relevant files were touched
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • The code change is tested and works with Tasmota core ESP8266 V.2.7.4.9
  • The code change is tested and works with Tasmota core ESP32 V.2.0.4.1
  • I accept the CLA.

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass

@s-hadinger s-hadinger merged commit ac4d7c1 into arendst:development Aug 2, 2022
@s-hadinger s-hadinger mentioned this pull request Aug 2, 2022
6 tasks
@sectorq
Copy link

sectorq commented Aug 21, 2022

Hello, Im trying to send on esp32
irsend {"Protocol":"NEC","Bits":32,"Data":"0x01FEA05F","Channel":2}
But it's always sent via channel 1

@sfromis
Copy link
Contributor

sfromis commented Aug 21, 2022

Your binary may be older than this very recent enhancement? Which exact one are you using?

@sectorq
Copy link

sectorq commented Aug 21, 2022

[Tasmota 12.1.0.1 by Theo Arends] latest build

@barbudor
Copy link
Contributor

Self build or official tasmota32-ir.bin ?

@s-hadinger
Copy link
Collaborator Author

It works only with IR full option, not the IR minimal support

@sectorq
Copy link

sectorq commented Aug 21, 2022

thanks, it is working with full IR ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants