Setting HA Generic Thermostat temperature from Node Red Function Node

Im trying to set the temperature of the Home Assistant Generic Thermostat from a node red function node.

The attribute in node red is as follows

Have tried something like this.
global.set("homeassistant.homeAssistant.states['climate.central_heating'].new_state.attributes.temperature", temp);

Does anyone have any ideas on how to do this

Thanks Danny

Has anyone ever figured this out?

Hope this helps: