Pieter Brinkman

ESPeasy rules for Bellfire fireplace / mertik maxitrol

A back-up of the ESPeasy rules that I used to control my Bellfire fireplace . You can find the end-to-end integration of the Bellfire fireplace with Home Assistant here.

ESPeasy rules

//GIO14 == Relay 1
//GPIO4 == Relay 2
//GPIO 12 == Relay 3

on IGNITION do
  // Close relays contacts 
  gpio,14,1 
  gpio,12,1
  timerSet 1,1 // 1 second delay
  Publish,/fireplace/status,event,IGNITION
  
endon

On Rules#Timer=1 do 
   ///Open relays contacts 
  gpio,14,0
  gpio,4,0
  gpio,12,0
 
endon

on FIRE_OFF do
  // Close relays contacts 
  gpio,14,1 
  gpio,4,1
  gpio,12,1
  timerSet 1,1 // 1 second delay
  Publish,/fireplace/status,event,FIRE_OFF
endon

on SECONDBURNER_ON do
  // Close relays contacts 
  gpio,14,1 
  gpio,4,1
  timerSet 1,1 // 1 second delay
  Publish,/fireplace/status/centerfire,event,SECONDBURNER_ON
endon


on SECONDBURNER_OFF do
  // Close relays contacts 
  gpio,4,1 
  gpio,12,1
  timerSet 1,1 // 1 second delay
  Publish,/fireplace/status/centerfire,event,SECONDBURNER_OFF
endon

on INCREASE_FIRE do
  // Close relays contacts 
  gpio,14,1 
  timerSet 1,3 // 1 second delay
endon

on DECREASE_FIRE do
  // Close relays contacts 
  gpio,12,1 
  timerSet 1,3 // 1 second delay
endon

Wiring photos

Wiring to controller

Wiring to controller

Wiring from ESP to relay

Wiring from ESP to relay

Hope this helps.

Enjoyed this? Read the extended cut on the Second Brain Stack Substack →