http://skytechpg.com/skytech/assets/instructions/2_Valve-Systems/1_AFLMF-Series/RCAF-LMF-V_Instr.pdf
This system is a 305MHz remote control and receiver combo that opens and closes the natural gas valve using a solenoid. Here’s a photo of the printed circuit board. It has a very small RF section on the left, the EM78P156 8-bit microprocessor in the middle, and a pair of SDM8401 transistors switching the 6VDC and GROUND between the red and black output wires at the upper right.
I replaced the SkyTech unit altogether with an ESPHome device using ESP32 and dual 3v3 SPDT relays. Found the below diagram, wired it up, and now there is +6VDC on one ESPHome switch for 5 seconds and -6VDC on the other ESPHome switch for 5 seconds. HIGHER and LOWER settings are achieved by closing the relays for just 600 milliseconds.
This is the ESPHome YAML configuration:
esphome:
name: fireplace
platform: ESP32
board: esp-wrover-kit
wifi:
ssid: "my-wifi-name"
password: "my-wifi-password"
power_save_mode: none
# Enable logging
logger:
# Enable Home Assistant API
api:
password: "1234567"
ota:
password: "1234567"
switch:
- platform: gpio
id: relay01
pin: 25
restore_mode: ALWAYS_OFF
- platform: gpio
id: relay02
pin: 27
restore_mode: ALWAYS_OFF
- platform: template
id: off_switch
name: "Fireplace OFF"
icon: "mdi-close-octagon"
turn_on_action:
- switch.turn_on: relay01
- delay: 5000ms
- switch.turn_off: relay01
restore_state: off
- platform: template
id: on_switch
name: "Fireplace ON"
icon: "mdi:fireplace"
turn_on_action:
- switch.turn_on: relay02
- delay: 5000ms
- switch.turn_off: relay02
restore_state: off
- platform: template
id: low_switch
name: "Fireplace LOWER"
icon: "mdi:arrow-down"
turn_on_action:
- switch.turn_on: relay01
- delay: 600ms
- switch.turn_off: relay01
restore_state: off
- platform: template
id: high_switch
name: "Fireplace HIGHER"
icon: "mdi:arrow-up"
turn_on_action:
- switch.turn_on: relay02
- delay: 600ms
- switch.turn_off: relay02
restore_state: off
And this is the Lovelace code for the Home Assistant web page:
- entities:
- entity: switch.fireplace_on
- entity: switch.fireplace_higher
- entity: switch.fireplace_lower
- entity: switch.fireplace_off
show_header_toggle: false
title: Fireplace
type: entities
Which provides this lovely set of momentary switches: