NodeRed function to set HA climate current_temperature state

Hi All,
Thank you for your great work on Home Assistant.

I am trying to configure my gas fireplace within Home Assistant.

Everything works well except for the “current_temperature” value (which seems to default to 26):

This is my configuration:

climate:

  • platform: generic_thermostat
    name: Fireplace
    unique_id: climate.fireplace
    min_temp: 15
    max_temp: 30
    precision: 0.5
    target_temp_step: 0.5
    ac_mode: false
    heater: input_boolean.fireplacemode
    target_sensor: input_number.fireplacetargettemp

I use NodeRed to control the on/off functionality by comparing the current temperature to the target temperature. All this works fine.

Is there no way to set the “current_temperature” to the status of “sensor.sonofffireplace_si7021_temperature” so that it displays correctly in OH?

I can successfully change the 26 to something else using the Developer Tools…

Ideally, looking for some quick NodeRed function that will set the state similar to how the Developer Tools changes the state attributes.

Many thanks in advance.
Paul

Here is where i can successfully change the target_temperature:

You should not need to set the current temperature, as it should come from the target_sensor. Is the state of that sensor a valid number? Maybe include a screenshot of the target sensor from Dev Tools.

Even if you do set the value through Dev Tools, next time the state is updated your value will be lost.

I believe in your configuration the target sensor should be the temperature sensor and not the input number.

Oh my goodness… i was using the climate item all wrong. I should have known that HA does things much easier. Many thanks.