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

Problem using magic_switch component #64

Closed
bernhardroth3 opened this issue Feb 14, 2024 · 5 comments
Closed

Problem using magic_switch component #64

bernhardroth3 opened this issue Feb 14, 2024 · 5 comments

Comments

@bernhardroth3
Copy link

Hi.

I try to use your magic_switch component in my HA/ESPHome installation.
During configuration all looks fine. On compilation however the linker complains about duplicate method definition as seen in the attached log.

Cant you help please.

Thank you.

logs_magic-switch-01_run.txt
magic-switch-01.yaml.txt

@ssieb
Copy link
Owner

ssieb commented Feb 14, 2024

Try doing a clean build.

@bernhardroth3
Copy link
Author

Thats in ESPHJome "Clean build files" then rebuild, right? I have done that with the same results.

@bernhardroth3
Copy link
Author

For good measure I did it again and send the latest log attached.

logs_magic-switch-01_run.txt

I use the latest versions of all subsystems:
ESPHome 2023.12.9

HA versions:
Core 2024.2.1
Supervisor 2024.01.1
Operating System 11.5
Frontend 20240207.1

@ssieb
Copy link
Owner

ssieb commented Feb 15, 2024

It looks like you have two copies somehow. Try deleting that build directory or re-install the addon.

@bernhardroth3
Copy link
Author

OK. Found the problem.
I indeed had multiple files inside the ESPHome docker container from earlier attempts to have all files local.
Those attempts failed because the editor validator in ESPHome suddenly did not recognize the new magic-switch directive and I went back to referencing the Github repo. From the HA container it looked all was cleared but it was not in ESPHome.

I certainly learned a bit about the inner workings of ESPHome and where to look if there is an issue.
Nothing for the faint hearted though :-)

Thank you very much for your help and the great work you do for the HA and ESPHome community.

@ssieb ssieb closed this as not planned Won't fix, can't repro, duplicate, stale Feb 15, 2024
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

No branches or pull requests

2 participants