How to get input_datetime to ESPhome

Hello …
i dont know if the HA Type input_datetime have to tranfer as Textsensor or number sensor to Esphome
cant find any usefull docs.This is my time frontend


so i tried both without sucsess

i tried your float conversion too, the result in log is 0.000000 the timeset in HA is 08:02

text_sensor:
  - platform: homeassistant
    id: startzeit
    entity_id: input_datetime.anzuchtbox_licht_startzeit
    attribute: hour
    on_value:
      then:
        - lambda: |-
            ESP_LOGD("main", "Starttime set to: %s", x.c_str());

interval:
  - interval: 10sec
    then:
    - lambda: |-
       float fzeit = atof(id(startzeit).state.c_str());
       ESP_LOGI("main", "Value of my sensor: %f", fzeit);