-
Notifications
You must be signed in to change notification settings - Fork 61
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 support? #58
Comments
It is "supported" by ESPhome, yes.... depending on what you want to do with it...?! You can use the ePaper screen (with partial refresh), and the 5-way switch. Accessing the onboard (ESP8266) as a status light seemed to cause issues, so I don't include that. The ADC can also be included to measure the voltage level of the battery. But be aware the voltage divider used isn't right for a lipo battery. There's a lot of pins used on the ESP8266 which tend to interfere with the OTA process by some line going low (I think?!), so I also include the "Safe mode reboot" switch, which seems allows for 100% guarantee upload (weeks of troubleshooting and testing!). Do you have a specific example you'd like to set the Badgy up with, I can post an example YAML config? |
Yeah, that example was also another version I had - before I updated it to the hourly/daily forecast one seen above. Those "weather" examples use a custom sensor within Home Assistant to format a bunch of other sensors into a simple text sensor that the Badgy can process and display. |
Amazing! I’m interested in both of those, yes, and I also have a co2 monitor that I might do on its own in as- large-as-possible text. Getting the switches going might be interesting to flip between them, later, but as I have two of them I can start without it. |
Let me put a 'hello world' config yaml file up here for you to start on, which should give you some good pointers and a good base... how OK are you with ESPHome and HA? |
A ‘hello world’ would help a lot, thanks! Okay with esphome, I’ve put some basic sonoff switches, a co2 meter together; and competent with HA, I’ve wrestled and won with templates, etc. |
Not had any time to gather all my scripts and info together, but below is a quick and dirty "hello world" which should get you working as a proof of concept: In HA, you will need weather.home (Met.no weather service), binary_sensor.door_sensor_back_door_contact (a binary sensor such as a door sensor), sensor.multisensor_garage_temperature (a temperature sensor of some sort), binary_sensor.multisensor_garage_motion (a motion sensor binary sensor such as a PIR sensor. This is to blank the screen if no one is present to save on the epaper life, comment out the if else statement if you want it to always be on), and you will need to download and add some fonts to the ESPHome directory (fonts/materialdesignicons-webfont.ttf, fonts/materialdesignicons-webfont-6.9.96.ttf (I need to combine these two MDI calls into one (lazy!), feel free to fix!), fonts/Roboto-Bold.ttf, fonts/Roboto-Regular.ttf) Hopefully the below will give you some ideas and paths to explore. The end result will be a vertical Badgy with two temperature readings, a weather cloud/sun icon from Met.no service, and a CLOSED/OPEN and door icon at the bottom, along with the update time, battery icon, and wifi range icon. This is a mis-match of a bunch of versions I have running, so it's cut back from what I run, but has a lot of things in there that I have learned..... Use the Safe Restart button if you are having issues OTA updates to Badgy.
|
Finally some time to get back to this, and preliminary results are good! First attempts I was seeing nothing but either I watching the logs wirelessly prevents it from displaying or maybe I had Now that I've got the basics I'll look at getting my CO2 levels in, thanks muchly! |
Ahhh - i wondered when you'd look at this. Good to hear it's working. I have similar results with blank screens, reboots etc. Not sure if it's the device wiring or the code, but it's not the most stable ePaper screen for HA. Enjoy tinkering with the YAML! Check out https://github.com/Madelena/esphome-weatherman-dashboard for some good inspiration too. And there are a bunch of epaper esphome projects to borrow ideas from! |
BTW, I'd given up on it for a while and checked in again and its working brilliantly now! I think something in esphome improved more than any change I did. Now I have to find the other one I've misplaced! Showing:
|
Haha! Looking awesome!!! Glad it is working for you. Mine has lived on my wall ever since with all sorts of temps and door icons! |
Is badgy supported by esphome? Does anyone have config files if so?
@chunkysteveo you tagged a post with
esphome
hereThe waveshare eink displays seem similar and closest, but different enough it seemed worth asking.
(Rev 2A if it matters)
The text was updated successfully, but these errors were encountered: