external_components compile error: 'D3Sensor' was not declared in this scope #6439
Unanswered
ltvanderkrogt
asked this question in
Q&A
Replies: 1 comment 13 replies
-
Your path has to stop at the |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It seems like a simple error but I'm struggling to solve this problem. I am not a developer but I try to understand the external_components concept by making a new component. I looked for a "hello world" external_components example but unfortunately found nothing other than a few vague videos.
For my particulate matter sensor I made a simple Arduino code with which the sensor works perfectly. Now I would like to convert this code to esphome external_component. I made a d3_sensor.h and a d3_sensor.cpp for that and a yaml. When compiling I get these errors;
This is my yaml;
d3_sensor.h
d3_sensor.cpp
ESPHome
Current version: 2024.3.0
Home Assistant
Core
2024.3.3
Supervisor
2024.03.0
Operating System
12.1
Frontend
20240307.0
Beta Was this translation helpful? Give feedback.
All reactions