Mqtt number min/max/step

Thanks for adding mqtt number however it needs to have configurable ranges as the defaults are:

min: 0
max: 100
step: 1

and it is currently impossible to set

when adding

number:
  - platform: mqtt
    name: Test
    state_topic: "test"
    command_topic: "test"

mqtt number docs
number docs

What would make the most sense is for it to support everything an input_number supports but all as optional requirements:

min, max, initial, step, mode, unit_of_measurement

@thecode

2 Likes

Support for min/max/step will be added in this PR: Add min/max/step to MQTT number by thecode · Pull Request #50869 · home-assistant/core · GitHub

Thank you, now I will be able remove all the automation about slider to mqtt in next version of HA

1 Like