Setting HA Generic Thermostat temperature from Node Red Function Node

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

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:

https://community.home-assistant.io/t/state-attributes-in-node-red-for-a-thermostat/663721/2?u=biscuit