I want to control a heating element through a PWM to voltage converter (0 to 10V). The electronics part is working but I’m struggling with the integration in Home Assistant.
My config so far:
esphome: name: heizung_test platform: ESP8266 board: d1_mini wifi: ... output: - platform: esp8266_pwm pin: D1 frequency: 1000 Hz id: pwm_output
How do I now properly link this to Home Assistant? I would like
- the current level from the ESP as an entity value
- the ability to change the value (e.g. through Home Assistant automation)
Maybe I’m missing something obvious here… I could hack a light entity to do the job but that can’t be it. There has to be a cleaner way. Grateful for any hints!
Btw. For testing purposes I added this quick proof of concept:
switch: - platform: gpio name: "test" pin: D2 # there is actually nothing connected here on_turn_on: then: - output.set_level: id: pwm_output level: 50%
This works and produces the expected 5V out upon switching from HA.