In case anyone ordered the M5Stack Mini Dual Button Unit (SKU: U025)
It doesn’t require much, but I got it going happily with:
binary_sensor:
- platform: gpio
pin:
number: 32
inverted: true
name: "BlueButton"
id: "BlueButton"
on_press:
- logger.log: "Blue button pressed"
- platform: gpio
pin:
number: 26
inverted: true
name: "RedButton"
id: "RedButton"
on_press:
- logger.log: "Red button pressed"
So in case anyone was wondering, yup, works super with ESPHome
Just thought I’d share here and save someone the fluffing around with which button is which, and the inverted etc.