Rule to set SetPoint Heating

I am running openhab2.4 I want to create a rule to change the temperature of my TVR at specific time of day.

I made this rule, first time Ever!:

var myTemperature = 22|°C
rule "Thermostats at evening"


when
  Time cron "0 40 * ? * MON,FRI"
then
  HallwayValve_SetpointHeating.sendCommand(myTemperature)
end

The Item name is: HallwayValve_SetpointHeating. How can I make it change temperature?

I also save the rule undeR: /etc/openhab2/rules/EveningSetPoint.rules

I can see at logs that the rule is accepted by the system. But no other actions happen.

Any advice?

First your cron triggers every 40 minutes. Is that what you want?
Use: https://www.freeformatter.com/cron-expression-generator-quartz.html
To generate cron strings. Very helpful

Change

var myTemperature = 22|°C

to

val Number myTemperature = 22