2026-05-19 13:09:07 +02:00
2026-05-19 13:09:07 +02:00
2026-05-12 13:04:34 +02:00
2026-05-19 13:09:07 +02:00
2026-05-12 13:04:34 +02:00
2026-05-12 11:13:29 +02:00
2026-05-12 13:04:34 +02:00
2026-05-12 13:04:34 +02:00
2026-05-12 13:04:34 +02:00
2026-05-19 13:09:07 +02:00

buttonplus-esphome-generator

A python script that generates a full ESPHome config for the Button+ V2

Features

  • Notification Service
    • And toasts!
  • Generate pages and all buttons and events belonging to each page

Setup

Project uses pipenv

run pipenv install to setup the project the first time.

run pipenv shell after that to open the virtual environment.

You can then use python src/main.py --help to run the generator

Config example

The configuration (handmade) on which this generator is based, can be found in the esphome folder.

Todo

Ideas

  • Show image service
  • Top level config only for drawing, everything else hidden
    • back to using packages or includes probably
    • with --no-split option
    • two files

Missing config

  • Event lambda's (see config.yaml)
  • Implement --no-click-confirm
  • Make effects optional (--no-effects)
  • service: get led state
    • led name
    • page name
    • page num
  • service: get_page_info
    • rename the service
    • add the effect options
S
Description
A python script that generates a full ESPHome config for the Button+ V2
Readme MIT
183 KiB
Languages
Python 100%