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

ESPHome functionality #50

Open
JoeAverge9 opened this issue Jan 5, 2024 · 29 comments
Open

ESPHome functionality #50

JoeAverge9 opened this issue Jan 5, 2024 · 29 comments
Assignees
Labels
enhancement New feature or request

Comments

@JoeAverge9
Copy link

Would it be possible to enable this within the ESPHome project?
https://www.esphome.io/

@JoeAverge9
Copy link
Author

JoeAverge9 commented Jan 5, 2024

I also found a similar request going the other way. Not sure where the best place for this request should be.
esphome/feature-requests#2546

@thelastoutpostworkshop
Copy link
Owner

I don't know ESPHome. Are you creating a sketch when working with ESPHome ?

@JoeAverge9
Copy link
Author

I don't know ESPHome. Are you creating a sketch when working with ESPHome ?

ESPHome is a declarative framework for programing ESP32 and ESP8266 dev boards

@thelastoutpostworkshop
Copy link
Owner

Can you import libraries ?

@JoeAverge9
Copy link
Author

Can you import libraries ?

I do not know for sure but depending on what you declare in the YAML config I believe this happens during the compile process before upload.

@thelastoutpostworkshop
Copy link
Owner

I will have a look at their documentation, if they don't allow third party libraries, there is not much I will able to do

@thelastoutpostworkshop thelastoutpostworkshop added enhancement New feature or request and removed question labels Jan 5, 2024
@trantoriana
Copy link

ESPHome does allow importing external components using the 'external' component:

@thelastoutpostworkshop : Would be great if I knew what to import.

I am willing to test this and contribute to documenting.

T.

@thelastoutpostworkshop
Copy link
Owner

Thanks a lot for the info and sure I will need help for testing.

@trantoriana
Copy link

It looks like the source needs to be rearrange in a specific format to allow ESPHome to import such a 'component', as per:

Perhaps core developers of ESPHome are willing to contribute turning GPIOViewer into such a component.

Fingers crossed

@thelastoutpostworkshop
Copy link
Owner

Yes and some people open issues on it, on the ESPHome repository

@thelastoutpostworkshop
Copy link
Owner

It appears, that IDF is needed for ESPHome, currently GPIOViewer library is based on the Arduino Framework. So a port to IDF is needed, I do not know at this point the amount of work this port will required.

@trantoriana
Copy link

If i'd only knew what this means, but it seems possible to create a arduino based library as component in IDF.

At least, that is what it looks like they done here:

Perhaps a similar method can be used here ??

@thelastoutpostworkshop
Copy link
Owner

Thanks I will look into it

@oka4henry
Copy link

Yes, you can.

@platte-73
Copy link

So, is it possible to use GPIO Viewer with ESPHome?

@thelastoutpostworkshop
Copy link
Owner

I think so, if someone wants to submit PRs for it, you are welcomed.

@tache
Copy link

tache commented Feb 6, 2024

First, this is an awesome capability.
Second, I am +1 for the functionality being on ESPHome. Has anyone started the effort yet? I am on board to help.

@thelastoutpostworkshop
Copy link
Owner

Nobody submitted PRs for this yet, your are welcome to contribute.

@tache
Copy link

tache commented Feb 7, 2024

Going to give it a go, but got to get up to speed on ESPHome component development and then off to the races.

@thelastoutpostworkshop
Copy link
Owner

Thanks, I do not know how much of a learning curve it is.

@erazor666
Copy link

I really like this functionality and I really hope someone makes it come to pass. Not much good on coding mysel sadly 🤔

@mikulik86
Copy link

+1

1 similar comment
@AJ-Github-Account
Copy link

+1

@playerfreak
Copy link

wow this would be so helpful

@Joo01
Copy link

Joo01 commented Mar 6, 2024

Yes, GPIOViewer in ESPHome would be a perfect addition!
Hope someone gets it working :-)

@Jaharmi
Copy link

Jaharmi commented Mar 10, 2024

This looks great, just found it and am also interested in the possibility with ESPHome. In the meantime, for a particular problem I’m having, I was thinking I’d temporarily re-flash the affected device. It’s not like the config for that device will go away in ESPHome.

@Jaharmi
Copy link

Jaharmi commented Mar 11, 2024

I was able to add this to ESPHome.

esphome:
  libraries:
    # A library from PlatformIO
    - thelastoutpostworkshop/GPIOViewer

However, I don’t think this results in the “#include” being set and the Web server running on port 8080. I may be wrong, as the ESPHome device I was testing already had a Web server on port 80. (This also meant it had the other required libraries installed.)

@MrC0nst
Copy link

MrC0nst commented Apr 22, 2024

I was able to add this to ESPHome.

esphome:
  libraries:
    # A library from PlatformIO
    - thelastoutpostworkshop/GPIOViewer

So you have this addon working in esphome just with 4 lines of code only?
I cant reach 80 or 8080 port of my esp to view gpio states

@MrC0nst
Copy link

MrC0nst commented Apr 22, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests