I have a dehumidifier that I want to control from Home Assistant while still being able to use the buttons. For instance if I turn it on/off it should show on/off in Home Assistant and vice versa. I soldered two leads to the button and hooked it up to my d1 mini
This is what I currently have down:
switch: - platform: gpio pin: D5 name: "Living Room Dehumidifier" id: dehumidifier1 binary_sensor: - platform: gpio name: "Living Room Dehumidifier" pin: number: D5 mode: INPUT_PULLUP on_press: - then: - switch.turn_on: dehumidifier1 - then: - switch.turn_off: dehumidifier1
Unfortunately, I know what I put wrote in esphome isn’t correct. what would be the best way to go about this?