I have an Avatto S06 IR transmitter, which I am going to use as a remote control for my ceiling lamp. Basically I have it working already with this config:
remote_receiver:
pin:.
number: GPIO5
inverted: true
dump: all
remote_transmitter:
pin:.
number: GPIO14
inverted: false
carrier_duty_percent: 50%
id: "s06_transmitter"
switch:
- platform: template
name: "BrightnessUp"
turn_on_action:
remote_transmitter.transmit_jvc:
data: 0xE41B
- platform: template
name: "BrightnessDown"
turn_on_action:
remote_transmitter.transmit_jvc:
data: 0xA857
The inconvinience I see is BrightnessUp/BrightnessDown are propagated to Home Assistant as switches, while in fact it should behave like a push buttons. I am quite new to ESPHome, and could not figure out how to make this yet.
What is the right way for making a Home Assistant button in ESPHome?