Use input_number and input_boolean

Hello everyone, and sorry if I ask for something already addressed.
I have an esp32 that through esphome communicates with my Home Assistant installation.
So I need to create 4 input_number and 1 input_boolean
at the moment my configuration is as follows:

input_boolean:
   notify_on:
   name: "Salvataggio"
   icon: mdi:alarm-panel-outline
input_number:
   slider1:
     name: "Temperatura 1"
     initial: 0
     min: 0
     max: 25
     step: 0.5
  slider2:
     name: "Temperatura 2"
     initial: 0
     min: 0
     max: 25
    step: 0.5
  box1:
    name: "Ora"
    initial: 0
    min: 0
    max: 23
    step: 1
   mode: box 
  box2:
    name: "Minuti"
    initial: 0
    min: 0
    max: 59
    step: 1
   mode: box

Entities are successfully created and shared with esphome.
my problem is that I would like to give these entities clearer names, because then in the automations I have to write “input_number.box1” “input_number.box2” etc. etc. while it would be clearer to write “input_number.Ora” “input_number.Minuti” etc. etc.

Entity ids can not contain capital letters. So you could have input_number.ora but not input_number.Ora.

Simply do this:

  ora: 
    name: "Ora"
    initial: 0
    min: 0
    max: 23
    step: 1
   mode: box 

Sorry if I posted such a simple question !!!
I have tried it now and it works.
Thank you

1 Like

Never be afraid to ask. We all had to start somewhere.

1 Like