@Philippe_Portes, I honestly don’t understand this.
NUMBER `5` , `10.6` The Number data type is a guideline indicating that a number should be expected, and not a specific type. Device Handlers contain the implementation of what kind of number object is actually returned.
And these allow decimal point.
# reviewed 2018-01-30
name: Thermostat Heating Setpoint
status: live
attributes:
heatingSetpoint:
schema:
$ref: Temperature
type: NUMBER
setter: setHeatingSetpoint
commands:
setHeatingSetpoint:
arguments:
- name: setpoint
required: true
schema:
$ref: TemperatureValue
type: NUMBER
public: true
id: thermostatHeatingSetpoint
ocfResourceType: x.com.st.temperature.heating
version: 1
And this too:
{
"id": "thermostatHeatingSetpoint",
"version": 1,
"name": "Thermostat Heating Setpoint",
"status": "live",
"attributes": {
"heatingSetpoint": {
"schema": {
"title": "Temperature",
"type": "object",
"additionalProperties": false,
"properties": {
"value": {
"title": "TemperatureValue",
"type": "number",
"minimum": -460,
"maximum": 10000
},
"unit": {
"title": "TemperatureUnit",
"type": "string",
"enum": [
"F",
"C"
]
},
"constraints": {
"title": "NumberConstraint",
"type": "object",
"additionalProperties": false,
"properties": {
"min": {
"type": "number"
},
"max": {
"type": "number"
}
}
}
},
"required": [
"value",
"unit"
]
}
}
},
"commands": {
"setHeatingSetpoint": {
"arguments": [
{
"name": "setpoint",
"schema": {
"title": "TemperatureValue",
"type": "number",
"minimum": -460,
"maximum": 10000
},
"required": true
}
]
}
}
}
And of course, both of them live…
Maybe post your issue here Get ready to make the switch! and tag Blake.Arnold and Brad_ST.