Linknode R4 - relay controlling Wood Pellet Burner heat control Up/Down

Hi,

Hope someone can point me in the right direction here. I’ve a Linknode R4 with Espeasy 120 installed and my Wood Pellet Burner is lacking any automated controls and has press to make controls for On/Off, Water Temp Up/Down and Heat Setting 1 through 5.

I’ve configured 1 of the relays to control the On/Off function through the use of the generic thermostat which works well with an ESP8266 & DHT22/mqtt I’ve setup.

The Heat setting Up and Down switches I’ve wired into 2 more relays. The operation of up and down is quite simple, an On/Off cycle of the relay will increase or decrease the Heat setting by one. However, if the setting is at 1 and I want it to be 5, this would involve 4 On/Off operations of the relay to get the desired setting. I appreciate that this may be the only way to achieve this desired result, but I’m I can’t seem to find a slider or up/down numeric value control to enable this in Home assistant. I’ve tried the switch option, but that is 5 switches which is overkill.

Hope you can help.

If anyone is wondering, here is the solution that I found using input_number to utilize a slider calling a script file.

So running HA 0.61.1 which uses input_number, I guess previous version users can use input_slider with the same functionality (not tested though).

So the aim was to operate via a relay a push to make switch to adjust the value up or down, setting 1 being lowest by default and 5 the highest. With no intelligence in the relay and no way to determine where the last setting was it was unfortunately necessary to make the scripts that corresponded to the heat levels go all the way to setting 1 before going up to say 3 which would result in 4 on/off down operations before 2 on/off up operations. That was the easy bit, the slider bit is below, which is easy enough to figure out I guess (considering I did).

input_number:
  heat_temperature:
    name: Heating Power 1-5
    initial: 1
    min: 1
    max: 5
    step: 1

shell_command:
  set_heat_to_slider: "bash /path.to/homeassistant/.homeassistant/fire.{{ states.input_number.heat_temperature.state }}"
  
  - alias: "Pellet Heat Setting"   
    trigger:
      platform: state
      entity_id: input_number.heat_temperature
    action:
      service: shell_command.set_heat_to_slider

The script that this calls are fire.X.0 where X is the corresponding input_number.

Hope this helps

Bananaskin