26
Adding multiple buttons to ESPHome YAML
(slrpnk.net)
I cant test this, but should it be something like:
# Example button configuration
button:
- platform: template
name: Livingroom Lazy Mood 1
id: my_button
# Optional variables:
icon: "mdi:emoticon-outline"
on_press:
- logger.log: "Button 1 pressed"
- platform: template
name: Livingroom Lazy Mood 2
id: my_button2
# Optional variables:
icon: "mdi:emoticon-outline"
on_press:
- logger.log: "Button 2 pressed"
As for the other thing, that might be something you need to write your own driver for? if you need some inspiration, this repo has a driver for mitsubishi heatpumps, which does something similar (read/write to a uart): https://github.com/echavet/MitsubishiCN105ESPHome
Thank you! This worked perfectly. And thanks for the link, will look into that
Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io