Rules API set heating setpoint to a value that is NOT an integer

This rule code fragment works for me when setting thermostat heating setpoint.
However I’m struggling when the setpoint is NOT an integer (e.g. 21.5)
I tried “number” instead of “integer” but it doesnt’t work.
Any ideas?
Thanks

 "commands": [
    {
        "component": "main",
        "capability": "thermostatHeatingSetpoint",
        "command": "setHeatingSetpoint",
        "arguments": [
            {
                "integer": 21
            }
        ]
    }
]

What about "decimal"?

3 Likes

Bingo! “decimal” it is
Thanks :slight_smile:

2 Likes