Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

full ir support + power sensor not configurable #14898

Closed
8 of 14 tasks
HMvdZijden opened this issue Feb 18, 2022 · 6 comments
Closed
8 of 14 tasks

full ir support + power sensor not configurable #14898

HMvdZijden opened this issue Feb 18, 2022 · 6 comments
Labels
troubleshooting Type - Troubleshooting

Comments

@HMvdZijden
Copy link

PROBLEM DESCRIPTION

A clear and concise description of what the problem is.
I try to build tasmota with full IR support by activating line #define USE_IR_REMOTE_FULL // Support all IR protocols from IRremoteESP8266
After that the compile ends in an error.
Linking .pio/build/tasmota/firmware.elf
/home/gitpod/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pio/build/tasmota/src/tasmota.ino.cpp.o:(.text._Z14IrRemoteSendGCPPcjj+0x0): undefined reference to IRsend::sendGC(unsigned short*, unsigned short)' /home/gitpod/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pio/build/tasmota/src/tasmota.ino.cpp.o: in function IrRemoteSendGC(char**, unsigned int, unsigned int)':
tasmota.ino.cpp:(.text._Z14IrRemoteSendGCPPcjj+0x7d): undefined reference to IRsend::sendGC(unsigned short*, unsigned short)' /home/gitpod/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pio/build/tasmota/src/tasmota.ino.cpp.o:(.text._Z23IrRemoteSendRawStandardPPctjj+0x0): undefined reference to IRsend::sendRaw(unsigned short const*, unsigned short, unsigned short)'
/home/gitpod/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pio/build/tasmota/src/tasmota.ino.cpp.o: in function IrRemoteSendRawStandard(char**, unsigned short, unsigned int, unsigned int)': tasmota.ino.cpp:(.text._Z23IrRemoteSendRawStandardPPctjj+0x7b): undefined reference to IRsend::sendRaw(unsigned short const*, unsigned short, unsigned short)'
/home/gitpod/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .pio/build/tasmota/src/tasmota.ino.cpp.o: in function IrRemoteSendRawFormatted(char**, unsigned int, unsigned int)': tasmota.ino.cpp:(.text._Z24IrRemoteSendRawFormattedPPcjj+0x10e): undefined reference to IRsend::sendRaw(unsigned short const*, unsigned short, unsigned short)'
/home/gitpod/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: tasmota.ino.cpp:(.text._Z24IrRemoteSendRawFormattedPPcjj+0x1eb): undefined reference to `IRsend::sendRaw(unsigned short const*, unsigned short, unsigned short)'
collect2: error: ld returned 1 exit status
*** [.pio/build/tasmota/firmware.elf] Error 1

Building tasmota-ir builds one with full support for ir but does not support power sensors and I need that combination.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

  • Read the Contributing Guide and Policy and the Code of Conduct
  • Searched the problem in issues
  • Searched the problem in discussions
  • Searched the problem in the docs
  • Searched the problem in the chat
  • Device used (e.g., Sonoff Basic): _____NA
  • Tasmota binary firmware version number used: _____latest
    • Pre-compiled
    • Self-compiled
  • Flashing tools used: _____
  • Provide the output of command: Backlog Template; Module; GPIO 255:
  Configuration output here:

  • If using rules, provide the output of this command: Backlog Rule1; Rule2; Rule3:
  Rules output here:

  • Provide the output of this command: Status 0:
  STATUS 0 output here:

  • Set weblog to 4 and then, when you experience your issue, provide the output of the Console log:
  Console output here:

TO REPRODUCE

Steps to reproduce the behavior:
Uncomment line 836 in my_user_config_h

EXPECTED BEHAVIOUR

A clear and concise description of what you expected to happen.
A build output

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

Add any other context about the problem here.

(Please, remember to close the issue when the problem has been addressed)

@barbudor
Copy link
Contributor

Delete the .pio, the .cache and the $HOME/.platformio folders and let PlatformIO redownload fresh and clean environment

@ascillato2 ascillato2 added the troubleshooting Type - Troubleshooting label Feb 18, 2022
@Jason2866
Copy link
Collaborator

It does NOT work this way. You have to define your own env and place it in platformio_tasmota_cenv.ini

[env:tasmota-HMvdZijden]
build_flags = ${env.build_flags} -DUSE_IR_REMOTE_FULL

with pio run -e tasmota-HMvdZijden you get your Tasmota version with Full IR support

@barbudor
Copy link
Contributor

@Jason2866 So the instructions are incomplete as they do not refer to a custom env

// ====> IR Full protocols are enabled with the line below
// #define USE_IR_REMOTE_FULL // Support all IR protocols from IRremoteESP8266
//
// WARNING: if you change any IR configuration, you need to clear Platform.io cache
// currently the include change detection does not work for these parameters
// This is not an issue if you compile with gitpod or pre-compiled binaries
// since there is no cache of previously compiled libraries
// ====>

We probably should write something here in my_user_config
Do you want me to do it ?

@Jason2866
Copy link
Collaborator

@barbudor yes, please. I am on Mobile now.

@HMvdZijden
Copy link
Author

I am really sorry, i am such a noob, I really don’t know what to do and why.
Can someone inform me what to do exactly.

@Jason2866
Copy link
Collaborator

@HMvdZijden No reason for excuses! We all started at point zero.
So what do you want to have included in your firmware?

Repository owner locked and limited conversation to collaborators Feb 18, 2022
@Jason2866 Jason2866 converted this issue into discussion #14901 Feb 18, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
troubleshooting Type - Troubleshooting
Projects
None yet
Development

No branches or pull requests

4 participants