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

Thanks for the inspiration! #1

Open
svenove opened this issue Apr 14, 2024 · 11 comments
Open

Thanks for the inspiration! #1

svenove opened this issue Apr 14, 2024 · 11 comments

Comments

@svenove
Copy link

svenove commented Apr 14, 2024

Not really an issue, just wanted to say thanks for posting this repo! :)
Based on your example, I made a (consumption) power meter that shows the live consumption of our house (including usage/cost today/this month):
powermeter

Code: https://github.com/svenove/ESPHome-ESP32-2424S012-LVGL

@clowrey
Copy link
Owner

clowrey commented Apr 15, 2024

Awesome! Glad it was useful to you! I don't even have mine reporting real data yet so may use some of your code for those parts 😁

@clowrey
Copy link
Owner

clowrey commented Apr 18, 2024

@svenove you can see the new beta documentation and ways to update the text values here :) They used my example as basis for that gauge but did things the more proper way ;) https://deploy-preview-3678--esphome.netlify.app/cookbook/lvgl#semicircle-gauge

@svenove
Copy link
Author

svenove commented Apr 18, 2024

Thanks, I’ll have a look at it! 🙂
I was particularly interested in this comment:

Since LVGL only handles integer values on the meter scale, but we want a float precision scale we use the same approach as in the examples above to multiply the needle values by 10.

Does that mean that the indicator will stay on the same spot for values 1.0-1.9 kW? I’ll have to look into that and perhaps modify it with a 10-multiplier. 🙂

@svenove
Copy link
Author

svenove commented Apr 23, 2024

Seems to be quite a few breaking changes in the lvgl by clydebarrow now. Like this one:
clydebarrow/esphome@b2225fd

Is it still his lvgl that is recommended to use?

@clowrey
Copy link
Owner

clowrey commented Apr 23, 2024

Seems to be quite a few breaking changes in the lvgl by clydebarrow now. Like this one: clydebarrow/esphome@b2225fd

Is it still his lvgl that is recommended to use?

Yup its still in active development ;) use this, and make sure you are on the latest ESPhome or it wont compile, they just added the ability to reference a specific commit on the most recent version.

external_components:
  - source:
      type: git
      url: https://github.com/clydebarrow/esphome
      ref: fd15094c0860df23d532881df36cfd16c7da1091 #previous commit - wont be needed in the future
    components: [ lvgl ] 

I just uploaded my current beta version here, it also has the *10 to increase precision, its definitely necessary for this type of 0-10 gauge.
https://github.com/clowrey/esphome-esp32-2424s012-lvgl-powermeter/blob/main/esp32-2424s012-lvgl-powermeter-2.yaml

@clowrey
Copy link
Owner

clowrey commented Apr 23, 2024

Oh and if you want to see the most recent ESPhome LVGL and display driver changes etc there is discussion about it on the Discord here: https://discord.com/channels/429907082951524364/1119046373543780363

@svenove
Copy link
Author

svenove commented Apr 23, 2024

Ah, that’s great! I looked at the docs, but couldn’t find any way of “pinning” to a specific commit, just tags/PRs. Guess I wasn’t reading the latest version of the docs then…

Your discord link seems to be to the UniFi-wireless channel…?

@clowrey
Copy link
Owner

clowrey commented Apr 23, 2024

Hmm.. for me it seems to go to the right discord, maybe you have to first join ESPhome discord? https://discord.com/invite/KhAMKrd

@clowrey
Copy link
Owner

clowrey commented Apr 23, 2024

And yes! it is just out of beta as of yesterday lol.. I asked the same thing on discord and they showed me that it was possible in beta a week ago :)

@svenove
Copy link
Author

svenove commented Apr 23, 2024

Joining first seems to be it. 👍

@clowrey
Copy link
Owner

clowrey commented Apr 23, 2024

But I dont think the official documentation is updated yet to show that, there was a pull request for it I saw though..
esphome/esphome#6446
esphome/esphome-docs#3736

Here you can see it will reference commit hash as valid - once this is pushed to main
https://deploy-preview-3736--esphome.netlify.app/components/external_components.html?highlight=commit

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